3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-11 20:42:37 +01:00

Help links added to config [#89]

This commit is contained in:
reality 2012-12-30 20:30:49 +00:00
parent c06f754b8f
commit 1ab1ff5319
12 changed files with 27 additions and 7 deletions

View File

@ -1,3 +1,4 @@
{ {
"dbKeys": [ "bans" ] "dbKeys": [ "bans" ],
"help": "http://github.com/reality/depressionbot/blob/master/modules/admin/README.md"
} }

View File

@ -75,7 +75,7 @@ var command = function(dbot) {
} }
if(moduleName && dbot.config[moduleName].hasOwnProperty('help')) { 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', { event.reply(dbot.t('help_link', {
'module': moduleName, 'module': moduleName,
'link': help 'link': help

View File

@ -0,0 +1,3 @@
{
"help": "http://github.com/reality/depressionbot/blob/master/modules/command/README.md"
}

View File

@ -18,7 +18,7 @@
"english": "No usage information found for {command}." "english": "No usage information found for {command}."
}, },
"help_link": { "help_link": {
"english": "Help for {module}: {link}." "english": "Help for {module}: {link}"
}, },
"no_help": { "no_help": {
"english": "No help found for {module}." "english": "No help found for {module}."

View File

@ -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
View File

@ -0,0 +1,3 @@
{
"help": "http://github.com/reality/depressionbot/blob/master/modules/js/README.md"
}

View File

@ -1,3 +1,4 @@
{ {
"dbKeys": [ "kicks", "kickers" ] "dbKeys": [ "kicks", "kickers" ],
"help": "http://github.com/reality/depressionbot/blob/master/modules/kick/README.md"
} }

View File

@ -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
View File

@ -0,0 +1,3 @@
{
"help": "http://github.com/reality/depressionbot/blob/master/modules/poll/README.md"
}

View File

@ -1,4 +1,5 @@
{ {
"dbKeys": [ "quoteArrs" ], "dbKeys": [ "quoteArrs" ],
"rmLimit": 10 "rmLimit": 10,
"help": "http://github.com/reality/depressionbot/blob/master/modules/quotes/README.md"
} }

View File

@ -0,0 +1,3 @@
{
"help": "http://github.com/reality/depressionbot/blob/master/modules/report/README.md"
}

View File

@ -0,0 +1,3 @@
{
"help": "http://github.com/reality/depressionbot/blob/master/modules/spelling/README.md"
}