Use bot nick in help commands

This commit is contained in:
Joscha 2018-02-25 21:09:47 +00:00
parent f6f4bfac35
commit f7b012259c
2 changed files with 15 additions and 9 deletions

View file

@ -23,12 +23,12 @@ myCommands :: [Command]
myCommands =
[ E.pingCommand "Pong!"
, E.generalPingCommand "Pong!"
, E.helpCommand "Some specific placeholder help"
, E.generalHelpCommand "I help test @Garmy's EuphApi"
, E.helpCommand (\n -> "Some specific placeholder help for " <> E.atMention n <> ".")
, E.generalHelpCommand (const "I help test @Garmy's EuphApi.")
, E.uptimeCommand
, E.generalUptimeCommand -- most bots don't do this
, E.killCommand "Bye!"
, E.restartCommand "brb"
, E.restartCommand "brb."
]
myBotHandler :: E.EventType -> Bot ()