onCommandModifyOneliner

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