Documentation
¶
Index ¶
- Constants
- func Echo(session *discordgo.Session, channelID string, args string)
- func HandleCommands(session *discordgo.Session, message *discordgo.Message)
- func HandleErrorDebug(err error, errorMessage string)
- func HandleErrorFatal(err error, errorMessage string)
- func HasPermission(session *discordgo.Session, userID string, channelID string, perm int64) bool
- func Kick(session *discordgo.Session, message *discordgo.Message)
- func ParsePrefix(message string) (string, string)
- func Ping(session *discordgo.Session, channelID string, timestamp discordgo.Timestamp)
- func Purge(session *discordgo.Session, message *discordgo.Message)
- func Run()
- func TempBan(session *discordgo.Session, message *discordgo.Message)
- func Unban(session *discordgo.Session, message *discordgo.Message)
Constants ¶
View Source
const BotCommandPrefix string = "."
BotCommandPrefix is prefix for the bot's.
Variables ¶
This section is empty.
Functions ¶
func HandleCommands ¶
HandleCommands takes the message and calls proper function for the command
func HandleErrorDebug ¶
HandleErrorDebug checks if there is an error and logs it
func HandleErrorFatal ¶
HandleErrorFatal checks if there is an error and stops the program with an error
func HasPermission ¶
HasPermission checks if the user given has the given permission
func ParsePrefix ¶
ParsePrefix returns the prefix + command and rest of the message split up
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.