Skip to content

Commit

Permalink
no mod channels
Browse files Browse the repository at this point in the history
  • Loading branch information
TheYande committed Aug 30, 2024
1 parent c7878a8 commit ed7fecd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/ai/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const memory = new Database<{ content: string }>("aimem");
await memory.init();
defineEvent("messageCreate", async (m) => {
if (m.author.bot) return;
if (m.channel.isTextBased()) if (!m.channel.isDMBased()) if (!m.channel.permissionsFor(config.roles.verified ?? "")?.has("ViewChannel")) return
const forcedReply =
m.channel.isDMBased() ||
m.channelId == "1276365384542453790" ||
Expand Down

0 comments on commit ed7fecd

Please sign in to comment.