mirror of
https://github.com/reality/dbot.git
synced 2024-12-28 21:52:38 +01:00
parent
20ef3b6432
commit
400169f9ee
@ -124,7 +124,9 @@ var command = function(dbot) {
|
||||
if(isBanned(event.user, commandName)) {
|
||||
event.reply(dbot.t('command_ban', {'user': event.user}));
|
||||
} 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)) {
|
||||
try {
|
||||
dbot.commands[commandName](event);
|
||||
|
@ -1,3 +1,8 @@
|
||||
{
|
||||
"commands": {
|
||||
"~js": {
|
||||
"disabled": true
|
||||
}
|
||||
},
|
||||
"help": "http://github.com/reality/depressionbot/blob/master/modules/js/README.md"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user