kameloso IRC bot
Dlang.org
onCommandBash
kameloso
plugins
bash
Fetch a random or specified
bashforever.com
quote.
version(WithBashPlugin)
private
@
IRCEventHandler
().
onEvent
(
IRCEvent.Type.CHAN
).
onEvent
(
IRCEvent.Type.QUERY
).
permissionsRequired
(
Permissions.anyone
).
channelPolicy
(
ChannelPolicy.home
).
addCommand
(
IRCEventHandler.Command
().
word
("bash").
policy
(
PrefixPolicy.prefixed
).
description
("Fetch a random or specified bashforever.com quote.").
addSyntax
("$command [optional bash quote number]"))
void
onCommandBash
(
BashPlugin
plugin
,
const
IRCEvent
event
)
kameloso
plugins
bash
classes
BashPlugin
functions
lookupQuote
onCommandBash
onEndOfMotd
parseResponseIntoBashLookupResult
persistentQuerier
selftest
sendHTTPRequest
sendHTTPRequestImpl
setup
teardown
waitForLookupResults
structs
BashLookupResult
BashSettings
Fetch a random or specified bashforever.com quote.