kameloso IRC bot
Dlang.org
onCommandModifyOneliner
kameloso
plugins
oneliner
Adds, removes or modifies a oneliner, then saves the list to disk.
version(WithOnelinerPlugin)
private
@
IRCEventHandler
().
onEvent
(
IRCEvent.Type.CHAN
).
permissionsRequired
(
Permissions.operator
).
channelPolicy
(
ChannelPolicy.home
).
addCommand
(
IRCEventHandler.Command
().
word
("oneliner").
policy
(
PrefixPolicy.prefixed
).
description
("Manages oneliners.").
addSyntax
("$command new [trigger] [type] [optional cooldown]").
addSyntax
("$command add [trigger] [text]").
addSyntax
("$command alias [trigger] [existing trigger to alias]").
addSyntax
("$command modify [trigger] [type] [optional cooldown]").
addSyntax
("$command edit [trigger] [position] [new text]").
addSyntax
("$command insert [trigger] [position] [text]").
addSyntax
("$command del [trigger] [optional position]").
addSyntax
("$command list [optional trigger]")).
addCommand
(
IRCEventHandler.Command
().
word
("command").
policy
(
PrefixPolicy.prefixed
).
hidden
(true))
void
onCommandModifyOneliner
(
OnelinerPlugin
plugin
,
const
ref
IRCEvent
event
)
kameloso
plugins
oneliner
classes
OnelinerPlugin
functions
handleAddToOneliner
handleAliasOneliner
handleDelFromOneliner
handleModifyOneliner
handleNewOneliner
initResources
listCommands
loadOneliners
newOnelinerImpl
onCommandCommands
onCommandModifyOneliner
onOneliner
onWelcome
reload
saveResourceToDisk
selftest
sendOneliner
structs
Oneliner
OnelinerSettings
Adds, removes or modifies a oneliner, then saves the list to disk.