kameloso IRC bot
Dlang.org
onCommandCounter
kameloso
plugins
counter
Manages runtime counters (adding, removing and listing).
version(WithCounterPlugin)
private
@
IRCEventHandler
().
onEvent
(
IRCEvent.Type.CHAN
).
permissionsRequired
(
Permissions.operator
).
channelPolicy
(
ChannelPolicy.home
).
addCommand
(
IRCEventHandler.Command
().
word
("counter").
policy
(
PrefixPolicy.prefixed
).
description
("Adds, removes or lists counters.").
addSyntax
("$command add [counter word]").
addSyntax
("$command del [counter word]").
addSyntax
("$command format [counter word] [?+-=] [format pattern]").
addSyntax
("$command list"))
void
onCommandCounter
(
CounterPlugin
plugin
,
const
IRCEvent
event
)
kameloso
plugins
counter
classes
CounterPlugin
functions
formatMessage
initResources
loadCounters
onCommandCounter
onCounterWord
onWelcome
reload
saveCounters
selftest
structs
Counter
CounterSettings
Manages runtime counters (adding, removing and listing).