Skip to content

Commit

Permalink
fix: Fix to filter system message (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina committed Mar 24, 2022
1 parent f4f21ac commit 3755a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adaptor/transformer/bot-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { RawMessage, Transformer } from '.';
export const botFilter: Transformer<RawMessage, RawMessage> =
(func: (message: RawMessage) => Promise<void>) =>
async (message: RawMessage) => {
if (!message.author?.bot) {
if (!message.author?.bot && !message.system) {
await func(message);
}
};

0 comments on commit 3755a4f

Please sign in to comment.