Documentation ¶
Index ¶
- Variables
- func CallBotPlugin(command string, content string, msg *discordgo.Message)
- func CallExtendedPlugin(content string, msg *discordgo.Message)
- func CallExtendedPluginOnGuildBanAdd(user *discordgo.GuildBanAdd)
- func CallExtendedPluginOnGuildBanRemove(user *discordgo.GuildBanRemove)
- func CallExtendedPluginOnGuildMemberAdd(member *discordgo.Member)
- func CallExtendedPluginOnGuildMemberRemove(member *discordgo.Member)
- func CallExtendedPluginOnMessageDelete(message *discordgo.MessageDelete)
- func CallExtendedPluginOnReactionAdd(reaction *discordgo.MessageReactionAdd)
- func CallExtendedPluginOnReactionRemove(reaction *discordgo.MessageReactionRemove)
- func Init(session *shardmanager.Manager)
- func Uninit(session *shardmanager.Manager)
- type BaseModule
- type ExtendedPlugin
- type Plugin
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PluginList = []Plugin{ ¬ifications.Handler{}, &plugins.About{}, &plugins.Stats{}, &plugins.Uptime{}, &plugins.Translator{}, &plugins.UrbanDict{}, &plugins.Weather{}, &plugins.VLive{}, &plugins.WolframAlpha{}, &plugins.LastFm{}, &plugins.Twitch{}, &plugins.Charts{}, &plugins.Choice{}, &plugins.Osu{}, &plugins.Reminders{}, &plugins.Ratelimit{}, &plugins.Gfycat{}, &plugins.RandomPictures{}, &youtube.Handler{}, &plugins.RandomCat{}, &plugins.RPS{}, &plugins.Nuke{}, &plugins.Dig{}, &plugins.Streamable{}, &plugins.Lyrics{}, &plugins.Friend{}, &plugins.Reddit{}, &plugins.Color{}, &plugins.Dog{}, &plugins.Debug{}, &plugins.Ping{}, &plugins.BotStatus{}, &plugins.VanityInvite{}, &plugins.DiscordMoney{}, &plugins.Whois{}, &plugins.Isup{}, &plugins.ModulePermissions{}, &plugins.M8ball{}, &plugins.Feedback{}, &plugins.DM{}, &plugins.EmbedPost{}, &plugins.Useruploads{}, &plugins.Move{}, &plugins.Crypto{}, &plugins.Imgur{}, &plugins.Steam{}, &plugins.Config{}, &plugins.Storage{}, &plugins.Mirror{}, } PluginExtendedList = []ExtendedPlugin{ &plugins.Bias{}, &plugins.GuildAnnouncements{}, &levels.Levels{}, &plugins.Gallery{}, &plugins.CustomCommands{}, &plugins.ReactionPolls{}, &mod.Mod{}, &plugins.AutoRoles{}, &plugins.Starboard{}, &plugins.Autoleaver{}, &biasgame.Module{}, &nugugame.Module{}, &idols.Module{}, } )
Functions ¶
func CallBotPlugin ¶
command - The command that triggered this execution content - The content without command msg - The message object session - The discord session
func CallExtendedPlugin ¶
func CallExtendedPluginOnGuildBanAdd ¶
func CallExtendedPluginOnGuildBanAdd(user *discordgo.GuildBanAdd)
func CallExtendedPluginOnGuildBanRemove ¶
func CallExtendedPluginOnGuildBanRemove(user *discordgo.GuildBanRemove)
func CallExtendedPluginOnMessageDelete ¶
func CallExtendedPluginOnMessageDelete(message *discordgo.MessageDelete)
func CallExtendedPluginOnReactionAdd ¶
func CallExtendedPluginOnReactionAdd(reaction *discordgo.MessageReactionAdd)
func CallExtendedPluginOnReactionRemove ¶
func CallExtendedPluginOnReactionRemove(reaction *discordgo.MessageReactionRemove)
func Init ¶
func Init(session *shardmanager.Manager)
Init warms the caches and initializes the plugins
Types ¶
type BaseModule ¶
type BaseModule interface{}
type ExtendedPlugin ¶
type ExtendedPlugin interface { BaseModule Commands() []string Init(session *shardmanager.Manager) Uninit(session *shardmanager.Manager) Action( command string, content string, msg *discordgo.Message, session *discordgo.Session, ) OnMessage( content string, msg *discordgo.Message, session *discordgo.Session, ) OnMessageDelete( msg *discordgo.MessageDelete, session *discordgo.Session, ) OnGuildMemberAdd( member *discordgo.Member, session *discordgo.Session, ) OnGuildMemberRemove( member *discordgo.Member, session *discordgo.Session, ) OnReactionAdd( reaction *discordgo.MessageReactionAdd, session *discordgo.Session, ) OnReactionRemove( reaction *discordgo.MessageReactionRemove, session *discordgo.Session, ) OnGuildBanAdd( user *discordgo.GuildBanAdd, session *discordgo.Session, ) OnGuildBanRemove( user *discordgo.GuildBanRemove, session *discordgo.Session, ) }
Click to show internal directories.
Click to hide internal directories.