diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index 86d8625..f857158 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -11,6 +11,8 @@ export default class { public async run(message: Message) { try { + if (message.author.bot) return; + if (message.content.indexOf(this.client.config.prefix) !== 0) return; const noPrefix: string[] = message.content.slice(this.client.config.prefix.length).trim().split(/ +/g); const command: string = noPrefix[0].toLowerCase(); const resolved: Command = this.client.util.resolveCommand(command);