diff --git a/src/bot/modules/command_handler.ts b/src/bot/modules/command_handler.ts index 0ae1f86..68c4c20 100644 --- a/src/bot/modules/command_handler.ts +++ b/src/bot/modules/command_handler.ts @@ -37,7 +37,7 @@ client.on('message', async message => { } else if (cmdName.startsWith(guildPrefix)) { cmdName = cmdName.substr(guildPrefix.length); if (config.spaceAfterPrefix && !cmdName) cmdName = args.shift() ?? ''; - } + } else return; if (!cmdName) return;