Skip to content

Commit

Permalink
fix: don't send alias if not just alias
Browse files Browse the repository at this point in the history
  • Loading branch information
r-priyam committed Nov 27, 2024
1 parent b207ad8 commit eee9dfc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/listeners/message/alias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export class BotListener extends Listener<typeof Events.MessageCreate> {
}

const cachedAlias = await this.redis.fetch(RedisKeys.ClanAlias, undefined);
const aliasedMessage = message.content.toUpperCase().split(' ', 1);

const aliasedMessage = message.content.toUpperCase().split(' ');
if (aliasedMessage.length > 1 || !cachedAlias) {
return;
}
Expand Down

0 comments on commit eee9dfc

Please sign in to comment.