Documentation
¶
Index ¶
- type CommandContext
- type Commander
- func (c *Commander) Configure(login string, conf map[string]string)
- func (c *Commander) Disabled(login string) (disabled, ok bool)
- func (c *Commander) Exec(ctx context.Context)
- func (c *Commander) Message(msg *ircon.Message)
- func (c *Commander) Remove(login string)
- func (c *Commander) SetLive(id, login string, live bool)
- func (c *Commander) SyncHighRL(login, badge string)
- func (c *Commander) SyncSlowMode(login string, slow int)
- func (c *Commander) Table() *cmdtable.Table[ExecCommand]
- func (c *Commander) WithBancheck(msg output.Message) output.Message
- type ExecCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandContext ¶
type CommandContext = *cmdtable.CommandContext[ExecCommand]
type Commander ¶
type Commander struct {
Admins map[string]bool
GlobalPrefix string
Prefixes []string
CommandHook func(login string, msg *ircon.Message)
CommandPreHook func(string, string) string
MutateConfHook func(string, map[string]string) map[string]string
OutputFunc func(msg output.Message, ival int, banphrase string)
// contains filtered or unexported fields
}
func (*Commander) Message ¶
cmd handles a single message/command.
func (*Commander) Table ¶
func (c *Commander) Table() *cmdtable.Table[ExecCommand]
Table returns a command table that can modified during the configuration state to provide static commands.
Source Files
¶
- commander.go
- metrics.go
Click to show internal directories.
Click to hide internal directories.