Skip to content

Commit d268203

Browse files
committed
ignore bots
1 parent 829ac59 commit d268203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/discord/modules/shitposting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ export default async (bot: DiscordBot) => {
415415
msg.content.toLowerCase()
416416
);
417417
const isChatChannel = bot.config.channels.chat === msg.channelId;
418-
const isBot = msg.author.id === id;
418+
const isBot = msg.author.id === id || msg.author.bot;
419419
const isMention = msg.mentions.users.first()?.id === id;
420420
const isAllowedChannel = bot.config.bot.allowedShitpostingChannels.includes(msg.channelId);
421421
const isHidden = msg.guild

0 commit comments

Comments
 (0)