plugins

package
v0.0.0-...-07de05f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2022 License: AGPL-3.0 Imports: 77 Imported by: 0

Documentation

Index

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

func AutoroleApply

func AutoroleApply(guildID string, userID string, roleID string) (err error)

func AutoroleApplySignature

func AutoroleApplySignature(guildID string, userID string, roleID string) (signature *tasks.Signature)

Types

type About

type About struct{}

func (*About) Action

func (a *About) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*About) Commands

func (a *About) Commands() []string

func (*About) Init

func (a *About) Init(session *shardmanager.Manager)

type AutoRoles

type AutoRoles struct {
	// contains filtered or unexported fields
}

func (*AutoRoles) Action

func (a *AutoRoles) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*AutoRoles) Commands

func (a *AutoRoles) Commands() []string

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 (a *AutoRoles) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)

func (*AutoRoles) OnGuildMemberRemove

func (a *AutoRoles) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)

func (*AutoRoles) OnMessage

func (a *AutoRoles) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)

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) Action

func (a *Autoleaver) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

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) OnMessage

func (a *Autoleaver) OnMessage(content string, msg *discordgo.Message, 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) Action

func (m *Bias) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Bias) CategoryRolesAssigned

func (m *Bias) CategoryRolesAssigned(member *discordgo.Member, guildRoles []*discordgo.Role, category models.BiasEntryCategory) []models.BiasEntryRole

func (*Bias) CleanUpRoleName

func (m *Bias) CleanUpRoleName(inputName string) string

func (*Bias) Commands

func (m *Bias) Commands() []string

func (*Bias) GetDiscordRole

func (m *Bias) GetDiscordRole(role models.BiasEntryRole, guild *discordgo.Guild) *discordgo.Role

func (*Bias) Init

func (m *Bias) Init(session *shardmanager.Manager)

func (*Bias) MemberHasRole

func (m *Bias) MemberHasRole(member *discordgo.Member, role *discordgo.Role) bool

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 (m *Bias) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)

func (*Bias) OnGuildMemberRemove

func (m *Bias) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)

func (*Bias) OnMessage

func (m *Bias) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)

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 BiasRoleStat struct {
	RoleName string
	Members  int
}

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) Action

func (bs *BotStatus) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*BotStatus) Commands

func (bs *BotStatus) Commands() []string

func (*BotStatus) Init

func (bs *BotStatus) Init(session *shardmanager.Manager)

type Charts

type Charts struct{}

func (*Charts) Action

func (m *Charts) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Charts) Commands

func (m *Charts) Commands() []string

func (*Charts) DoMelonRequest

func (m *Charts) DoMelonRequest(url string) []byte

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 (m *Charts) IChartHrefExtractMVUrl(musicVideoUrl string) string

func (*Charts) IChartInMaintenance

func (m *Charts) IChartInMaintenance(doc *goquery.Document) bool

func (*Charts) IChartOverloaded

func (m *Charts) IChartOverloaded(doc *goquery.Document) bool

func (*Charts) Init

func (m *Charts) Init(session *shardmanager.Manager)

type Choice

type Choice struct{}

func (*Choice) Action

func (c *Choice) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Choice) Commands

func (c *Choice) Commands() []string

func (*Choice) Init

func (c *Choice) Init(session *shardmanager.Manager)

type Color

type Color struct{}

func (*Color) Action

func (c *Color) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Color) Commands

func (c *Color) Commands() []string

func (*Color) Init

func (c *Color) Init(session *shardmanager.Manager)

type Config

type Config struct{}

func (*Config) Action

func (m *Config) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Config) Commands

func (m *Config) Commands() []string

func (*Config) Init

func (m *Config) Init(session *shardmanager.Manager)

func (*Config) Relax

func (m *Config) Relax(err error)

type Crypto

type Crypto struct {
	// contains filtered or unexported fields
}

func (*Crypto) Action

func (m *Crypto) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Crypto) Commands

func (m *Crypto) Commands() []string

func (*Crypto) Init

func (m *Crypto) Init(session *shardmanager.Manager)

