def help(cmd, topic="")\r
case cmd\r
when "quit"\r
- return "quit [<message>] => quit IRC with message <message>"\r
+ _("quit [<message>] => quit IRC with message <message>")\r
when "restart"\r
- return "restart => completely stop and restart the bot (including reconnect)"\r
+ _("restart => completely stop and restart the bot (including reconnect)")\r
when "join"\r
- return "join <channel> [<key>] => join channel <channel> with secret key <key> if specified. #{myself} also responds to invites if you have the required access level"\r
+ _("join <channel> [<key>] => join channel <channel> with secret key <key> if specified. #{myself} also responds to invites if you have the required access level")\r
when "part"\r
- return "part <channel> => part channel <channel>"\r
+ _("part <channel> => part channel <channel>")\r
when "hide"\r
- return "hide => part all channels"\r
- when "save"\r
- return "save => save current dynamic data and configuration"\r
- when "rescan"\r
- return "rescan => reload modules and static facts"\r
+ _("hide => part all channels")\r
when "nick"\r
- return "nick <nick> => attempt to change nick to <nick>"\r
+ _("nick <nick> => attempt to change nick to <nick>")\r
when "say"\r
- return "say <channel>|<nick> <message> => say <message> to <channel> or in private message to <nick>"\r
+ _("say <channel>|<nick> <message> => say <message> to <channel> or in private message to <nick>")\r
when "action"\r
- return "action <channel>|<nick> <message> => does a /me <message> to <channel> or in private message to <nick>"\r
+ _("action <channel>|<nick> <message> => does a /me <message> to <channel> or in private message to <nick>")\r
when "quiet"\r
- return "quiet [in here|<channel>] => with no arguments, stop speaking in all channels, if \"in here\", stop speaking in this channel, or stop speaking in <channel>"\r
+ _("quiet [in here|<channel>] => with no arguments, stop speaking in all channels, if \"in here\", stop speaking in this channel, or stop speaking in <channel>")\r
when "talk"\r
- return "talk [in here|<channel>] => with no arguments, resume speaking in all channels, if \"in here\", resume speaking in this channel, or resume speaking in <channel>"\r
+ _("talk [in here|<channel>] => with no arguments, resume speaking in all channels, if \"in here\", resume speaking in this channel, or resume speaking in <channel>")\r
when "version"\r
- return "version => describes software version"\r
+ _("version => describes software version")\r
when "ping"\r
- return "ping => replies with a pong"\r
+ _("ping => replies with a pong")\r
+ when "mode"\r
+ _("mode <channel> <mode> <nicks> => set channel modes for <nicks> on <channel> to <mode>")\r
# when "botsnack"\r
# return "botsnack => reward #{myself} for being good"\r
# when "hello"\r
# return "hello|hi|hey|yo [#{myself}] => greet the bot"\r
else\r
- return "#{name}: quit, restart, join, part, hide, save, rescan, nick, say, action, topic, quiet, talk, version, ping"#, botsnack, hello"\r
+ _("%{name}: quit, restart, join, part, hide, save, nick, say, action, topic, quiet, talk,version, ping, mode") % {:name=>name}\r
+ #, botsnack, hello\r
end\r
end\r
end\r