Documentation ¶
Index ¶
- Constants
- Variables
- func AutoroleApply(guildID string, userID string, roleID string) (err error)
- func AutoroleApplySignature(guildID string, userID string, roleID string) (signature *tasks.Signature)
- type About
- type AutoRoles
- func (a *AutoRoles) Action(command string, content string, msg *discordgo.Message, ...)
- func (a *AutoRoles) Commands() []string
- func (a *AutoRoles) Init(session *shardmanager.Manager)
- func (a *AutoRoles) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
- func (a *AutoRoles) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
- func (a *AutoRoles) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
- func (a *AutoRoles) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
- func (a *AutoRoles) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)
- func (a *AutoRoles) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
- func (a *AutoRoles) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
- func (a *AutoRoles) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
- func (a *AutoRoles) Uninit(session *shardmanager.Manager)
- type Autoleaver
- func (a *Autoleaver) Action(command string, content string, msg *discordgo.Message, ...)
- func (a *Autoleaver) Commands() []string
- func (a *Autoleaver) Init(session *shardmanager.Manager)
- func (a *Autoleaver) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
- func (a *Autoleaver) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
- func (a *Autoleaver) OnGuildCreate(session *discordgo.Session, guild *discordgo.GuildCreate)
- func (a *Autoleaver) OnGuildDelete(session *discordgo.Session, guild *discordgo.GuildDelete)
- func (a *Autoleaver) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
- func (a *Autoleaver) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
- func (a *Autoleaver) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)
- func (a *Autoleaver) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
- func (a *Autoleaver) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
- func (a *Autoleaver) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
- func (a *Autoleaver) Relax(err error)
- func (a *Autoleaver) Uninit(session *shardmanager.Manager)
- type Bias
- func (m *Bias) Action(command string, content string, msg *discordgo.Message, ...)
- func (m *Bias) CategoryRolesAssigned(member *discordgo.Member, guildRoles []*discordgo.Role, ...) []models.BiasEntryRole
- func (m *Bias) CleanUpRoleName(inputName string) string
- func (m *Bias) Commands() []string
- func (m *Bias) GetDiscordRole(role models.BiasEntryRole, guild *discordgo.Guild) *discordgo.Role
- func (m *Bias) Init(session *shardmanager.Manager)
- func (m *Bias) MemberHasRole(member *discordgo.Member, role *discordgo.Role) bool
- func (m *Bias) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
- func (m *Bias) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
- func (m *Bias) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
- func (m *Bias) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
- func (m *Bias) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)
- func (m *Bias) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
- func (m *Bias) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
- func (m *Bias) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
- func (m *Bias) Uninit(session *shardmanager.Manager)
- type BiasRoleStat
- type BiasRoleStatList
- type BotStatus
- type Charts
- func (m *Charts) Action(command string, content string, msg *discordgo.Message, ...)
- func (m *Charts) Commands() []string
- func (m *Charts) DoMelonRequest(url string) []byte
- func (m *Charts) GetGaonMonthStats() (string, []GenericAlbumScore)
- func (m *Charts) GetGaonWeekStats() (string, []GenericAlbumScore)
- func (m *Charts) GetGaonYearStats() (string, []GenericAlbumScore)
- func (m *Charts) GetIChartRealtimeStats() (string, []GenericSongScore, bool, bool)
- func (m *Charts) GetIChartWeekStats() (string, []GenericSongScore, bool, bool)
- func (m *Charts) GetMelonDailyStats() (time string, ranks []GenericSongScore)
- func (m *Charts) GetMelonRealtimeStats() (time string, ranks []GenericSongScore)
- func (m *Charts) IChartHrefExtractMVUrl(musicVideoUrl string) string
- func (m *Charts) IChartInMaintenance(doc *goquery.Document) bool
- func (m *Charts) IChartOverloaded(doc *goquery.Document) bool
- func (m *Charts) Init(session *shardmanager.Manager)
- type Choice
- type Color
- type Config
- type Crypto
- type CustomCommands
- func (cc *CustomCommands) Action(command string, content string, msg *discordgo.Message, ...)
- func (cc *CustomCommands) Commands() []string
- func (cc *CustomCommands) Init(session *shardmanager.Manager)
- func (cc *CustomCommands) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
- func (cc *CustomCommands) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
- func (cc *CustomCommands) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
- func (cc *CustomCommands) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
- func (cc *CustomCommands) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)
- func (cc *CustomCommands) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
- func (cc *CustomCommands) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
- func (cc *CustomCommands) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
- func (cc *CustomCommands) Uninit(session *shardmanager.Manager)
- type DM
- func (dm *DM) Action(command string, content string, msg *discordgo.Message, ...)
- func (dm *DM) Commands() []string
- func (dm *DM) DmResponse(msg *discordgo.Message) (response *discordgo.MessageSend)
- func (dm *DM) Init(session *shardmanager.Manager)
- func (dm *DM) OnMessage(session *discordgo.Session, message *discordgo.MessageCreate)
- func (dm *DM) Uninit(session *shardmanager.Manager)
- type Debug
- type Dig
- type DiscordMoney
- type Dog
- type Donators
- type EmbedPost
- type Facebook
- type Facebook_Page
- type Facebook_Post
- type Facebook_Safe_Entries
- type Feedback
- type Friend
- type Gallery
- func (g *Gallery) Action(command string, content string, msg *discordgo.Message, ...)
- func (g *Gallery) Commands() []string
- func (g *Gallery) GetGalleries() (galleries []models.GalleryEntry, err error)
- func (g *Gallery) Init(session *shardmanager.Manager)
- func (g *Gallery) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
- func (g *Gallery) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
- func (g *Gallery) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
- func (g *Gallery) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
- func (g *Gallery) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)
- func (g *Gallery) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
- func (g *Gallery) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
- func (g *Gallery) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
- func (g *Gallery) Uninit(session *shardmanager.Manager)
- type Gallery_PostedMessage
- type GenericAlbumScore
- type GenericSongScore
- type GeniusSearchResult
- type Gfycat
- type GuildAnnouncements
- func (m *GuildAnnouncements) Action(command string, content string, msg *discordgo.Message, ...)
- func (m *GuildAnnouncements) Commands() []string
- func (m *GuildAnnouncements) Init(session *shardmanager.Manager)
- func (m *GuildAnnouncements) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
- func (m *GuildAnnouncements) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
- func (m *GuildAnnouncements) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
- func (m *GuildAnnouncements) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
- func (m *GuildAnnouncements) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)
- func (m *GuildAnnouncements) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
- func (m *GuildAnnouncements) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
- func (m *GuildAnnouncements) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
- func (m *GuildAnnouncements) ReplaceMemberText(message *discordgo.MessageSend, member *discordgo.Member) *discordgo.MessageSend
- func (m *GuildAnnouncements) Uninit(session *shardmanager.Manager)
- type ImageData
- type Imgur
- type ImgurResponse
- type Isup
- type LastFMAccountCachedStats
- type LastFMAccount_Safe_Entries
- type LastFMCombinedGuildStats
- type LastFMSongInfo
- type LastFm
- type Lyrics
- func (l *Lyrics) Action(command string, content string, msg *discordgo.Message, ...)
- func (l *Lyrics) Commands() []string
- func (l *Lyrics) GeniusRequest(location string, object interface{}) error
- func (l *Lyrics) GeniusScrapeLyrics(songApiPath string) (string, error)
- func (l *Lyrics) Init(session *shardmanager.Manager)
- type M8ball
- type MelonDailyStats
- type MelonRealTimeStats
- type MelonSearchAlbumsResults
- type MelonSearchArtistsResults
- type MelonSearchSongResults
- type Mirror
- func (m *Mirror) Action(command string, content string, msg *discordgo.Message, ...)
- func (m *Mirror) Commands() []string
- func (m *Mirror) GetMirrors() (entryBucket []models.MirrorEntry, err error)
- func (m *Mirror) Init(session *shardmanager.Manager)
- func (m *Mirror) OnMessage(session *discordgo.Session, msg *discordgo.MessageCreate)
- func (m *Mirror) OnMessageDelete(session *discordgo.Session, msg *discordgo.MessageDelete)
- func (m *Mirror) Uninit(session *shardmanager.Manager)
- type Mirror_PostedMessage
- type ModulePermissions
- type Move
- type Names
- func (n *Names) Action(command string, content string, msg *discordgo.Message, ...)
- func (n *Names) Commands() []string
- func (n *Names) GetLastNickname(guildID string, userID string) (nickname string, err error)
- func (n *Names) GetLastUsername(userID string) (username string, err error)
- func (n *Names) GetNicknames(guildID string, userID string) (nicknames []string, err error)
- func (n *Names) GetUsernames(userID string) (usernames []string, err error)
- func (n *Names) Init(session *shardmanager.Manager)
- func (n *Names) OnGuildMemberListChunk(session *discordgo.Session, members *discordgo.GuildMembersChunk)
- func (n *Names) OnGuildMemberUpdate(session *discordgo.Session, member *discordgo.GuildMemberUpdate)
- func (n *Names) OnPresenceUpdate(session *discordgo.Session, presence *discordgo.PresenceUpdate)
- func (n *Names) Relax(err error)
- func (n *Names) SaveNickname(guildID string, userID string, nickname string) (err error)
- func (n *Names) SaveUsername(userID string, username string) (err error)
- func (n *Names) UpdateNickname(guildID string, userID string, newNick string) (err error)
- func (n *Names) UpdateUsername(userID string, newUsername string) (err error)
- type Nuke
- type Osu
- type Persistency
- func (p *Persistency) Action(command string, content string, msg *discordgo.Message, ...)
- func (p *Persistency) Commands() []string
- func (p *Persistency) GetPersistentBiasRoles(guildID string) (biasRoles []discordgo.Role)
- func (p *Persistency) GetPersistentCustomRoles(guildID string) (customRoles []discordgo.Role)
- func (p *Persistency) GetPersistentManagedRoles(guildID string) (managedRoles []discordgo.Role)
- func (p *Persistency) GetPersistentRoles(guildID string) (persistentRoles []discordgo.Role)
- func (p *Persistency) Init(session *shardmanager.Manager)
- func (p *Persistency) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
- func (p *Persistency) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
- func (p *Persistency) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
- func (p *Persistency) OnGuildMemberListChunk(session *discordgo.Session, members *discordgo.GuildMembersChunk)
- func (p *Persistency) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
- func (p *Persistency) OnGuildMemberUpdate(session *discordgo.Session, member *discordgo.GuildMemberUpdate)
- func (p *Persistency) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)
- func (p *Persistency) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
- func (p *Persistency) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
- func (p *Persistency) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
- func (p *Persistency) Relax(err error)
- func (p *Persistency) Uninit(session *shardmanager.Manager)
- type PersistencyAction
- type Perspective
- func (m *Perspective) Action(command string, content string, msg *discordgo.Message, ...)
- func (m *Perspective) Commands() []string
- func (m *Perspective) Init(session *shardmanager.Manager)
- func (m *Perspective) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
- func (m *Perspective) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
- func (m *Perspective) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
- func (m *Perspective) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
- func (m *Perspective) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)
- func (m *Perspective) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
- func (m *Perspective) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
- func (m *Perspective) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
- func (m *Perspective) Relax(err error)
- func (m *Perspective) Uninit(session *shardmanager.Manager)
- type PerspectiveMessageResult
- type PerspectiveMessageValues
- type PerspectiveRequest
- type PerspectiveResponse
- type Ping
- type RPS
- type RandomCat
- type RandomCatApiResponse
- type RandomPictures
- func (rp *RandomPictures) Action(command string, content string, msg *discordgo.Message, ...)
- func (rp *RandomPictures) Commands() []string
- func (rp *RandomPictures) GetFileHash(sourceID bson.ObjectId, previousID string, fileID string) string
- func (rp *RandomPictures) Init(session *shardmanager.Manager)
- type RandomPictures_HistoryItem
- type Ratelimit
- type ReactionPollCacheEntry
- type ReactionPolls
- func (rp *ReactionPolls) Action(command string, content string, msg *discordgo.Message, ...)
- func (rp *ReactionPolls) Commands() []string
- func (rp *ReactionPolls) Init(session *shardmanager.Manager)
- func (rp *ReactionPolls) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
- func (rp *ReactionPolls) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
- func (rp *ReactionPolls) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
- func (rp *ReactionPolls) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
- func (rp *ReactionPolls) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)
- func (rp *ReactionPolls) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
- func (rp *ReactionPolls) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
- func (rp *ReactionPolls) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
- func (rp *ReactionPolls) Uninit(session *shardmanager.Manager)
- type Reddit
- type Reminders
- type Spoiler
- type Starboard
- func (s *Starboard) Action(command string, content string, msg *discordgo.Message, ...)
- func (s *Starboard) AddStar(guildID string, msg *discordgo.Message, starUserID string) error
- func (s *Starboard) Commands() []string
- func (s *Starboard) Init(session *shardmanager.Manager)
- func (s *Starboard) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
- func (s *Starboard) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
- func (s *Starboard) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
- func (s *Starboard) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
- func (s *Starboard) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)
- func (s *Starboard) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
- func (s *Starboard) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
- func (s *Starboard) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
- func (s *Starboard) PostOrUpdateDiscordMessage(starEntry models.StarboardEntry) error
- func (s *Starboard) Relax(err error)
- func (s *Starboard) RemoveStar(guildID string, msg *discordgo.Message, starUserID string) error
- func (s *Starboard) Uninit(session *shardmanager.Manager)
- type Stats
- type Steam
- type SteamPlayerResponse
- type SteamPlayerSummaryResponse
- type SteamResolveResponse
- type Storage
- type Streamable
- type Translator
- type Twitch
- type TwitchStatus
- type TwitchUser
- type Twitter
- func (m *Twitter) Action(command string, content string, msg *discordgo.Message, ...)
- func (m *Twitter) Commands() []string
- func (t *Twitter) Init(session *shardmanager.Manager)
- func (t *Twitter) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
- func (t *Twitter) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
- func (t *Twitter) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
- func (t *Twitter) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
- func (t *Twitter) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)
- func (t *Twitter) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
- func (t *Twitter) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
- func (t *Twitter) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
- func (t *Twitter) Uninit(session *shardmanager.Manager)
- type Uptime
- type UrbanDict
- type Useruploads
- type VLive
- type VanityInvite
- type VoiceChannelDurationPair
- type VoiceChannelDurationPairList
- type VoiceSessionStart
- type Weather
- type Whois
- type WolframAlpha
Constants ¶
View Source
const ( GeniusApiBaseUrl = "https://api.genius.com" GeniusBaseUrl = "https://genius.com" )
View Source
const ( PerspectiveThresholdSevereToxicity = 0.60 PerspectiveThresholdInflammatory = 0.60 PerspectiveThresholdObscene = 0.71 PerspectiveMessagesToEvaluate = 3 PerspectiveEndpointAnalyze = "https://commentanalyzer.googleapis.com/v1alpha1/comments:analyze" )
View Source
const ( RedditBaseUrl = "https://www.reddit.com" RedditColor = "ff4500" )
View Source
const ( TwitterFriendlyUser = "https://twitter.com/%s" TwitterFriendlyStatus = "https://twitter.com/%s/status/%s" )
View Source
const ( VliveEndpointDecodeChannelCode = "http://api.vfan.vlive.tv/vproxy/channelplus/decodeChannelCode?app_id=%s&channelCode=%s" VliveEndpointChannel = "" /* 176-byte string literal not displayed */ VliveEndpointChannelVideoList = "http://api.vfan.vlive.tv/vproxy/channelplus/getChannelVideoList?app_id=%s&channelSeq=%d&maxNumOfRows=%d" VliveEndpointUpcomingVideoList = "http://api.vfan.vlive.tv/vproxy/channelplus/getUpcomingVideoList?app_id=%s&channelSeq=%d&maxNumOfRows=%d" VliveEndpointNotices = "http://notice.vlive.tv/notice/list.json?channel_seq=%d" VliveEndpointCeleb = "http://api.vfan.vlive.tv/board.%d/posts?app_id=%s" VliveFriendlyChannel = "http://channels.vlive.tv/%s" VliveFriendlyVideo = "http://www.vlive.tv/video/%d" VliveFriendlyNotice = "http://channels.vlive.tv/%s/notice/%d" VliveFriendlyCeleb = "http://channels.vlive.tv/%s/celeb/%s" VliveFriendlySearch = "http://www.vlive.tv/search/all?query=%s" ChannelIdRegex = "(http(s)?://channels.vlive.tv)?(/)?(channels/)?([A-Z0-9]+)(/video)?" VLiveWorkers = 15 )
View Source
const (
DMReceiveChannelIDKey = "dm:receive:channel-id"
)
View Source
const (
FacebookFriendlyPage = "https://facebook.com/%s/"
)
View Source
const (
PicSize = 200
)
View Source
const (
SpoilerWidth = float64(400)
)
View Source
const (
VOICE_SESSION_SAVE_DURATION_MIN_SECONDS = 60
)
Variables ¶
View Source
var ( BuiltinEmotePattern *regexp.Regexp CustomEmotePattern *regexp.Regexp )
View Source
var ( VoiceSessionStarts []VoiceSessionStart VoiceSessionStartsLock sync.Mutex )
View Source
var RandomCatEndpoint string
View Source
var (
RedditUserAgent = "geddit:Robyul:" + version.BOT_VERSION + " by /u/Seklfreak"
)
View Source
var (
VliveAppId = "8c6cc7b45d2568fb668be6e05b6e5a3b"
)
Functions ¶
Types ¶
type About ¶
type About struct{}
func (*About) Init ¶
func (a *About) Init(session *shardmanager.Manager)
type AutoRoles ¶
type AutoRoles struct {
// contains filtered or unexported fields
}
func (*AutoRoles) Init ¶
func (a *AutoRoles) Init(session *shardmanager.Manager)
func (*AutoRoles) OnGuildBanAdd ¶
func (a *AutoRoles) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
func (*AutoRoles) OnGuildBanRemove ¶
func (a *AutoRoles) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
func (*AutoRoles) OnGuildMemberAdd ¶
func (*AutoRoles) OnGuildMemberRemove ¶
func (*AutoRoles) OnMessageDelete ¶
func (a *AutoRoles) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
func (*AutoRoles) OnReactionAdd ¶
func (a *AutoRoles) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
func (*AutoRoles) OnReactionRemove ¶
func (a *AutoRoles) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
func (*AutoRoles) Uninit ¶
func (a *AutoRoles) Uninit(session *shardmanager.Manager)
type Autoleaver ¶
type Autoleaver struct{}
func (*Autoleaver) Commands ¶
func (a *Autoleaver) Commands() []string
func (*Autoleaver) Init ¶
func (a *Autoleaver) Init(session *shardmanager.Manager)
func (*Autoleaver) OnGuildBanAdd ¶
func (a *Autoleaver) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
func (*Autoleaver) OnGuildBanRemove ¶
func (a *Autoleaver) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
func (*Autoleaver) OnGuildCreate ¶
func (a *Autoleaver) OnGuildCreate(session *discordgo.Session, guild *discordgo.GuildCreate)
func (*Autoleaver) OnGuildDelete ¶
func (a *Autoleaver) OnGuildDelete(session *discordgo.Session, guild *discordgo.GuildDelete)
func (*Autoleaver) OnGuildMemberAdd ¶
func (a *Autoleaver) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
func (*Autoleaver) OnGuildMemberRemove ¶
func (a *Autoleaver) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
func (*Autoleaver) OnMessageDelete ¶
func (a *Autoleaver) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
func (*Autoleaver) OnReactionAdd ¶
func (a *Autoleaver) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
func (*Autoleaver) OnReactionRemove ¶
func (a *Autoleaver) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
func (*Autoleaver) Relax ¶
func (a *Autoleaver) Relax(err error)
func (*Autoleaver) Uninit ¶
func (a *Autoleaver) Uninit(session *shardmanager.Manager)
type Bias ¶
type Bias struct{}
func (*Bias) CategoryRolesAssigned ¶
func (m *Bias) CategoryRolesAssigned(member *discordgo.Member, guildRoles []*discordgo.Role, category models.BiasEntryCategory) []models.BiasEntryRole
func (*Bias) CleanUpRoleName ¶
func (*Bias) GetDiscordRole ¶
func (*Bias) Init ¶
func (m *Bias) Init(session *shardmanager.Manager)
func (*Bias) MemberHasRole ¶
func (*Bias) OnGuildBanAdd ¶
func (m *Bias) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
func (*Bias) OnGuildBanRemove ¶
func (m *Bias) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
func (*Bias) OnGuildMemberAdd ¶
func (*Bias) OnGuildMemberRemove ¶
func (*Bias) OnMessageDelete ¶
func (m *Bias) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
func (*Bias) OnReactionAdd ¶
func (m *Bias) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
func (*Bias) OnReactionRemove ¶
func (m *Bias) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
func (*Bias) Uninit ¶
func (m *Bias) Uninit(session *shardmanager.Manager)
type BiasRoleStat ¶
type BiasRoleStatList ¶
type BiasRoleStatList []BiasRoleStat
func (BiasRoleStatList) Len ¶
func (p BiasRoleStatList) Len() int
func (BiasRoleStatList) Less ¶
func (p BiasRoleStatList) Less(i, j int) bool
func (BiasRoleStatList) Swap ¶
func (p BiasRoleStatList) Swap(i, j int)
type BotStatus ¶
type BotStatus struct{}
func (*BotStatus) Init ¶
func (bs *BotStatus) Init(session *shardmanager.Manager)
type Charts ¶
type Charts struct{}
func (*Charts) DoMelonRequest ¶
func (*Charts) GetGaonMonthStats ¶
func (m *Charts) GetGaonMonthStats() (string, []GenericAlbumScore)
func (*Charts) GetGaonWeekStats ¶
func (m *Charts) GetGaonWeekStats() (string, []GenericAlbumScore)
func (*Charts) GetGaonYearStats ¶
func (m *Charts) GetGaonYearStats() (string, []GenericAlbumScore)
func (*Charts) GetIChartRealtimeStats ¶
func (m *Charts) GetIChartRealtimeStats() (string, []GenericSongScore, bool, bool)
func (*Charts) GetIChartWeekStats ¶
func (m *Charts) GetIChartWeekStats() (string, []GenericSongScore, bool, bool)
func (*Charts) GetMelonDailyStats ¶
func (m *Charts) GetMelonDailyStats() (time string, ranks []GenericSongScore)
func (*Charts) GetMelonRealtimeStats ¶
func (m *Charts) GetMelonRealtimeStats() (time string, ranks []GenericSongScore)
func (*Charts) IChartHrefExtractMVUrl ¶
func (*Charts) IChartInMaintenance ¶
func (*Charts) Init ¶
func (m *Charts) Init(session *shardmanager.Manager)
type Choice ¶
type Choice struct{}
func (*Choice) Init ¶
func (c *Choice) Init(session *shardmanager.Manager)
type Color ¶
type Color struct{}
func (*Color) Init ¶
func (c *Color) Init(session *shardmanager.Manager)
type Config ¶
type Config struct{}
func (*Config) Init ¶
func (m *Config) Init(session *shardmanager.Manager)
type Crypto ¶
type Crypto struct {
// contains filtered or unexported fields
}
func (*Crypto) Init ¶
func (m *Crypto) Init(session *shardmanager.Manager)
type CustomCommands ¶
type CustomCommands struct{}
func (*CustomCommands) Commands ¶
func (cc *CustomCommands) Commands() []string
func (*CustomCommands) Init ¶
func (cc *CustomCommands) Init(session *shardmanager.Manager)
func (*CustomCommands) OnGuildBanAdd ¶
func (cc *CustomCommands) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
func (*CustomCommands) OnGuildBanRemove ¶
func (cc *CustomCommands) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
func (*CustomCommands) OnGuildMemberAdd ¶
func (cc *CustomCommands) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
func (*CustomCommands) OnGuildMemberRemove ¶
func (cc *CustomCommands) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
func (*CustomCommands) OnMessageDelete ¶
func (cc *CustomCommands) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
func (*CustomCommands) OnReactionAdd ¶
func (cc *CustomCommands) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
func (*CustomCommands) OnReactionRemove ¶
func (cc *CustomCommands) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
func (*CustomCommands) Uninit ¶
func (cc *CustomCommands) Uninit(session *shardmanager.Manager)
type DM ¶
type DM struct{}
func (*DM) DmResponse ¶
func (dm *DM) DmResponse(msg *discordgo.Message) (response *discordgo.MessageSend)
func (*DM) Init ¶
func (dm *DM) Init(session *shardmanager.Manager)
func (*DM) OnMessage ¶
func (dm *DM) OnMessage(session *discordgo.Session, message *discordgo.MessageCreate)
func (*DM) Uninit ¶
func (dm *DM) Uninit(session *shardmanager.Manager)
type Debug ¶
type Debug struct{}
func (*Debug) Init ¶
func (d *Debug) Init(session *shardmanager.Manager)
type Dig ¶
type Dig struct{}
func (*Dig) Init ¶
func (d *Dig) Init(session *shardmanager.Manager)
type DiscordMoney ¶
type DiscordMoney struct{}
func (*DiscordMoney) Commands ¶
func (dm *DiscordMoney) Commands() []string
func (*DiscordMoney) Init ¶
func (dm *DiscordMoney) Init(session *shardmanager.Manager)
type Dog ¶
type Dog struct{}
func (*Dog) Init ¶
func (m *Dog) Init(session *shardmanager.Manager)
type Donators ¶
type Donators struct{}
func (*Donators) Init ¶
func (d *Donators) Init(session *shardmanager.Manager)
type EmbedPost ¶
type EmbedPost struct{}
func (*EmbedPost) Init ¶
func (m *EmbedPost) Init(session *shardmanager.Manager)
type Facebook ¶
type Facebook struct{}
func (*Facebook) Init ¶
func (m *Facebook) Init(session *shardmanager.Manager)
type Facebook_Page ¶
type Facebook_Post ¶
type Facebook_Safe_Entries ¶
type Facebook_Safe_Entries struct {
// contains filtered or unexported fields
}
type Feedback ¶
type Feedback struct{}
func (*Feedback) Init ¶
func (f *Feedback) Init(session *shardmanager.Manager)
func (*Feedback) Uninit ¶
func (f *Feedback) Uninit(session *shardmanager.Manager)
type Friend ¶
type Friend struct{}
func (*Friend) Init ¶
func (f *Friend) Init(session *shardmanager.Manager)
type Gallery ¶
type Gallery struct{}
func (*Gallery) GetGalleries ¶
func (g *Gallery) GetGalleries() (galleries []models.GalleryEntry, err error)
func (*Gallery) Init ¶
func (g *Gallery) Init(session *shardmanager.Manager)
func (*Gallery) OnGuildBanAdd ¶
func (g *Gallery) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
func (*Gallery) OnGuildBanRemove ¶
func (g *Gallery) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
func (*Gallery) OnGuildMemberAdd ¶
func (*Gallery) OnGuildMemberRemove ¶
func (*Gallery) OnMessageDelete ¶
func (g *Gallery) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
func (*Gallery) OnReactionAdd ¶
func (g *Gallery) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
func (*Gallery) OnReactionRemove ¶
func (g *Gallery) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
func (*Gallery) Uninit ¶
func (g *Gallery) Uninit(session *shardmanager.Manager)
type Gallery_PostedMessage ¶
type GenericAlbumScore ¶
type GenericSongScore ¶
type GeniusSearchResult ¶
type GeniusSearchResult struct { Meta struct { Status int `json:"status"` } `json:"meta"` Response struct { Hits []struct { Highlights []interface{} `json:"highlights"` Index string `json:"index"` Type string `json:"type"` Result struct { AnnotationCount int `json:"annotation_count"` APIPath string `json:"api_path"` FullTitle string `json:"full_title"` HeaderImageThumbnailURL string `json:"header_image_thumbnail_url"` HeaderImageURL string `json:"header_image_url"` ID int `json:"id"` LyricsOwnerID int `json:"lyrics_owner_id"` LyricsState string `json:"lyrics_state"` Path string `json:"path"` PyongsCount int `json:"pyongs_count"` SongArtImageThumbnailURL string `json:"song_art_image_thumbnail_url"` Stats struct { Hot bool `json:"hot"` UnreviewedAnnotations int `json:"unreviewed_annotations"` Concurrents int `json:"concurrents"` Pageviews int `json:"pageviews"` } `json:"stats"` Title string `json:"title"` TitleWithFeatured string `json:"title_with_featured"` URL string `json:"url"` PrimaryArtist struct { APIPath string `json:"api_path"` HeaderImageURL string `json:"header_image_url"` ID int `json:"id"` ImageURL string `json:"image_url"` IsMemeVerified bool `json:"is_meme_verified"` IsVerified bool `json:"is_verified"` Name string `json:"name"` URL string `json:"url"` } `json:"primary_artist"` } `json:"result"` } `json:"hits"` } `json:"response"` }
type Gfycat ¶
type Gfycat struct{}
func (*Gfycat) Init ¶
func (m *Gfycat) Init(session *shardmanager.Manager)
type GuildAnnouncements ¶
type GuildAnnouncements struct{}
func (*GuildAnnouncements) Commands ¶
func (m *GuildAnnouncements) Commands() []string
func (*GuildAnnouncements) Init ¶
func (m *GuildAnnouncements) Init(session *shardmanager.Manager)
func (*GuildAnnouncements) OnGuildBanAdd ¶
func (m *GuildAnnouncements) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
func (*GuildAnnouncements) OnGuildBanRemove ¶
func (m *GuildAnnouncements) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
func (*GuildAnnouncements) OnGuildMemberAdd ¶
func (m *GuildAnnouncements) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
func (*GuildAnnouncements) OnGuildMemberRemove ¶
func (m *GuildAnnouncements) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
func (*GuildAnnouncements) OnMessageDelete ¶
func (m *GuildAnnouncements) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
func (*GuildAnnouncements) OnReactionAdd ¶
func (m *GuildAnnouncements) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
func (*GuildAnnouncements) OnReactionRemove ¶
func (m *GuildAnnouncements) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
func (*GuildAnnouncements) ReplaceMemberText ¶
func (m *GuildAnnouncements) ReplaceMemberText(message *discordgo.MessageSend, member *discordgo.Member) *discordgo.MessageSend
func (*GuildAnnouncements) Uninit ¶
func (m *GuildAnnouncements) Uninit(session *shardmanager.Manager)
type ImageData ¶
type ImageData struct { Account_id int `json:"account_id"` Animated bool `json:"animated"` Bandwidth int `json:"bandwidth"` DateTime int `json:"datetime"` Deletehash string `json:"deletehash"` Favorite bool `json:"favorite"` Height int `json:"height"` Id string `json:"id"` In_gallery bool `json:"in_gallery"` Is_ad bool `json:"is_ad"` Link string `json:"link"` Name string `json:"name"` Size int `json:"size"` Title string `json:"title"` Type string `json:"type"` Views int `json:"views"` Width int `json:"width"` Error string `json:"error"` Request string `json:"request"` Method string `json:"method"` }
type Imgur ¶
type Imgur struct{}
func (*Imgur) Init ¶
func (i *Imgur) Init(session *shardmanager.Manager)
type ImgurResponse ¶
type Isup ¶
type Isup struct{}
func (*Isup) Init ¶
func (iu *Isup) Init(session *shardmanager.Manager)
type LastFMAccountCachedStats ¶
type LastFMAccountCachedStats struct { UserID string Overall []LastFMSongInfo SevenDay []LastFMSongInfo OneMonth []LastFMSongInfo ThreeMonth []LastFMSongInfo SixMonth []LastFMSongInfo TwelveMonth []LastFMSongInfo }
type LastFMAccount_Safe_Entries ¶
type LastFMAccount_Safe_Entries struct {
// contains filtered or unexported fields
}
type LastFMCombinedGuildStats ¶
type LastFMCombinedGuildStats struct { GuildID string NumberOfUsers int Overall []LastFMSongInfo SevenDay []LastFMSongInfo OneMonth []LastFMSongInfo ThreeMonth []LastFMSongInfo SixMonth []LastFMSongInfo TwelveMonth []LastFMSongInfo }
type LastFMSongInfo ¶
type LastFm ¶
type LastFm struct{}
func (*LastFm) Init ¶
func (m *LastFm) Init(session *shardmanager.Manager)
type Lyrics ¶
type Lyrics struct{}
func (*Lyrics) GeniusRequest ¶
func (*Lyrics) GeniusScrapeLyrics ¶
func (*Lyrics) Init ¶
func (l *Lyrics) Init(session *shardmanager.Manager)
type M8ball ¶
type M8ball struct{}
func (*M8ball) Init ¶
func (m8 *M8ball) Init(session *shardmanager.Manager)
type MelonDailyStats ¶
type MelonDailyStats struct { Melon struct { MenuID int `json:"menuId"` Count int `json:"count"` Page int `json:"page"` TotalPages int `json:"totalPages"` Songs struct { Song []struct { SongID int `json:"songId"` SongName string `json:"songName"` Artists struct { Artist []struct { ArtistID int `json:"artistId"` ArtistName string `json:"artistName"` } `json:"artist"` } `json:"artists"` AlbumID int `json:"albumId"` AlbumName string `json:"albumName"` CurrentRank int `json:"currentRank"` PastRank int `json:"pastRank"` RankDay int `json:"rankDay"` PlayTime int `json:"playTime"` IsTitleSong string `json:"isTitleSong"` IsHitSong string `json:"isHitSong"` IsAdult string `json:"isAdult"` IsFree string `json:"isFree"` } `json:"song"` } `json:"songs"` } `json:"melon"` }
type MelonRealTimeStats ¶
type MelonRealTimeStats struct { Melon struct { MenuID int `json:"menuId"` Count int `json:"count"` Page int `json:"page"` TotalPages int `json:"totalPages"` RankDay string `json:"rankDay"` RankHour string `json:"rankHour"` Songs struct { Song []struct { SongID int `json:"songId"` SongName string `json:"songName"` Artists struct { Artist []struct { ArtistID int `json:"artistId"` ArtistName string `json:"artistName"` } `json:"artist"` } `json:"artists"` AlbumID int `json:"albumId"` AlbumName string `json:"albumName"` CurrentRank int `json:"currentRank"` PastRank int `json:"pastRank"` PlayTime int `json:"playTime"` IssueDate string `json:"issueDate"` IsTitleSong string `json:"isTitleSong"` IsHitSong string `json:"isHitSong"` IsAdult string `json:"isAdult"` IsFree string `json:"isFree"` } `json:"song"` } `json:"songs"` } `json:"melon"` }
type MelonSearchAlbumsResults ¶
type MelonSearchAlbumsResults struct { Melon struct { MenuID int `json:"menuId"` Count int `json:"count"` Page int `json:"page"` TotalPages int `json:"totalPages"` TotalCount int `json:"totalCount"` Albums struct { Album []struct { AlbumID int `json:"albumId"` AlbumName string `json:"albumName"` Artists struct { Artist []struct { ArtistID int `json:"artistId"` ArtistName string `json:"artistName"` } `json:"artist"` } `json:"artists"` AverageScore string `json:"averageScore"` IssueDate string `json:"issueDate"` } `json:"album"` } `json:"albums"` } `json:"melon"` }
type MelonSearchArtistsResults ¶
type MelonSearchArtistsResults struct { Melon struct { MenuID int `json:"menuId"` Count int `json:"count"` Page int `json:"page"` TotalPages int `json:"totalPages"` TotalCount int `json:"totalCount"` Artists struct { Artist []struct { ArtistID int `json:"artistId"` ArtistName string `json:"artistName"` Sex string `json:"sex"` NationalityName string `json:"nationalityName"` ActTypeName string `json:"actTypeName"` GenreNames string `json:"genreNames"` } `json:"artist"` } `json:"artists"` } `json:"melon"` }
type MelonSearchSongResults ¶
type MelonSearchSongResults struct { Melon struct { MenuID int `json:"menuId"` Count int `json:"count"` Page int `json:"page"` TotalPages int `json:"totalPages"` TotalCount int `json:"totalCount"` Songs struct { Song []struct { SongID string `json:"songId"` SongName string `json:"songName"` AlbumID int `json:"albumId"` AlbumName string `json:"albumName"` Artists struct { Artist []struct { ArtistID int `json:"artistId"` ArtistName string `json:"artistName"` } `json:"artist"` } `json:"artists"` PlayTime int `json:"playTime"` IssueDate string `json:"issueDate"` IsTitleSong string `json:"isTitleSong"` IsHitSong string `json:"isHitSong"` IsAdult string `json:"isAdult"` IsFree string `json:"isFree"` } `json:"song"` } `json:"songs"` } `json:"melon"` }
type Mirror ¶
type Mirror struct{}
func (*Mirror) GetMirrors ¶
func (m *Mirror) GetMirrors() (entryBucket []models.MirrorEntry, err error)
func (*Mirror) Init ¶
func (m *Mirror) Init(session *shardmanager.Manager)
func (*Mirror) OnMessage ¶
func (m *Mirror) OnMessage(session *discordgo.Session, msg *discordgo.MessageCreate)
func (*Mirror) OnMessageDelete ¶
func (m *Mirror) OnMessageDelete(session *discordgo.Session, msg *discordgo.MessageDelete)
func (*Mirror) Uninit ¶
func (m *Mirror) Uninit(session *shardmanager.Manager)
type Mirror_PostedMessage ¶
type ModulePermissions ¶
type ModulePermissions struct{}
func (*ModulePermissions) Commands ¶
func (mp *ModulePermissions) Commands() []string
func (*ModulePermissions) Init ¶
func (mp *ModulePermissions) Init(session *shardmanager.Manager)
func (*ModulePermissions) Uninit ¶
func (mp *ModulePermissions) Uninit(session *shardmanager.Manager)
type Move ¶
type Move struct { }
func (*Move) Init ¶
func (m *Move) Init(session *shardmanager.Manager)
type Names ¶
type Names struct{}
func (*Names) GetLastNickname ¶
func (*Names) GetLastUsername ¶
func (*Names) GetNicknames ¶
func (*Names) GetUsernames ¶
func (*Names) Init ¶
func (n *Names) Init(session *shardmanager.Manager)
func (*Names) OnGuildMemberListChunk ¶
func (n *Names) OnGuildMemberListChunk(session *discordgo.Session, members *discordgo.GuildMembersChunk)
func (*Names) OnGuildMemberUpdate ¶
func (n *Names) OnGuildMemberUpdate(session *discordgo.Session, member *discordgo.GuildMemberUpdate)
func (*Names) OnPresenceUpdate ¶
func (n *Names) OnPresenceUpdate(session *discordgo.Session, presence *discordgo.PresenceUpdate)
func (*Names) SaveNickname ¶
func (*Names) SaveUsername ¶
func (*Names) UpdateNickname ¶
type Nuke ¶
type Nuke struct{}
func (*Nuke) Init ¶
func (n *Nuke) Init(session *shardmanager.Manager)
type Osu ¶
type Osu struct{}
func (*Osu) Init ¶
func (o *Osu) Init(session *shardmanager.Manager)
type Persistency ¶
type Persistency struct{}
func (*Persistency) Commands ¶
func (p *Persistency) Commands() []string
func (*Persistency) GetPersistentBiasRoles ¶
func (p *Persistency) GetPersistentBiasRoles(guildID string) (biasRoles []discordgo.Role)
func (*Persistency) GetPersistentCustomRoles ¶
func (p *Persistency) GetPersistentCustomRoles(guildID string) (customRoles []discordgo.Role)
func (*Persistency) GetPersistentManagedRoles ¶
func (p *Persistency) GetPersistentManagedRoles(guildID string) (managedRoles []discordgo.Role)
func (*Persistency) GetPersistentRoles ¶
func (p *Persistency) GetPersistentRoles(guildID string) (persistentRoles []discordgo.Role)
func (*Persistency) Init ¶
func (p *Persistency) Init(session *shardmanager.Manager)
func (*Persistency) OnGuildBanAdd ¶
func (p *Persistency) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
func (*Persistency) OnGuildBanRemove ¶
func (p *Persistency) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
func (*Persistency) OnGuildMemberAdd ¶
func (p *Persistency) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
func (*Persistency) OnGuildMemberListChunk ¶
func (p *Persistency) OnGuildMemberListChunk(session *discordgo.Session, members *discordgo.GuildMembersChunk)
func (*Persistency) OnGuildMemberRemove ¶
func (p *Persistency) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
func (*Persistency) OnGuildMemberUpdate ¶
func (p *Persistency) OnGuildMemberUpdate(session *discordgo.Session, member *discordgo.GuildMemberUpdate)
func (*Persistency) OnMessageDelete ¶
func (p *Persistency) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
func (*Persistency) OnReactionAdd ¶
func (p *Persistency) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
func (*Persistency) OnReactionRemove ¶
func (p *Persistency) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
func (*Persistency) Relax ¶
func (p *Persistency) Relax(err error)
func (*Persistency) Uninit ¶
func (p *Persistency) Uninit(session *shardmanager.Manager)
type PersistencyAction ¶
type PersistencyAction func(args []string, in *discordgo.Message, out **discordgo.MessageSend) (next PersistencyAction)
type Perspective ¶
type Perspective struct {
// contains filtered or unexported fields
}
func (*Perspective) Commands ¶
func (m *Perspective) Commands() []string
func (*Perspective) Init ¶
func (m *Perspective) Init(session *shardmanager.Manager)
func (*Perspective) OnGuildBanAdd ¶
func (m *Perspective) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
func (*Perspective) OnGuildBanRemove ¶
func (m *Perspective) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
func (*Perspective) OnGuildMemberAdd ¶
func (m *Perspective) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
func (*Perspective) OnGuildMemberRemove ¶
func (m *Perspective) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
func (*Perspective) OnMessageDelete ¶
func (m *Perspective) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
func (*Perspective) OnReactionAdd ¶
func (m *Perspective) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
func (*Perspective) OnReactionRemove ¶
func (m *Perspective) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
func (*Perspective) Relax ¶
func (m *Perspective) Relax(err error)
func (*Perspective) Uninit ¶
func (m *Perspective) Uninit(session *shardmanager.Manager)
type PerspectiveMessageResult ¶
type PerspectiveMessageResult struct {
// contains filtered or unexported fields
}
type PerspectiveRequest ¶
type PerspectiveRequest struct { Comment struct { Text string `json:"text"` } `json:"comment"` Languages []string `json:"languages"` RequestedAttributes struct { SevereToxicity struct{} `json:"SEVERE_TOXICITY"` Inflammatory struct{} `json:"INFLAMMATORY"` Obscene struct{} `json:"OBSCENE"` } `json:"requestedAttributes"` }
type PerspectiveResponse ¶
type PerspectiveResponse struct { AttributeScores struct { SevereToxicity struct { SummaryScore struct { Value float64 `json:"value"` Type string `json:"type"` } `json:"summaryScore"` } `json:"SEVERE_TOXICITY"` Inflammatory struct { SummaryScore struct { Value float64 `json:"value"` Type string `json:"type"` } `json:"summaryScore"` } `json:"INFLAMMATORY"` Obscene struct { SummaryScore struct { Value float64 `json:"value"` Type string `json:"type"` } `json:"summaryScore"` } `json:"OBSCENE"` } `json:"attributeScores"` }
type Ping ¶
type Ping struct{}
func (*Ping) Init ¶
func (p *Ping) Init(session *shardmanager.Manager)
type RPS ¶
type RPS struct{}
func (*RPS) Init ¶
func (r *RPS) Init(session *shardmanager.Manager)
type RandomCat ¶
type RandomCat struct{}
func (RandomCat) Init ¶
func (rc RandomCat) Init(session *shardmanager.Manager)
type RandomCatApiResponse ¶
type RandomPictures ¶
type RandomPictures struct{}
func (*RandomPictures) Commands ¶
func (rp *RandomPictures) Commands() []string
func (*RandomPictures) GetFileHash ¶
func (*RandomPictures) Init ¶
func (rp *RandomPictures) Init(session *shardmanager.Manager)
type Ratelimit ¶
type Ratelimit struct{}
func (*Ratelimit) Init ¶
func (r *Ratelimit) Init(session *shardmanager.Manager)
type ReactionPollCacheEntry ¶
type ReactionPolls ¶
type ReactionPolls struct{}
func (*ReactionPolls) Commands ¶
func (rp *ReactionPolls) Commands() []string
func (*ReactionPolls) Init ¶
func (rp *ReactionPolls) Init(session *shardmanager.Manager)
@TODO: add metrics
func (*ReactionPolls) OnGuildBanAdd ¶
func (rp *ReactionPolls) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
func (*ReactionPolls) OnGuildBanRemove ¶
func (rp *ReactionPolls) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
func (*ReactionPolls) OnGuildMemberAdd ¶
func (rp *ReactionPolls) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)
func (*ReactionPolls) OnGuildMemberRemove ¶
func (rp *ReactionPolls) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)
func (*ReactionPolls) OnMessageDelete ¶
func (rp *ReactionPolls) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
func (*ReactionPolls) OnReactionAdd ¶
func (rp *ReactionPolls) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
func (*ReactionPolls) OnReactionRemove ¶
func (rp *ReactionPolls) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
func (*ReactionPolls) Uninit ¶
func (rp *ReactionPolls) Uninit(session *shardmanager.Manager)
type Reddit ¶
type Reddit struct {
// contains filtered or unexported fields
}
func (*Reddit) Init ¶
func (r *Reddit) Init(session *shardmanager.Manager)
type Reminders ¶
type Reminders struct {
// contains filtered or unexported fields
}
func (*Reminders) Init ¶
func (r *Reminders) Init(session *shardmanager.Manager)
type Spoiler ¶
type Spoiler struct {
// contains filtered or unexported fields
}
func (*Spoiler) Init ¶
func (s *Spoiler) Init(session *shardmanager.Manager)
type Starboard ¶
type Starboard struct{}
func (*Starboard) Init ¶
func (s *Starboard) Init(session *shardmanager.Manager)
func (*Starboard) OnGuildBanAdd ¶
func (s *Starboard) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
func (*Starboard) OnGuildBanRemove ¶
func (s *Starboard) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
func (*Starboard) OnGuildMemberAdd ¶
func (*Starboard) OnGuildMemberRemove ¶
func (*Starboard) OnMessageDelete ¶
func (s *Starboard) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
func (*Starboard) OnReactionAdd ¶
func (s *Starboard) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
func (*Starboard) OnReactionRemove ¶
func (s *Starboard) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
func (*Starboard) PostOrUpdateDiscordMessage ¶
func (s *Starboard) PostOrUpdateDiscordMessage(starEntry models.StarboardEntry) error
func (*Starboard) RemoveStar ¶
func (*Starboard) Uninit ¶
func (s *Starboard) Uninit(session *shardmanager.Manager)
type Stats ¶
type Stats struct{}
func (*Stats) Init ¶
func (s *Stats) Init(session *shardmanager.Manager)
type Steam ¶
type Steam struct {
// contains filtered or unexported fields
}
func (*Steam) Init ¶
func (m *Steam) Init(session *shardmanager.Manager)
type SteamPlayerResponse ¶
type SteamPlayerResponse struct { Steamid string `json:"steamid"` Communityvisibilitystate int `json:"communityvisibilitystate"` Profilestate int `json:"profilestate"` Personaname string `json:"personaname"` Lastlogoff int64 `json:"lastlogoff"` Commentpermission int `json:"commentpermission"` Profileurl string `json:"profileurl"` Avatar string `json:"avatar"` Avatarmedium string `json:"avatarmedium"` Avatarfull string `json:"avatarfull"` Personastate int `json:"personastate"` Realname string `json:"realname"` Primaryclanid string `json:"primaryclanid"` Timecreated int64 `json:"timecreated"` Personastateflags int `json:"personastateflags"` Loccountrycode string `json:"loccountrycode"` Locstatecode string `json:"locstatecode"` Loccityid int `json:"loccityid"` Gameextrainfo string `json:"gameextrainfo"` Gameid string `json:"gameid"` }
type SteamPlayerSummaryResponse ¶
type SteamPlayerSummaryResponse struct { Response struct { Players []SteamPlayerResponse `json:"players"` } `json:"response"` }
type SteamResolveResponse ¶
type Storage ¶
type Storage struct{}
func (*Storage) Init ¶
func (m *Storage) Init(session *shardmanager.Manager)
type Streamable ¶
type Streamable struct{}
func (*Streamable) Commands ¶
func (s *Streamable) Commands() []string
func (*Streamable) Init ¶
func (s *Streamable) Init(session *shardmanager.Manager)
type Translator ¶
type Translator struct {
// contains filtered or unexported fields
}
func (*Translator) Commands ¶
func (t *Translator) Commands() []string
func (*Translator) Init ¶
func (t *Translator) Init(session *shardmanager.Manager)
type Twitch ¶
type Twitch struct {
// contains filtered or unexported fields
}
func (*Twitch) Init ¶
func (m *Twitch) Init(session *shardmanager.Manager)
type TwitchStatus ¶
type TwitchStatus struct { Stream struct { ID int64 `json:"_id"` Game string `json:"game"` Viewers int `json:"viewers"` VideoHeight int `json:"video_height"` AverageFps float64 `json:"average_fps"` Delay int `json:"delay"` CreatedAt time.Time `json:"created_at"` IsPlaylist bool `json:"is_playlist"` Preview struct { Small string `json:"small"` Medium string `json:"medium"` Large string `json:"large"` Template string `json:"template"` } `json:"preview"` Channel struct { Mature bool `json:"mature"` Partner bool `json:"partner"` Status string `json:"status"` BroadcasterLanguage string `json:"broadcaster_language"` DisplayName string `json:"display_name"` Game string `json:"game"` Language string `json:"language"` ID int `json:"_id"` Name string `json:"name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Delay interface{} `json:"delay"` Logo string `json:"logo"` Banner interface{} `json:"banner"` VideoBanner string `json:"video_banner"` Background interface{} `json:"background"` ProfileBanner string `json:"profile_banner"` ProfileBannerBackgroundColor interface{} `json:"profile_banner_background_color"` URL string `json:"url"` Views int `json:"views"` Followers int `json:"followers"` Links struct { Self string `json:"self"` Follows string `json:"follows"` Commercial string `json:"commercial"` StreamKey string `json:"stream_key"` Chat string `json:"chat"` Features string `json:"features"` Subscriptions string `json:"subscriptions"` Editors string `json:"editors"` Teams string `json:"teams"` Videos string `json:"videos"` } `json:"_links"` } `json:"channel"` Links struct { Self string `json:"self"` } `json:"_links"` } `json:"stream"` Links struct { Self string `json:"self"` Channel string `json:"channel"` } `json:"_links"` }
type TwitchUser ¶
type TwitchUser struct { Data []struct { ID string `json:"id"` Login string `json:"login"` DisplayName string `json:"display_name"` Type string `json:"type"` BroadcasterType string `json:"broadcaster_type"` Description string `json:"description"` ProfileImageURL string `json:"profile_image_url"` OfflineImageURL string `json:"offline_image_url"` ViewCount int `json:"view_count"` } `json:"data"` }
type Twitter ¶
type Twitter struct{}
func (*Twitter) Init ¶
func (t *Twitter) Init(session *shardmanager.Manager)
func (*Twitter) OnGuildBanAdd ¶
func (t *Twitter) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)
func (*Twitter) OnGuildBanRemove ¶
func (t *Twitter) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)
func (*Twitter) OnGuildMemberAdd ¶
func (*Twitter) OnGuildMemberRemove ¶
func (*Twitter) OnMessageDelete ¶
func (t *Twitter) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)
func (*Twitter) OnReactionAdd ¶
func (t *Twitter) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)
func (*Twitter) OnReactionRemove ¶
func (t *Twitter) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)
func (*Twitter) Uninit ¶
func (t *Twitter) Uninit(session *shardmanager.Manager)
type Uptime ¶
type Uptime struct{}
func (*Uptime) Init ¶
func (u *Uptime) Init(session *shardmanager.Manager)
type UrbanDict ¶
type UrbanDict struct{}
func (*UrbanDict) Init ¶
func (u *UrbanDict) Init(session *shardmanager.Manager)
type Useruploads ¶
type Useruploads struct{}
func (*Useruploads) Commands ¶
func (m *Useruploads) Commands() []string
func (*Useruploads) Init ¶
func (m *Useruploads) Init(session *shardmanager.Manager)
func (*Useruploads) Relax ¶
func (m *Useruploads) Relax(err error)
type VLive ¶
type VLive struct{}
func (*VLive) Init ¶
func (r *VLive) Init(session *shardmanager.Manager)
type VanityInvite ¶
type VanityInvite struct{}
func (VanityInvite) Commands ¶
func (vi VanityInvite) Commands() []string
func (VanityInvite) Init ¶
func (vi VanityInvite) Init(session *shardmanager.Manager)
type VoiceChannelDurationPairList ¶
type VoiceChannelDurationPairList []VoiceChannelDurationPair
func (VoiceChannelDurationPairList) Len ¶
func (p VoiceChannelDurationPairList) Len() int
func (VoiceChannelDurationPairList) Less ¶
func (p VoiceChannelDurationPairList) Less(i, j int) bool
func (VoiceChannelDurationPairList) Swap ¶
func (p VoiceChannelDurationPairList) Swap(i, j int)
type VoiceSessionStart ¶
type Weather ¶
type Weather struct {
// contains filtered or unexported fields
}
func (*Weather) Init ¶
func (w *Weather) Init(session *shardmanager.Manager)
type Whois ¶
type Whois struct{}
func (*Whois) Init ¶
func (w *Whois) Init(session *shardmanager.Manager)
type WolframAlpha ¶
type WolframAlpha struct{}
func (*WolframAlpha) Commands ¶
func (m *WolframAlpha) Commands() []string
func (*WolframAlpha) Init ¶
func (m *WolframAlpha) Init(session *shardmanager.Manager)
Source Files ¶
- about.go
- autoleaver.go
- autorole.go
- bias.go
- botstatus.go
- charts.go
- choice.go
- color.go
- config.go
- crypto.go
- customcommands.go
- debug.go
- dig.go
- discordmoney.go
- dm.go
- dog.go
- donators.go
- embedpost.go
- facebook.go
- feedback.go
- friends.go
- gallery.go
- gfycat.go
- guildannouncements.go
- imgur.go
- isup.go
- lastfm.go
- lyrics.go
- m8ball.go
- mirror.go
- modulepermissions.go
- move.go
- names.go
- nuke.go
- osu.go
- persistency.go
- perspective.go
- ping.go
- random_cat.go
- randompictures.go
- ratelimit.go
- reactionpolls.go
- reddit.go
- reminders.go
- rps.go
- spoiler.go
- starboard.go
- stats.go
- steam.go
- storage.go
- streamable.go
- translator.go
- twitch.go
- twitter.go
- uptime.go
- urbandict.go
- useruploads.go
- vanityinvite.go
- vlive.go
- weather.go
- whois.go
- wolframalpha.go
Click to show internal directories.
Click to hide internal directories.