kameloso IRC bot
Dlang.org
onCommandModQuote
kameloso
plugins
quote
Modifies a quote given its index in the storage.
version(WithQuotePlugin)
private
@
IRCEventHandler
().
onEvent
(
IRCEvent.Type.CHAN
).
permissionsRequired
(
Permissions.operator
).
channelPolicy
(
ChannelPolicy.home
).
addCommand
(
IRCEventHandler.Command
().
word
("modquote").
policy
(
PrefixPolicy.prefixed
).
description
("Modifies an existing quote.").
addSyntax
("On Twitch: $command [index] [new quote text]").
addSyntax
("Elsewhere: $command [nickname] [index] [new quote text]"))
void
onCommandModQuote
(
QuotePlugin
plugin
,
const
ref
IRCEvent
event
)
kameloso
plugins
quote
classes
NoQuotesFoundException
NoQuotesSearchMatchException
QuoteIndexOutOfRangeException
QuotePlugin
functions
getQuoteByIndexString
getQuoteBySearchTerms
getRandomQuote
getTimeStringFromTimestamp
initResources
loadQuotes
onCommandAddQuote
onCommandDelQuote
onCommandMergeQuotes
onCommandModQuote
onCommandQuote
onWelcome
reload
removeWeeChatHead
saveQuotes
selftest
sendQuoteToChannel
structs
Quote
QuoteSettings
Senders
Modifies a quote given its index in the storage.