func (*Crypto) Relax

func (m *Crypto) Relax(err error)

type CustomCommands

type CustomCommands struct{}

func (*CustomCommands) Action

func (cc *CustomCommands) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

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) OnMessage

func (cc *CustomCommands) OnMessage(content string, msg *discordgo.Message, 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) Action

func (dm *DM) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*DM) Commands

func (dm *DM) Commands() []string

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) Action

func (d *Debug) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Debug) Commands

func (d *Debug) Commands() []string

func (*Debug) Init

func (d *Debug) Init(session *shardmanager.Manager)

type Dig

type Dig struct{}

func (*Dig) Action

func (d *Dig) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Dig) Commands

func (d *Dig) Commands() []string

func (*Dig) Init

func (d *Dig) Init(session *shardmanager.Manager)

type DiscordMoney

type DiscordMoney struct{}

func (*DiscordMoney) Action

func (dm *DiscordMoney) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

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) Action

func (m *Dog) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Dog) Commands

func (m *Dog) Commands() []string

func (*Dog) Init

func (m *Dog) Init(session *shardmanager.Manager)

type Donators

type Donators struct{}

func (*Donators) Action

func (d *Donators) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Donators) Commands

func (d *Donators) Commands() []string

func (*Donators) Init

func (d *Donators) Init(session *shardmanager.Manager)

type EmbedPost

type EmbedPost struct{}

func (*EmbedPost) Action

func (m *EmbedPost) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*EmbedPost) Commands

func (m *EmbedPost) Commands() []string

func (*EmbedPost) Init

func (m *EmbedPost) Init(session *shardmanager.Manager)

type Facebook

type Facebook struct{}

func (*Facebook) Action

func (m *Facebook) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Facebook) Commands

func (m *Facebook) Commands() []string

func (*Facebook) Init

func (m *Facebook) Init(session *shardmanager.Manager)

type Facebook_Page

type Facebook_Page struct {
	ID                string
	Name              string
	About             string
	Likes             int64
	Username          string
	Verified          bool
	ProfilePictureUrl string
	Website           string
	Posts             []Facebook_Post
}

type Facebook_Post

type Facebook_Post struct {
	ID         string
	Message    string
	CreatedAt  string
	PictureUrl string
	Url        string
}

type Facebook_Safe_Entries

type Facebook_Safe_Entries struct {
	// contains filtered or unexported fields
}

type Feedback

type Feedback struct{}

func (*Feedback) Action

func (f *Feedback) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Feedback) Commands

func (f *Feedback) Commands() []string

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) Action

func (f *Friend) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Friend) Commands

func (f *Friend) Commands() []string

func (*Friend) Init

func (f *Friend) Init(session *shardmanager.Manager)

func (*Friend) Relax

func (f *Friend) Relax(err error)
type Gallery struct{}

func (*Gallery) Action

func (g *Gallery) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Gallery) Commands

func (g *Gallery) Commands() []string

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 (g *Gallery) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)

func (*Gallery) OnGuildMemberRemove

func (g *Gallery) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)

func (*Gallery) OnMessage

func (g *Gallery) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)

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 struct {
	ChannelID string
	MessageID string
}

type GenericAlbumScore

type GenericAlbumScore struct {
	Artist      string
	Album       string
	CurrentRank int
	PastRank    int
	IsNew       bool
}

type GenericSongScore

type GenericSongScore struct {
	Title         string
	Artist        string
	Album         string
	CurrentRank   int
	PastRank      int
	IsNew         bool
	MusicVideoUrl string
}

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) Action

func (m *Gfycat) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Gfycat) Commands

func (m *Gfycat) Commands() []string

func (*Gfycat) Init

func (m *Gfycat) Init(session *shardmanager.Manager)

type GuildAnnouncements

type GuildAnnouncements struct{}

func (*GuildAnnouncements) Action

func (m *GuildAnnouncements) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

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) OnMessage

func (m *GuildAnnouncements) OnMessage(content string, msg *discordgo.Message, 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) Action

func (i *Imgur) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Imgur) Commands

