# File rbot/ircbot.rb, line 454 def corehelp(topic="") case topic when "quit" return "quit [<message>] => quit IRC with message <message>" when "join" return "join <channel> [<key>] => join channel <channel> with secret key <key> if specified. #{@nick} also responds to invites if you have the required access level" when "part" return "part <channel> => part channel <channel>" when "hide" return "hide => part all channels" when "save" return "save => save current dynamic data and configuration" when "rescan" return "rescan => reload modules and static facts" when "nick" return "nick <nick> => attempt to change nick to <nick>" when "say" return "say <channel>|<nick> <message> => say <message> to <channel> or in private message to <nick>" when "action" return "action <channel>|<nick> <message> => does a /me <message> to <channel> or in private message to <nick>" when "topic" return "topic <channel> <message> => set topic of <channel> to <message>" when "quiet" 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>" when "talk" 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>" when "version" return "version => describes software version" when "botsnack" return "botsnack => reward #{@nick} for being good" when "hello" return "hello|hi|hey|yo [#{@nick}] => greet the bot" else return "Core help topics: quit, join, part, hide, save, rescan, nick, say, action, topic, quiet, talk, version, botsnack, hello" end end