@
IRCEventHandler().
onEvent(
IRCEvent.Type.CHAN).
permissionsRequired(
Permissions.anyone).
channelPolicy(
ChannelPolicy.home).
addCommand(
IRCEventHandler.Command().
word("quote").
policy(
PrefixPolicy.prefixed).
description("Repeats a random quote of a supplied nickname, " ~ "or finds one by search terms (best-effort)").
addSyntax("$header On Twitch: $command").
addSyntax("$header On Twitch: $command [search terms]").
addSyntax("$header On Twitch: $command [#index]").
addSyntax("$header Elsewhere: $command [nickname]").
addSyntax("$header Elsewhere: $command [nickname] [search terms]").
addSyntax("$header Elsewhere: $command [nickname] [#index]"))
Replies with a quote, either fetched randomly, by search terms or by stored index.