func (i *Imgur) Commands() []string

func (*Imgur) Init

func (i *Imgur) Init(session *shardmanager.Manager)

type ImgurResponse

type ImgurResponse struct {
	Data    ImageData `json:"data"`
	Status  int       `json:"status"`
	Success bool      `json:"success"`
}

type Isup

type Isup struct{}

func (*Isup) Action

func (iu *Isup) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Isup) Commands

func (iu *Isup) Commands() []string

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 LastFMSongInfo struct {
	Name       string
	Url        string
	ArtistName string
	ArtistURL  string
	ImageURL   string
	Plays      int
	Users      int
}

type LastFm

type LastFm struct{}

func (*LastFm) Action

func (m *LastFm) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*LastFm) Commands

func (m *LastFm) Commands() []string

func (*LastFm) Init

func (m *LastFm) Init(session *shardmanager.Manager)

type Lyrics

type Lyrics struct{}

func (*Lyrics) Action

func (l *Lyrics) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Lyrics) Commands

func (l *Lyrics) Commands() []string

func (*Lyrics) GeniusRequest

func (l *Lyrics) GeniusRequest(location string, object interface{}) error

func (*Lyrics) GeniusScrapeLyrics

func (l *Lyrics) GeniusScrapeLyrics(songApiPath string) (string, error)

func (*Lyrics) Init

func (l *Lyrics) Init(session *shardmanager.Manager)

type M8ball

type M8ball struct{}

func (*M8ball) Action

func (m8 *M8ball) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*M8ball) Commands

func (m8 *M8ball) Commands() []string

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) Action

func (m *Mirror) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Mirror) Commands

func (m *Mirror) Commands() []string

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 Mirror_PostedMessage struct {
	ChannelID string
	MessageID string
}

type ModulePermissions

type ModulePermissions struct{}

func (*ModulePermissions) Action

func (mp *ModulePermissions) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

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) Action

func (m *Move) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Move) Commands

func (m *Move) Commands() []string

func (*Move) Init

func (m *Move) Init(session *shardmanager.Manager)

func (*Move) Relax

func (m *Move) Relax(err error)

type Names

type Names struct{}

func (*Names) Action

func (n *Names) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Names) Commands

func (n *Names) Commands() []string

func (*Names) GetLastNickname

func (n *Names) GetLastNickname(guildID string, userID string) (nickname string, err error)

func (*Names) GetLastUsername

func (n *Names) GetLastUsername(userID string) (username string, err error)

func (*Names) GetNicknames

func (n *Names) GetNicknames(guildID string, userID string) (nicknames []string, err error)

func (*Names) GetUsernames

func (n *Names) GetUsernames(userID string) (usernames []string, err error)

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) Relax

func (n *Names) Relax(err error)

func (*Names) SaveNickname

func (n *Names) SaveNickname(guildID string, userID string, nickname string) (err error)

func (*Names) SaveUsername

func (n *Names) SaveUsername(userID string, username string) (err error)

func (*Names) UpdateNickname

func (n *Names) UpdateNickname(guildID string, userID string, newNick string) (err error)

func (*Names) UpdateUsername

func (n *Names) UpdateUsername(userID string, newUsername string) (err error)

type Nuke

type Nuke struct{}

func (*Nuke) Action

func (n *Nuke) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Nuke) Commands

func (n *Nuke) Commands() []string

func (*Nuke) Init

func (n *Nuke) Init(session *shardmanager.Manager)

type Osu

type Osu struct{}

func (*Osu) Action

func (o *Osu) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Osu) Commands

func (o *Osu) Commands() []string

func (*Osu) Init

func (o *Osu) Init(session *shardmanager.Manager)

type Persistency

type Persistency struct{}

func (*Persistency) Action

func (p *Persistency) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

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) OnMessage

func (p *Persistency) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)

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) Action

func (m *Perspective) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

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) OnMessage

func (m *Perspective) OnMessage(content string, msg *discordgo.Message, 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 PerspectiveMessageValues

type PerspectiveMessageValues struct {
	SevereToxicity float64
	Inflammatory   float64
	Obscene        float64
}

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) Action

