Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { Prefix string MoverBotToken string MoverSession *discordgo.Session PowerupTokens []string DB db.DataStorage PowerupSessions []*discordgo.Session Messages *utils.Message Closing chan int }
Bot struct
func Init ¶
func Init(configs config.ConfigurationParameters, messages *utils.Message, conn db.DataStorage) *Bot
Init creates the first bot object
func (*Bot) Close ¶
func (bot *Bot) Close()
Close function ends the bot connection and closes its database
func (*Bot) GetGuildLocale ¶
GetGuildLocale function will return the language for a guild, returning EN by default.
Input:
GuildID string : the ID of the guild
Output:
language string
func (*Bot) Move ¶
Move function deals with the possible parameters for a move command
Inputs:
m *discordgo.MessageCreate : the message received by the bot params []string : all the parameters used in the message
Outputs:
string : number of users moved by this command error : a error if something wrong happened
Click to show internal directories.
Click to hide internal directories.