forked from GitHub/dbot
Help links added to config [#89]
This commit is contained in:
parent
c06f754b8f
commit
1ab1ff5319
@ -1,3 +1,4 @@
|
||||
{
|
||||
"dbKeys": [ "bans" ]
|
||||
"dbKeys": [ "bans" ],
|
||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/admin/README.md"
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ var command = function(dbot) {
|
||||
}
|
||||
|
||||
if(moduleName && dbot.config[moduleName].hasOwnProperty('help')) {
|
||||
var help = dbot.config[modulename].help;
|
||||
var help = dbot.config[moduleName].help;
|
||||
event.reply(dbot.t('help_link', {
|
||||
'module': moduleName,
|
||||
'link': help
|
||||
|
3
modules/command/config.json
Normal file
3
modules/command/config.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/command/README.md"
|
||||
}
|
@ -18,7 +18,7 @@
|
||||
"english": "No usage information found for {command}."
|
||||
},
|
||||
"help_link": {
|
||||
"english": "Help for {module}: {link}."
|
||||
"english": "Help for {module}: {link}"
|
||||
},
|
||||
"no_help": {
|
||||
"english": "No help found for {module}."
|
||||
|
@ -1,3 +1,4 @@
|
||||
{
|
||||
"dbKeys": [ "ignores" ]
|
||||
"dbKeys": [ "ignores" ],
|
||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/ignore/README.md"
|
||||
}
|
||||
|
3
modules/js/config.json
Normal file
3
modules/js/config.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/js/README.md"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
{
|
||||
"dbKeys": [ "kicks", "kickers" ]
|
||||
"dbKeys": [ "kicks", "kickers" ],
|
||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/kick/README.md"
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
{
|
||||
"autoTitle": false
|
||||
"autoTitle": false,
|
||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/link/README.md"
|
||||
}
|
||||
|
3
modules/poll/config.json
Normal file
3
modules/poll/config.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/poll/README.md"
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"dbKeys": [ "quoteArrs" ],
|
||||
"rmLimit": 10
|
||||
"rmLimit": 10,
|
||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/quotes/README.md"
|
||||
}
|
||||
|
3
modules/report/config.json
Normal file
3
modules/report/config.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/report/README.md"
|
||||
}
|
3
modules/spelling/config.json
Normal file
3
modules/spelling/config.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/spelling/README.md"
|
||||
}
|
Loading…
Reference in New Issue
Block a user