Make ping command customizable

This commit is contained in:
Joscha 2018-02-20 06:43:52 +00:00
parent c12d278ee1
commit 02487f0d60
2 changed files with 11 additions and 10 deletions

View file

@ -17,15 +17,16 @@ import qualified EuphApi.Utils.Botrulez as E
myCommands :: [E.Command b c]
myCommands =
[ E.pingCommand
, E.generalPingCommand
[ E.pingCommand "Pong!"
, E.generalPingCommand "Pong!"
, E.helpCommand "Some specific placeholder help"
, E.generalHelpCommand "I help test @Garmy's EuphApi"
, E.uptimeCommand
, E.generalUptimeCommand
, E.generalUptimeCommand -- most bots don't do this
, E.command "whatsmynick" (\msg -> do
nick <- E.sessName <$> B.getOwnView
let content = nick <> "\n" <> E.mention nick <> "\n" <> E.atMention nick <> "\n" <> E.mentionReduce nick
let content = nick <> "\n" <> E.mention nick <> "\n" <> E.atMention nick
<> "\n" <> E.mentionReduce nick
void $ B.reply (E.msgID msg) content
)
]