Documentation ¶
Index ¶
Constants ¶
View Source
const (
// MsgHelpFactSphere is the help text for ?factsphere.
MsgHelpFactSphere = "Type `?factsphere` to get a random fact, which may or may not be true."
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct { }
Executor prints a random ?factsphere command for the user.
func NewFactSphereExecutor ¶
func NewFactSphereExecutor() *Executor
NewFactSphereExecutor works as advertised.
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 prints a random fact to the user.
func NewFeature ¶
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.
type Parser ¶
type Parser struct{}
Parser parses ?factsphere commands.
func NewFactSphereParser ¶
func NewFactSphereParser() *Parser
NewFactSphereParser works as advertised.
Click to show internal directories.
Click to hide internal directories.