-
Notifications
You must be signed in to change notification settings - Fork 19
UsingConfig
Matthias Hecker edited this page Mar 9, 2015
·
1 revision
List the available configuration commands: !help config
<user> !help config
<rbot> config module - bot configuration. usage: list, desc, get, set, unset, add, rm
List the available configuration modules: !config list (The list will vary depending on plugins installed)
<user> !config list
<rbot> modules: auth, plugins, core, server, irc, log, send, agent, http, irclog, encoding, webservice, autoop,
rejoin, bash, cal, chanserv, dice, factoids, figlet, toilet, fortune, geoip, greet, host, imdb, keyword,
linkbot, markov, nickserv, note, oxford, poll, ri, rss, salut, duckduckgo, google, wikipedia, seen,
shortenurls, spell, translator, twitter, url, weather, youtube, quiz, roulette, wheelfortune
List the various configurations keys for a specific module: !config list <module>
<user> !config list log
<rbot> log.file, log.max_size, log.level, log.keep
Get a description of a particular configuration key: !config desc <key>
<user> !config desc log.level
<rbot> log.level: The minimum logging level (0=DEBUG,1=INFO,2=WARN,3=ERROR,4=FATAL) for console messages
Check the actual value of the configuration key: !config get <key>
<user> !config get log.level
<rbot> log.level: 1
Change the value of the configuration key to a new value: !config set <key> <value>
<user> !config set log.level 2
<rbot> okay
Some configuration keys store a list of values, you can add or re(move) values from it: !config add <value> to <key>, !config rm <value> from <key>
<user> !config add #example to irc.join_channels
<rbot> irc.join_channels: #test, #example
<user> !config rm #example from irc.join_channels
<rbot> irc.join_channels: #test
Save your configuration changes: !save
<user> !save
<rbot> okies!