From cf55869bb8ba76077edf3171667d6b1b12ffa71b Mon Sep 17 00:00:00 2001 From: chris062689 Date: Fri, 7 Apr 2017 19:17:19 -0400 Subject: [PATCH] Updated permissions. Disabled testing command. --- commands/quote.js | 2 +- commands/{testing.js => testing.disabled.js} | 0 commands/warn.js | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename commands/{testing.js => testing.disabled.js} (100%) diff --git a/commands/quote.js b/commands/quote.js index acec19b..d3a4ea1 100644 --- a/commands/quote.js +++ b/commands/quote.js @@ -1,7 +1,7 @@ var app = require('../app.js'); var logger = require('../logging.js'); -exports.roles = ['Admins', 'Moderators', 'Secret']; +exports.roles = ['Admins', 'Moderators']; exports.command = function(message, reply) { let replyMessage = 'Hello.'; if (reply == null) { diff --git a/commands/testing.js b/commands/testing.disabled.js similarity index 100% rename from commands/testing.js rename to commands/testing.disabled.js diff --git a/commands/warn.js b/commands/warn.js index 3d8f997..b1468c3 100644 --- a/commands/warn.js +++ b/commands/warn.js @@ -4,7 +4,7 @@ var data = require('../data.js'); var logger = require('../logging.js'); var UserWarning = require('../models/UserWarning.js'); -exports.roles = ['Admins', 'Moderators', 'Secret', 'Helpers']; +exports.roles = ['Admins', 'Moderators']; exports.command = function(message) { message.mentions.users.map((user) => { var count = app.warnings.filter(x => x.id == user.id && !x.cleared).length || 0; @@ -12,7 +12,7 @@ exports.command = function(message) { logger.info(`${message.author.username} ${message.author} has warned ${user.username} ${user} [${count} + 1].`); app.logChannel.sendMessage(`${message.author} has warned ${user} [${count} + 1].`); - + app.warnings.push(new UserWarning(user.id, user.username, message.author.id, message.author.username, count)); data.flushWarnings();