forked from GitHub/dbot
Denting quotes optional [#181]
This commit is contained in:
parent
c061109b55
commit
1958db6df1
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"username": "youruserhere",
|
"username": "youruserhere",
|
||||||
"password": "yourpasswordhere",
|
"password": "yourpasswordhere",
|
||||||
"ignorable": true
|
"ignorable": true,
|
||||||
|
"dentQuotes": false
|
||||||
}
|
}
|
||||||
|
@ -34,12 +34,10 @@ var dent = function(dbot) {
|
|||||||
this.commands['~dent'].regex = [/^~dent (.+)$/, 2];
|
this.commands['~dent'].regex = [/^~dent (.+)$/, 2];
|
||||||
|
|
||||||
this.onLoad = function() {
|
this.onLoad = function() {
|
||||||
dbot.api.command.addHook('~qadd', function(key, text) {
|
if(dbot.config.dent.dentQuotes === true) {
|
||||||
this.api.post(key + ': ' + text);
|
dbot.api.command.addHook('~qadd', function(key, text) {
|
||||||
}.bind(this));
|
this.api.post(key + ': ' + text);
|
||||||
|
}.bind(this));
|
||||||
if(_.has(dbot.modules, 'quotes')) {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user