Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Global
Version VersionCmd `cmd:"" help:"Print the version." default:"1"`
Run RunCmd `cmd:"" help:"Witness the hubris of man."`
Add ManagerAddCmd `cmd:"" help:"Add a directory of JSON files as commands."`
List ManagerListCmd `cmd:"" help:"List the application's commands."`
Remove ManagerRemoveCmd `cmd:"" help:"Remove a command by its ID."`
}
type Global ¶
type Global struct {
Token string `help:"The bot's OAuth2 token." required:"" short:"t" env:"HUBRIS_TOKEN"`
ApplicationID string `help:"OAuth2 application snowflake." required:"" short:"a" env:"HUBRIS_APP_ID"`
DSN string `help:"PostgreSQL data connection string." required:"" short:"p" env:"HUBRIS_DSN"`
}
type ManagerAddCmd ¶
type ManagerListCmd ¶
type ManagerListCmd struct {
GuildID string `help:"GuildID to pull commands from." short:"g"`
}
type ManagerRemoveCmd ¶
type RunCmd ¶
type RunCmd struct {
Debug bool `help:"Run in debug mode?" default:"false" short:"d"`
}
type VersionCmd ¶
type VersionCmd struct{}
Click to show internal directories.
Click to hide internal directories.