forked from GitHub/dbot
parent
20ef3b6432
commit
400169f9ee
@ -124,7 +124,9 @@ var command = function(dbot) {
|
|||||||
if(isBanned(event.user, commandName)) {
|
if(isBanned(event.user, commandName)) {
|
||||||
event.reply(dbot.t('command_ban', {'user': event.user}));
|
event.reply(dbot.t('command_ban', {'user': event.user}));
|
||||||
} else {
|
} else {
|
||||||
if(!isIgnoring(event.user, commandName) && hasAccess(event.user, commandName)) {
|
if(!isIgnoring(event.user, commandName) &&
|
||||||
|
hasAccess(event.user, commandName) &&
|
||||||
|
dbot.commands[commandName].disabled !== true) {
|
||||||
if(applyRegex(commandName, event)) {
|
if(applyRegex(commandName, event)) {
|
||||||
try {
|
try {
|
||||||
dbot.commands[commandName](event);
|
dbot.commands[commandName](event);
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
"commands": {
|
||||||
|
"~js": {
|
||||||
|
"disabled": 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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user