summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--slowcord/bot/src/Bot.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/slowcord/bot/src/Bot.ts b/slowcord/bot/src/Bot.ts

index 4b684ea9..45938846 100644 --- a/slowcord/bot/src/Bot.ts +++ b/slowcord/bot/src/Bot.ts
@@ -27,7 +27,7 @@ export default class Bot { onMessageCreate = async (msg: Message) => { const prefix = process.env.PREFIX as string; if (msg.author.bot) return; - if (msg.content && msg.content.indexOf(prefix) === -1) return; + if (!msg.content || msg.content.indexOf(prefix) === -1) return; const content = msg.content.slice(prefix.length).split(" "); const cmd = content.shift();