func (p *Ping) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Ping) Commands

func (p *Ping) Commands() []string

func (*Ping) Init

func (p *Ping) Init(session *shardmanager.Manager)

func (*Ping) OnMessage

func (p *Ping) OnMessage(session *discordgo.Session, message *discordgo.MessageCreate)

type RPS

type RPS struct{}

func (*RPS) Action

func (r *RPS) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*RPS) Commands

func (r *RPS) Commands() []string

func (*RPS) Init

func (r *RPS) Init(session *shardmanager.Manager)

type RandomCat

type RandomCat struct{}

func (RandomCat) Action

func (rc RandomCat) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (RandomCat) Commands

func (rc RandomCat) Commands() []string

func (RandomCat) Init

func (rc RandomCat) Init(session *shardmanager.Manager)

type RandomCatApiResponse

type RandomCatApiResponse struct {
	Source_url string `xml:"data>images>image>source_url"`
	Url        string `xml:"data>images>image>url"`
	Id         string `xml:"data>images>image>id"`
}

type RandomPictures

type RandomPictures struct{}

func (*RandomPictures) Action

func (rp *RandomPictures) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*RandomPictures) Commands

func (rp *RandomPictures) Commands() []string

func (*RandomPictures) GetFileHash

func (rp *RandomPictures) GetFileHash(sourceID bson.ObjectId, previousID string, fileID string) string

func (*RandomPictures) Init

func (rp *RandomPictures) Init(session *shardmanager.Manager)

type RandomPictures_HistoryItem

type RandomPictures_HistoryItem struct {
	Link      string
	SourceID  string
	PictureID string
	Filename  string
	GuildID   string
	Time      time.Time
}

type Ratelimit

type Ratelimit struct{}

func (*Ratelimit) Action

func (r *Ratelimit) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Ratelimit) Commands

func (r *Ratelimit) Commands() []string

func (*Ratelimit) Init

func (r *Ratelimit) Init(session *shardmanager.Manager)

type ReactionPollCacheEntry

type ReactionPollCacheEntry struct {
	ID        bson.ObjectId
	MessageID string
}

type ReactionPolls

type ReactionPolls struct{}

func (*ReactionPolls) Action

func (rp *ReactionPolls) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

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) OnMessage

func (rp *ReactionPolls) OnMessage(content string, msg *discordgo.Message, 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) Action

func (r *Reddit) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Reddit) Commands

func (r *Reddit) Commands() []string

func (*Reddit) Init

func (r *Reddit) Init(session *shardmanager.Manager)

func (*Reddit) Relax

func (r *Reddit) Relax(err error)

type Reminders

type Reminders struct {
	// contains filtered or unexported fields
}

func (*Reminders) Action

func (r *Reminders) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Reminders) Commands

func (r *Reminders) Commands() []string

func (*Reminders) Init

func (r *Reminders) Init(session *shardmanager.Manager)

type Spoiler

type Spoiler struct {
	// contains filtered or unexported fields
}

func (*Spoiler) Action

func (s *Spoiler) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Spoiler) Commands

func (s *Spoiler) Commands() []string

func (*Spoiler) Init

func (s *Spoiler) Init(session *shardmanager.Manager)

type Starboard

type Starboard struct{}

func (*Starboard) Action

func (s *Starboard) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Starboard) AddStar

func (s *Starboard) AddStar(guildID string, msg *discordgo.Message, starUserID string) error

func (*Starboard) Commands

func (s *Starboard) Commands() []string

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 (s *Starboard) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)

func (*Starboard) OnGuildMemberRemove

func (s *Starboard) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)

func (*Starboard) OnMessage

func (s *Starboard) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)

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) Relax

func (s *Starboard) Relax(err error)

func (*Starboard) RemoveStar

func (s *Starboard) RemoveStar(guildID string, msg *discordgo.Message, starUserID string) error

func (*Starboard) Uninit

func (s *Starboard) Uninit(session *shardmanager.Manager)

type Stats

type Stats struct{}

