mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-22 03:25:41 +01:00
We want to make sure it's an actual command, not someone '...'-ing.
This commit is contained in:
parent
7506f0f287
commit
bd413efbfb
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user