Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Commands []interface{}
)
Functions ¶
Types ¶
type EchoArgs ¶
type EchoArgs struct { ConfigFile string `positional-arg-name:"config" description:"The configuration file"` ChannelID string `positional-arg-name:"channel-id" description:"The ID of the channel to send the message in"` Message string `positional-arg-name:"message" description:"The message to send"` }
type EchoCommand ¶
type EchoCommand struct { Arguments EchoArgs `positional-args:"true" required:"true"` AllowMentions bool `short:"m" long:"allow-mentions" description:"If set, the message sent will trigger mentions" optional:"true"` }
func (*EchoCommand) Execute ¶
func (cmd *EchoCommand) Execute(_ []string) error
type GetTokenArgs ¶
type GetTokenCommand ¶
type GetTokenCommand struct {
Arguments GetTokenArgs `positional-args:"true" required:"true"`
}
func (*GetTokenCommand) Execute ¶
func (cmd *GetTokenCommand) Execute(args []string) error
type StartBotArgs ¶
type StartBotArgs struct {
ConfigFile string `positional-arg-name:"config" description:"The configuration file"`
}
type StartBotCommand ¶
type StartBotCommand struct { Arguments StartBotArgs `positional-args:"true" required:"true"` Database string `` /* 132-byte string literal not displayed */ }
func (*StartBotCommand) Execute ¶
func (cmd *StartBotCommand) Execute(args []string) error
type SwapShowsArgs ¶
type SwapShowsArgs struct {
ConfigFile string `positional-arg-name:"config" description:"The configuration file"`
}
type SwapShowsCommand ¶
type SwapShowsCommand struct { Arguments SwapShowsArgs `positional-args:"true" required:"true"` Database string `` /* 132-byte string literal not displayed */ }
func (*SwapShowsCommand) Execute ¶
func (cmd *SwapShowsCommand) Execute(args []string) error
Click to show internal directories.
Click to hide internal directories.