func (*Stats) Action

func (s *Stats) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Stats) Commands

func (s *Stats) Commands() []string

func (*Stats) Init

func (s *Stats) Init(session *shardmanager.Manager)

type Steam

type Steam struct {
	// contains filtered or unexported fields
}

func (*Steam) Action

func (m *Steam) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Steam) Commands

func (m *Steam) Commands() []string

func (*Steam) Init

func (m *Steam) Init(session *shardmanager.Manager)

func (*Steam) Relax

func (m *Steam) Relax(err error)

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 SteamResolveResponse struct {
	Response struct {
		Steamid string `json:"steamid"`
		Success int    `json:"success"`
		Message string `json:"message"`
	} `json:"response"`
}

type Storage

type Storage struct{}

func (*Storage) Action

func (m *Storage) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Storage) Commands

func (m *Storage) Commands() []string

func (*Storage) Init

func (m *Storage) Init(session *shardmanager.Manager)

func (*Storage) Relax

func (m *Storage) Relax(err error)

type Streamable

type Streamable struct{}

func (*Streamable) Action

func (s *Streamable) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

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) Action

func (t *Translator) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

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) Action

func (m *Twitch) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Twitch) Commands

func (m *Twitch) Commands() []string

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) Action

func (m *Twitter) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Twitter) Commands

func (m *Twitter) Commands() []string

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 (t *Twitter) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)

func (*Twitter) OnGuildMemberRemove

func (t *Twitter) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)

func (*Twitter) OnMessage

func (t *Twitter) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)

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) Action

func (u *Uptime) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Uptime) Commands

func (u *Uptime) Commands() []string

func (*Uptime) Init

func (u *Uptime) Init(session *shardmanager.Manager)

type UrbanDict

type UrbanDict struct{}

func (*UrbanDict) Action

func (u *UrbanDict) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*UrbanDict) Commands

func (u *UrbanDict) Commands() []string

func (*UrbanDict) Init

func (u *UrbanDict) Init(session *shardmanager.Manager)

type Useruploads

type Useruploads struct{}

func (*Useruploads) Action

func (m *Useruploads) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

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) Action

func (r *VLive) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*VLive) Commands

func (r *VLive) Commands() []string

func (*VLive) Init

func (r *VLive) Init(session *shardmanager.Manager)

type VanityInvite

type VanityInvite struct{}

func (VanityInvite) Action

func (vi VanityInvite) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (VanityInvite) Commands

func (vi VanityInvite) Commands() []string

func (VanityInvite) Init

func (vi VanityInvite) Init(session *shardmanager.Manager)

type VoiceChannelDurationPair

type VoiceChannelDurationPair struct {
	Key   string
	Value int64
}

type VoiceChannelDurationPairList

type VoiceChannelDurationPairList []VoiceChannelDurationPair

func (VoiceChannelDurationPairList) Len

func (VoiceChannelDurationPairList) Less

func (p VoiceChannelDurationPairList) Less(i, j int) bool

func (VoiceChannelDurationPairList) Swap

func (p VoiceChannelDurationPairList) Swap(i, j int)

type VoiceSessionStart

type VoiceSessionStart struct {
	UserID    string
	ChannelID string
	GuildID   string
	JoinTime  time.Time
}

type Weather

type Weather struct {
	// contains filtered or unexported fields
}

func (*Weather) Action

func (w *Weather) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Weather) Commands

func (w *Weather) Commands() []string

func (*Weather) Init

func (w *Weather) Init(session *shardmanager.Manager)

type Whois

type Whois struct{}

func (*Whois) Action

func (w *Whois) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Whois) Commands

func (w *Whois) Commands() []string

func (*Whois) Init

func (w *Whois) Init(session *shardmanager.Manager)

type WolframAlpha

type WolframAlpha struct{}

func (*WolframAlpha) Action

func (m *WolframAlpha) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*WolframAlpha) Commands

func (m *WolframAlpha) Commands() []string

func (*WolframAlpha) Init

func (m *WolframAlpha) Init(session *shardmanager.Manager)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL