Versions in this module Expand all Collapse all v1 v1.5.16 Jan 11, 2021 Changes in this version + var DB *sql.DB + var FanartCache *redis.Client + var GeneralCache *redis.Client + var LiveCache *redis.Client + func CheckChannelEnable(ChannelID, VtuberName string, GroupID int64) bool + func CheckUser(DiscordID string, MemberID int64, ChannelChannelID int) bool + func GetChannelID(DiscordChannelID string, GroupID int64) int + func GetGuildsCount() int + func GetModule() []string + func GetRanChannel() string + func GetTBiliBili(DynamicID string) bool + func GetTwitch() + func GetUserList(ChannelIDDiscord int64, Member int64) []string + func GetUserReminderList(ChannelIDDiscord int, Member int64, Reminder int) []string + func ModuleInfo(Name string) + func SetRoomToLive(MemberID int64) + func Start(dbsession *sql.DB) + func UserStatus(UserID, Channel string) [][]string + type DataFanart struct + Author string + Dynamic_id string + EnName string + ID int64 + JpName string + Likes int + PermanentURL string + Photos []string + State string + Text string + Videos string + func GetFanart(GroupID, MemberID int64) DataFanart + func (Data DataFanart) DeleteFanart() error + type DiscordChannel struct + ChannelID string + Dynamic bool + EmbedMessageID string + Group Group + ID int64 + LiveOnly bool + NewUpcoming bool + TextMessageID string + TypeTag int + YoutubeVideoID string + func ChannelStatus(ChannelID string) []DiscordChannel + func ChannelTag(MemberID int64, typetag int, Options string) []DiscordChannel + func GetLiveNotifMsg(Key string) []DiscordChannel + func (Data *DiscordChannel) AddChannel() error + func (Data *DiscordChannel) ChannelCheck() bool + func (Data *DiscordChannel) DelChannel(errmsg string) error + func (Data *DiscordChannel) PushReddis() + func (Data *DiscordChannel) SetDynamic(new bool) *DiscordChannel + func (Data *DiscordChannel) SetLiveOnly(new bool) *DiscordChannel + func (Data *DiscordChannel) SetMsgEmbedID(new string) *DiscordChannel + func (Data *DiscordChannel) SetMsgTextID(new string) *DiscordChannel + func (Data *DiscordChannel) SetNewUpcoming(new bool) *DiscordChannel + func (Data *DiscordChannel) SetTypeTag(new int) *DiscordChannel + func (Data *DiscordChannel) SetVtuberGroupID(new int64) *DiscordChannel + func (Data *DiscordChannel) SetYoutubeVideoID(new string) *DiscordChannel + func (Data *DiscordChannel) UpdateChannel(UpdateType string) error + func (ac DiscordChannel) MarshalBinary() ([]byte, error) + type Group struct + GroupName string + ID int64 + IconURL string + func GetGroups() []Group + func (Data Group) GetChannelByGroup() []DiscordChannel + type Guild struct + ID string + Join time.Time + Name string + func (Data Guild) CheckGuild() int + func (Data Guild) InputGuild() error + func (Data Guild) UpdateJoin(id int) error + type InputBiliBili struct + Desc string + Length string + MemberID int64 + Thum string + Title string + Type string + Update time.Time + VideoID string + Viewers int + func (Data InputBiliBili) CheckVideo() (bool, int) + func (Data InputBiliBili) InputSpaceVideo() + func (Data InputBiliBili) UpdateView(id int) + type InputTBiliBili struct + Author string + Avatar string + Dynamic_id string + Like int + Photos string + Text string + URL string + Videos string + func (Data InputTBiliBili) InputTBiliBili(MemberID int64) + type InputTW struct + Author string + Like int + MemberID int64 + Photos string + Text string + TweetID string + Url string + Video string + type LiveBiliDB struct + Avatar string + Description string + EnName string + ID int + JpName string + LiveRoomID int + Online int + PublishedAt time.Time + ScheduledStart time.Time + Status string + Thumbnail string + Title string + func BilGet(GroupID int64, MemberID int64, Status string) []LiveBiliDB + func GetRoomData(MemberID int64, RoomID int) (*LiveBiliDB, error) + func (Data *LiveBiliDB) UpdateLiveBili(MemberID int64) + type Member struct + BiliBiliAvatar string + BiliBiliHashtags string + BiliBiliID int + BiliRoomID int + EnName string + GroupID int64 + ID int64 + JpName string + Name string + Region string + TwitchUserName string + TwitterHashtags string + TwitterName string + YoutubeAvatar string + YoutubeID string + func GetMembers(GroupID int64) []Member + func (Data Member) GetTwitterFollow() (twitterscraper.Profile, error) + func (Member Member) CheckMemberFanart(Data *twitterscraper.Result) (bool, error) + func (Member Member) CheckYtVideo(VideoID string) (*YtDbData, error) + func (Member Member) GetSubsCount() (*MemberSubs, error) + func (ac Member) MarshalBinary() ([]byte, error) + type MemberSubs struct + BiliFollow int + BiliVideos int + BiliViews int + ID int + MemberID int64 + TwFollow int + YtSubs int + YtVideos int + YtViews int + func (Member *MemberSubs) UpBiliFollow(new int) *MemberSubs + func (Member *MemberSubs) UpBiliVideo(new int) *MemberSubs + func (Member *MemberSubs) UpBiliViews(new int) *MemberSubs + func (Member *MemberSubs) UpYtSubs(new int) *MemberSubs + func (Member *MemberSubs) UpYtVideo(new int) *MemberSubs + func (Member *MemberSubs) UpYtViews(new int) *MemberSubs + func (Member *MemberSubs) UpdateSubs(State string) + func (Member *MemberSubs) UptwFollow(new int) *MemberSubs + func (ac MemberSubs) MarshalBinary() ([]byte, error) + type SpaceBiliDB struct + Avatar string + Description string + EnName string + JpName string + Length string + Thumbnail string + Title string + Type string + UploadDate time.Time + VideoID string + Viewers int + func SpaceGet(GroupID int64, MemberID int64) []SpaceBiliDB + type TwitterUser struct + ContributorsEnabled bool + CreatedAt string + DefaultProfile bool + DefaultProfileImage bool + Description string + Entities struct{ ... } + FavouritesCount int + FollowRequestSent bool + FollowersCount int + Following bool + FriendsCount int + GeoEnabled bool + HasExtendedProfile bool + ID int + IDStr string + IsTranslationEnabled bool + IsTranslator bool + Lang interface{} + ListedCount int + Location string + Name string + Notifications bool + ProfileBackgroundColor string + ProfileBackgroundImageURL string + ProfileBackgroundImageURLHTTPS string + ProfileBackgroundTile bool + ProfileBannerURL string + ProfileImageURL string + ProfileImageURLHTTPS string + ProfileLinkColor string + ProfileLocation interface{} + ProfileSidebarBorderColor string + ProfileSidebarFillColor string + ProfileTextColor string + ProfileUseBackgroundImage bool + Protected bool + ScreenName string + Status struct{ ... } + StatusesCount int + TimeZone interface{} + TranslatorType string + URL string + UtcOffset interface{} + Verified bool + type UserStruct struct + Channel_ID string + DiscordID string + DiscordUserName string + GroupID int64 + Human bool + Reminder int + func (Data *UserStruct) SetDiscordChannelID(new string) *UserStruct + func (Data *UserStruct) SetDiscordID(new string) *UserStruct + func (Data *UserStruct) SetDiscordUserName(new string) *UserStruct + func (Data *UserStruct) SetGroupID(new int64) *UserStruct + func (Data *UserStruct) SetHuman(new bool) *UserStruct + func (Data *UserStruct) SetReminder(new int) *UserStruct + func (Data UserStruct) Adduser(MemberID int64) error + func (Data UserStruct) Deluser(MemberID int64) error + func (Data UserStruct) UpdateReminder(MemberID int64) error + type YtDbData struct + ChannelID string + Desc string + End time.Time + Group string + GroupID int64 + ID int64 + Length string + MemberID int64 + NameEN string + NameJP string + Published time.Time + Region string + Schedul time.Time + Status string + Thumb string + Title string + Type string + VideoID string + Viewers string + YoutubeAvatar string + func YtGetStatus(Group, Member int64, Status, Region string) ([]YtDbData, error) + func (Data *YtDbData) InputYt() (int64, error) + func (Data *YtDbData) UpdateYt(Status string) + func (Data YtDbData) IsEmpty() bool + func (ac YtDbData) MarshalBinary() ([]byte, error)