Versions in this module Expand all Collapse all v0 v0.1.0 Dec 30, 2024 Changes in this version + const Added + const Equal + const Removed + const Updated + var AuthUsers map[string]string + var CmdsList []*discordgo.ApplicationCommand + var CommandHandlers = make(map[string]func(ctx *BotContext)) + var DbConn string + var Pool *pgxpool.Pool + func CmdCompareChanged(opt1, opt2 *discordgo.ApplicationCommand) bool + func EndPGX() + func InitializeBot(configFile string, commandsDir string) + func MapUpdateCompare(newMap, oldMap map[string]*discordgo.ApplicationCommand) map[string]uint8 + func OptionsComparedChanged(opt1, opt2 *discordgo.ApplicationCommandOption) bool + func RegisterHandlers(handlers map[string]func(ctx *BotContext)) + func ResourceLoadFile(filePath string) string + func ResourceLoadSQL(filePath string) string + func RunQuery(file string, args ...interface{}) [][]interface + type AuthUserData struct + ID string + Name string + type AuthUsersList struct + Entities []AuthUserData + type BotContext struct + Interaction *discordgo.InteractionCreate + Session *discordgo.Session + func (ctx *BotContext) DgoDeferMsg() + func (ctx *BotContext) DgoEmbedMsg(title, value, footer string, options ...bool) + type Command struct + Description string + Name string + Options []CommandOption + type CommandHandler func(s *discordgo.Session, i *discordgo.InteractionCreate) + type CommandOption struct + Autocomplete bool + Description string + Name string + Options []CommandOption + Required bool + Type int + type Config struct + BotName string + Database DatabaseConfig + KeyLoc string + ServerID string + type DatabaseConfig struct + DBName string + Host string + Password string + Port int + User string