From 3980bf20f5e5583579115f8815a1f57556a0cd20 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Fri, 16 Dec 2022 17:41:47 -0700 Subject: [PATCH] codePreviews: the world if people didnt intentionally try to break things --- src/modules/codePreviews.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/codePreviews.js b/src/modules/codePreviews.js index c53393b..162361b 100644 --- a/src/modules/codePreviews.js +++ b/src/modules/codePreviews.js @@ -78,6 +78,7 @@ async function processFile(link) { } events.add("messageCreate", "codePreviews", async function (msg) { + if (msg.author.id == hf.bot.user.id) return; if (!msg.guildID) return; if (!(await hasFlag(msg.guildID, "codePreviews"))) return;