Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix(Message): ignore commands ran by bots
Browse files Browse the repository at this point in the history
  • Loading branch information
alexthemaster committed Jul 26, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent e7f347f commit 33a3ddd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/events/Message.ts
Original file line number Diff line number Diff line change
@@ -24,6 +24,8 @@ export default class extends Event {
monitor.run(message);
});

if (message.author.bot) return;

// If the message doesn't start with ANY prefix then return
if (!this.client.prefixes.some(prefix => message.content.startsWith(prefix))) return;

0 comments on commit 33a3ddd

Please sign in to comment.