kameloso IRC bot
Dlang.org
onCommandStopwatch
kameloso
plugins
stopwatch
Manages stopwatches.
version(WithStopwatchPlugin)
private
@
IRCEventHandler
().
onEvent
(
IRCEvent.Type.CHAN
).
permissionsRequired
(
Permissions.whitelist
).
channelPolicy
(
ChannelPolicy.home
).
addCommand
(
IRCEventHandler.Command
().
word
("stopwatch").
policy
(
PrefixPolicy.prefixed
).
description
("Starts, stops, or shows status of stopwatches.").
addSyntax
("$command start").
addSyntax
("$command stop").
addSyntax
("$command status")).
addCommand
(
IRCEventHandler.Command
().
word
("sw").
policy
(
PrefixPolicy.prefixed
).
hidden
(true))
void
onCommandStopwatch
(
StopwatchPlugin
plugin
,
const
ref
IRCEvent
event
)
kameloso
plugins
stopwatch
classes
StopwatchPlugin
functions
deserialiseStopwatches
onCommandStopwatch
onWelcome
selftest
serialiseStopwatches
teardown
structs
StopwatchSettings
Manages stopwatches.