From 1ab1ff5319e89e42d2a2d9353b92277faad399a5 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 30 Dec 2012 20:30:49 +0000 Subject: [PATCH] Help links added to config [#89] --- modules/admin/config.json | 3 ++- modules/command/command.js | 2 +- modules/command/config.json | 3 +++ modules/command/strings.json | 2 +- modules/ignore/config.json | 3 ++- modules/js/config.json | 3 +++ modules/kick/config.json | 3 ++- modules/link/config.json | 3 ++- modules/poll/config.json | 3 +++ modules/quotes/config.json | 3 ++- modules/report/config.json | 3 +++ modules/spelling/config.json | 3 +++ 12 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 modules/command/config.json create mode 100644 modules/js/config.json create mode 100644 modules/poll/config.json create mode 100644 modules/report/config.json create mode 100644 modules/spelling/config.json diff --git a/modules/admin/config.json b/modules/admin/config.json index 1d1582a..23a6701 100644 --- a/modules/admin/config.json +++ b/modules/admin/config.json @@ -1,3 +1,4 @@ { - "dbKeys": [ "bans" ] + "dbKeys": [ "bans" ], + "help": "http://github.com/reality/depressionbot/blob/master/modules/admin/README.md" } diff --git a/modules/command/command.js b/modules/command/command.js index 7c0dfcc..0ab8bf2 100644 --- a/modules/command/command.js +++ b/modules/command/command.js @@ -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 diff --git a/modules/command/config.json b/modules/command/config.json new file mode 100644 index 0000000..857a504 --- /dev/null +++ b/modules/command/config.json @@ -0,0 +1,3 @@ +{ + "help": "http://github.com/reality/depressionbot/blob/master/modules/command/README.md" +} diff --git a/modules/command/strings.json b/modules/command/strings.json index 922eb63..d778c23 100644 --- a/modules/command/strings.json +++ b/modules/command/strings.json @@ -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}." diff --git a/modules/ignore/config.json b/modules/ignore/config.json index 7a4c116..3f89c31 100644 --- a/modules/ignore/config.json +++ b/modules/ignore/config.json @@ -1,3 +1,4 @@ { - "dbKeys": [ "ignores" ] + "dbKeys": [ "ignores" ], + "help": "http://github.com/reality/depressionbot/blob/master/modules/ignore/README.md" } diff --git a/modules/js/config.json b/modules/js/config.json new file mode 100644 index 0000000..deddf40 --- /dev/null +++ b/modules/js/config.json @@ -0,0 +1,3 @@ +{ + "help": "http://github.com/reality/depressionbot/blob/master/modules/js/README.md" +} diff --git a/modules/kick/config.json b/modules/kick/config.json index 10e1e76..0fd9db2 100644 --- a/modules/kick/config.json +++ b/modules/kick/config.json @@ -1,3 +1,4 @@ { - "dbKeys": [ "kicks", "kickers" ] + "dbKeys": [ "kicks", "kickers" ], + "help": "http://github.com/reality/depressionbot/blob/master/modules/kick/README.md" } diff --git a/modules/link/config.json b/modules/link/config.json index d1a8210..580a315 100644 --- a/modules/link/config.json +++ b/modules/link/config.json @@ -1,3 +1,4 @@ { - "autoTitle": false + "autoTitle": false, + "help": "http://github.com/reality/depressionbot/blob/master/modules/link/README.md" } diff --git a/modules/poll/config.json b/modules/poll/config.json new file mode 100644 index 0000000..d3d8ca6 --- /dev/null +++ b/modules/poll/config.json @@ -0,0 +1,3 @@ +{ + "help": "http://github.com/reality/depressionbot/blob/master/modules/poll/README.md" +} diff --git a/modules/quotes/config.json b/modules/quotes/config.json index 3a7dc05..6aeedb0 100644 --- a/modules/quotes/config.json +++ b/modules/quotes/config.json @@ -1,4 +1,5 @@ { "dbKeys": [ "quoteArrs" ], - "rmLimit": 10 + "rmLimit": 10, + "help": "http://github.com/reality/depressionbot/blob/master/modules/quotes/README.md" } diff --git a/modules/report/config.json b/modules/report/config.json new file mode 100644 index 0000000..b219759 --- /dev/null +++ b/modules/report/config.json @@ -0,0 +1,3 @@ +{ + "help": "http://github.com/reality/depressionbot/blob/master/modules/report/README.md" +} diff --git a/modules/spelling/config.json b/modules/spelling/config.json new file mode 100644 index 0000000..d9d16eb --- /dev/null +++ b/modules/spelling/config.json @@ -0,0 +1,3 @@ +{ + "help": "http://github.com/reality/depressionbot/blob/master/modules/spelling/README.md" +}