kameloso IRC bot
Dlang.org
onCommandSetZone
kameloso
plugins
time
Sets the timezone for a channel, to be used to properly pad the output of
!time
.
version(WithTimePlugin)
private
@
IRCEventHandler
().
onEvent
(
IRCEvent.Type.CHAN
).
permissionsRequired
(
Permissions.operator
).
channelPolicy
(
ChannelPolicy.home
).
addCommand
(
IRCEventHandler.Command
().
word
("setzone").
policy
(
PrefixPolicy.prefixed
).
description
("Sets the timezone to be used when querying the time in a channel.").
addSyntax
("$command [timezone string]"))
void
onCommandSetZone
(
TimePlugin
plugin
,
const
ref
IRCEvent
event
)
kameloso
plugins
time
classes
TimePlugin
functions
getTimezoneByName
initResources
onCommandSetZone
onCommandTime
reload
saveResourceToDisk
selftest
structs
TimeSettings
variables
installedTimezones
zonestringAliases
Sets the timezone for a channel, to be used to properly pad the output of !time.