Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Field ¶
func Field(name, value string) *discordgo.MessageEmbedField
Field is a shortcut to boilerplate.
func GetISOTimestamp ¶
func GetISOTimestamp() string
GetISOTimestamp returns an ISO6301 based timestamp from the current time.
Types ¶
type Checks ¶
type Checks struct {
OwnerOnly bool
}
Checks defines what to use when checking if for example the command is owner only, admin only, etc. Currently it's has "owner only"
type Config ¶
type Config struct { Required struct { Token string Prefix string OwnerID string `toml:"owner_id"` } Logging struct { File string } }
Config maps how a general kitty config should be.
type Context ¶
type Context struct { Session *discordgo.Session State *discordgo.State Message *discordgo.Message Author *discordgo.User Channel *discordgo.Channel Guild *discordgo.Guild Args []string }
Context f
type Kitty ¶
type Kitty struct { Logger *Logger Commands map[string]Command Config Config Session *discordgo.Session }
Kitty the main struct of the bot
Click to show internal directories.
Click to hide internal directories.