mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-22 09:45:39 +01:00
Updated permissions. Disabled testing command.
This commit is contained in:
parent
399e484c58
commit
cf55869bb8
@ -1,7 +1,7 @@
|
|||||||
var app = require('../app.js');
|
var app = require('../app.js');
|
||||||
var logger = require('../logging.js');
|
var logger = require('../logging.js');
|
||||||
|
|
||||||
exports.roles = ['Admins', 'Moderators', 'Secret'];
|
exports.roles = ['Admins', 'Moderators'];
|
||||||
exports.command = function(message, reply) {
|
exports.command = function(message, reply) {
|
||||||
let replyMessage = 'Hello.';
|
let replyMessage = 'Hello.';
|
||||||
if (reply == null) {
|
if (reply == null) {
|
||||||
|
@ -4,7 +4,7 @@ var data = require('../data.js');
|
|||||||
var logger = require('../logging.js');
|
var logger = require('../logging.js');
|
||||||
var UserWarning = require('../models/UserWarning.js');
|
var UserWarning = require('../models/UserWarning.js');
|
||||||
|
|
||||||
exports.roles = ['Admins', 'Moderators', 'Secret', 'Helpers'];
|
exports.roles = ['Admins', 'Moderators'];
|
||||||
exports.command = function(message) {
|
exports.command = function(message) {
|
||||||
message.mentions.users.map((user) => {
|
message.mentions.users.map((user) => {
|
||||||
var count = app.warnings.filter(x => x.id == user.id && !x.cleared).length || 0;
|
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].`);
|
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.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));
|
app.warnings.push(new UserWarning(user.id, user.username, message.author.id, message.author.username, count));
|
||||||
data.flushWarnings();
|
data.flushWarnings();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user