Skip to content

Commit

Permalink
oh geez
Browse files Browse the repository at this point in the history
Signed-off-by: RedGuy12 <paul@reid-family.org>
  • Loading branch information
cobaltt7 committed Mar 14, 2023
1 parent 1dcd247 commit 9f47d4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions events/message/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ const event: Event<"messageCreate"> = async function event(message) {
const content = stripMarkdown(normalize(message.content).replaceAll(/<.+?>/g, ""));

if (
((userSettingsDatabase.data.find(({ user }) => user === message.author.id)?.dad ?? false) &&
content.match(/^i['"`‘’“”]?m\b/) &&
CONSTANTS.channels.modlogs?.id !== baseChannel?.id) ||
(userSettingsDatabase.data.find(({ user }) => user === message.author.id)?.dad ?? false) &&
content.match(/^i['"`‘’“”]?m\b/) &&
CONSTANTS.channels.modlogs?.id !== baseChannel?.id &&
CONSTANTS.channels.info?.id !== baseChannel?.parent?.id
) {
const name =
Expand Down

0 comments on commit 9f47d4a

Please sign in to comment.