3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-25 19:44:22 +01:00

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, "ignorable": false,
"dbKeys": [ "bans" ], "dbKeys": [ "bans" ],
"dependencies": [ "command" ],
"help": "http://github.com/reality/depressionbot/blob/master/modules/admin/README.md" "help": "http://github.com/reality/depressionbot/blob/master/modules/admin/README.md"
} }

View File

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

View File

@ -34,7 +34,7 @@ var dent = function(dbot) {
this.commands['~dent'].regex = [/^~dent (.+)$/, 2]; this.commands['~dent'].regex = [/^~dent (.+)$/, 2];
this.onLoad = function() { 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) { dbot.api.command.addHook('~qadd', function(key, text) {
this.api.post(key + ': ' + text); this.api.post(key + ': ' + text);
}.bind(this)); }.bind(this));

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,6 @@
{ {
"autoTitle": false, "autoTitle": false,
"dependencies": [ "command" ],
"ignorable": true, "ignorable": true,
"help": "http://github.com/reality/depressionbot/blob/master/modules/link/README.md" "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(); var key = event.input[1].trim().toLowerCase();
if(_.has(quotes, key)) { if(_.has(quotes, key)) {
var quote = quotes[key].pop(); var quote = quotes[key].pop();
if(quotes[key].length === 0) { if(quotes[key].length == 0) {
delete quotes[key]; delete quotes[key];
} }
this.internalAPI.resetRemoveTimer(event, key, quote); this.internalAPI.resetRemoveTimer(event, key, quote);

View File

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

View File

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