From 8034d2667cbb8ddd8bb44c56f703c19fcec9ccb1 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sun, 29 Jan 2017 15:46:54 -0500 Subject: [PATCH] Updated variable name for wearnings. --- commands/warnings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/warnings.js b/commands/warnings.js index ecd03ec..b2ceb74 100644 --- a/commands/warnings.js +++ b/commands/warnings.js @@ -3,7 +3,7 @@ var logger = require('../logging.js'); exports.command = function(message) { message.mentions.users.map((user) => { - var count = app.warnings.filter(x => x.id == user.id && !x.cleared).length || 0; - message.channel.sendMessage(`${user}, you have ${count} warnings.`); + var warnings = app.warnings.filter(x => x.id == user.id && !x.cleared); + message.channel.sendMessage(`${user}, you have ${count.warnings} total warnings.`); }); }