summaryrefslogtreecommitdiff
path: root/lib/rbot/core/config.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-03 17:18:50 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-03 17:18:50 +0000
commit12906a51f698aebe1c9a5e19b15555ebbbcc4368 (patch)
tree5e8cd21e79a2ef53fbb6f79196ee5455934c057d /lib/rbot/core/config.rb
parent4258907bfce64f40ca384b6532e47f30615da15b (diff)
Relocate help strings to proper locations, add help for 'mode' command
Diffstat (limited to 'lib/rbot/core/config.rb')
-rw-r--r--lib/rbot/core/config.rb33
1 files changed, 22 insertions, 11 deletions
diff --git a/lib/rbot/core/config.rb b/lib/rbot/core/config.rb
index a239e97d..9de7a861 100644
--- a/lib/rbot/core/config.rb
+++ b/lib/rbot/core/config.rb
@@ -176,25 +176,36 @@ class ConfigModule < CoreBotModule
end
def help(plugin, topic="")
- case topic
- when "list"
+ case plugin
+ when "config"
+ case topic
+ when ""
+ "config-related tasks: config topics, save, rescan"
+ when "list"
"config list => list configuration modules, config list <module> => list configuration keys for module <module>"
- when "get"
+ when "get"
"config get <key> => get configuration value for key <key>"
- when "unset"
+ when "unset"
"reset key <key> to the default"
- when "set"
+ when "set"
"config set <key> <value> => set configuration value for key <key> to <value>"
- when "desc"
+ when "desc"
"config desc <key> => describe what key <key> configures"
- when "add"
+ when "add"
"config add <value> to <key> => add value <value> to key <key> if <key> is an array"
- when "rm"
+ when "rm"
"config rm <value> from <key> => remove value <value> from key <key> if <key> is an array"
- else
+ else
"config module - bot configuration. usage: list, desc, get, set, unset, add, rm"
- # else
- # "no help for config #{topic}"
+ # else
+ # "no help for config #{topic}"
+ end
+ when "save"
+ "save => save current dynamic data and configuration"
+ when "rescan"
+ "rescan => reload modules and static facts"
+ else
+ "config-related tasks: config, save, rescan"
end
end