From bd413efbfbff7a842542d553df35d33a2d90a081 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sat, 30 Sep 2017 11:47:59 -0400 Subject: [PATCH] We want to make sure it's an actual command, not someone '...'-ing. --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 6f9a64e..f2f3a86 100644 --- a/server.js +++ b/server.js @@ -66,7 +66,8 @@ client.on('message', message => { logger.verbose(`${message.author.username} ${message.author} [Channel: ${message.channel.name} ${message.channel}]: ${message.content}`); - if (message.content.startsWith('.')) { + // We want to make sure it's an actual command, not someone '...'-ing. + if (message.content.startsWith('.') && message.content.startsWith('..') === false) { let cmd = message.content.split(' ')[0].slice(1); // Check by the name of the command.