diff --git a/src/equicordplugins/boo/Boo.tsx b/src/equicordplugins/boo/Boo.tsx index 8e96ae4c1..b195847f9 100644 --- a/src/equicordplugins/boo/Boo.tsx +++ b/src/equicordplugins/boo/Boo.tsx @@ -163,8 +163,8 @@ export function Boo({ channel }: { channel: Channel; }) { return; } - // if exempted, remove from ghost tracking - if (isExempted) { + // if exempted or bot (if setting enabled), remove from ghost tracking + if (isExempted || (settings.store.ignoreBots && lastMessage.author.bot)) { if (countedChannels.has(id)) { countedChannels.delete(id); setBooCount(getBooCount() - 1); @@ -186,7 +186,7 @@ export function Boo({ channel }: { channel: Channel; }) { } }, [state.isCurrentUser, state.isDataProcessed, id, lastMessage?.id]); - if (!state.isDataProcessed || !currentUserId || !lastMessage || state.isCurrentUser || isChannelExempted(id) || isCleared) + if (!state.isDataProcessed || !currentUserId || !lastMessage || state.isCurrentUser || isChannelExempted(id) || isCleared || (settings.store.ignoreBots && lastMessage.author.bot)) return null; if (!settings.store.showDmIcons) return null; diff --git a/src/equicordplugins/boo/index.tsx b/src/equicordplugins/boo/index.tsx index 2abdc1157..788af9592 100644 --- a/src/equicordplugins/boo/index.tsx +++ b/src/equicordplugins/boo/index.tsx @@ -84,6 +84,12 @@ export const settings = definePluginSettings({ description: "Something might happen if you ignore someone for too long...", default: false, restartNeeded: false + }, + ignoreBots: { + type: OptionType.BOOLEAN, + description: "Ignore DMs from bots", + default: true, + restartNeeded: false } }); diff --git a/src/utils/constants.ts b/src/utils/constants.ts index b5ab319d6..78010ea6c 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -632,7 +632,7 @@ export const Devs = /* #__PURE__*/ Object.freeze({ alfred: { name: "alfred", id: 1038466644353232967n - } + }, } satisfies Record); export const EquicordDevs = Object.freeze({ @@ -1205,7 +1205,7 @@ export const EquicordDevs = Object.freeze({ name: "neoarz", id: 1015372540937502851n }, - KamiRu:{ + KamiRu: { name: "KamiRu", id: 819191621676695563n },