Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MsgGistAddress is a user-visible string announcing the url of the gist MsgGistAddress = "The list of commands is here" // MsgListBuiltins is a user-visible header for the list of builtins MsgListBuiltins = "List of builtins:" // MsgListCustom is a user-visible header for the list of learned commands MsgListCustom = "List of learned commands:" )
View Source
const (
// MsgHelpList is the help text for ?list
MsgHelpList = "Type `?list` to get the URL of a Gist with all builtin and learned commands"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor uploads all command keys to hastebin and returns the url to the user
func NewExecutor ¶
func NewExecutor(featureRegistry *feature.Registry, commandMap stringmap.StringMap, gist api.Gist) *Executor
NewExecutor works as advertised
func (*Executor) Execute ¶
Execute uploads the command list to github and pings the gist link in chat.
func (*Executor) PublicOnly ¶
PublicOnly returns whether the executor should be intercepted in a private channel.
type Feature ¶
type Feature struct {
// contains filtered or unexported fields
}
Feature is a Feature that lists commands that are available.
func NewFeature ¶
func NewFeature( featureRegistry *feature.Registry, commandMap stringmap.StringMap, gist api.Gist) *Feature
NewFeature returns a new Feature.
func (*Feature) CommandInterceptors ¶
func (f *Feature) CommandInterceptors() []feature.CommandInterceptor
CommandInterceptors returns nothing.
func (*Feature) FallbackParser ¶
FallbackParser returns nil.
func (*Feature) OnInitialLoad ¶
func (f *Feature) OnInitialLoad(s api.DiscordSession) error
OnInitialLoad does nothing.
Click to show internal directories.
Click to hide internal directories.