Add dependency info [#187]

This commit is contained in:
reality 2013-01-21 20:50:23 +00:00
parent 9ac8d3fd29
commit 2f2356f2fd
11 changed files with 12 additions and 3 deletions

View File

@ -1,5 +1,6 @@
{
"ignorable": false,
"dbKeys": [ "bans" ],
"dependencies": [ "command" ],
"help": "http://github.com/reality/depressionbot/blob/master/modules/admin/README.md"
}

View File

@ -1,6 +1,7 @@
{
"username": "youruserhere",
"password": "yourpasswordhere",
"dependencies": [ "command" ],
"ignorable": true,
"dentQuotes": false
}

View File

@ -34,7 +34,7 @@ var dent = function(dbot) {
this.commands['~dent'].regex = [/^~dent (.+)$/, 2];
this.onLoad = function() {
if(dbot.config.dent.dentQuotes === true) {
if(dbot.config.dent.dentQuotes === true && _.has(dbot.modules, 'quotes')) {
dbot.api.command.addHook('~qadd', function(key, text) {
this.api.post(key + ': ' + text);
}.bind(this));

View File

@ -1,3 +1,4 @@
{
"ignorable": true
"ignorable": true,
"dependencies": [ "command" ]
}

View File

@ -1,5 +1,6 @@
{
"ignorable": false,
"dependencies": [ "command" ],
"dbKeys": [ "ignores" ],
"help": "http://github.com/reality/depressionbot/blob/master/modules/ignore/README.md"
}

View File

@ -4,6 +4,7 @@
"disabled": true
}
},
"dependencies": [ "command" ],
"ignorable": true,
"help": "http://github.com/reality/depressionbot/blob/master/modules/js/README.md"
}

View File

@ -1,5 +1,6 @@
{
"dbKeys": [ "kicks", "kickers" ],
"dependencies": [ "command" ],
"help": "http://github.com/reality/depressionbot/blob/master/modules/kick/README.md",
"ignorable": true
}

View File

@ -1,5 +1,6 @@
{
"autoTitle": false,
"dependencies": [ "command" ],
"ignorable": true,
"help": "http://github.com/reality/depressionbot/blob/master/modules/link/README.md"
}

View File

@ -103,7 +103,7 @@ var commands = function(dbot) {
var key = event.input[1].trim().toLowerCase();
if(_.has(quotes, key)) {
var quote = quotes[key].pop();
if(quotes[key].length === 0) {
if(quotes[key].length == 0) {
delete quotes[key];
}
this.internalAPI.resetRemoveTimer(event, key, quote);

View File

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

View File

@ -1,4 +1,5 @@
{
"ignorable": true,
"dependencies": [ "command", "users" ],
"help": "http://github.com/reality/depressionbot/blob/master/modules/report/README.md"
}