From 3b95eaf72872a4c36c9054e240aae3767ced0a38 Mon Sep 17 00:00:00 2001 From: Cesium Date: Sun, 9 Nov 2025 17:09:07 -0500 Subject: [PATCH] no bot for links --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 1532a10..0877470 100644 --- a/index.js +++ b/index.js @@ -84,7 +84,7 @@ client.on(Events.InteractionCreate, async interaction => { client.on(Events.MessageCreate, message => { // if we smell a profile link, resolve it const regexProfile = /https?:\/\/(?:www\.)?torn\.com\/profiles.*?[?&]XID=(\d+)/; - if (message.content.match(regexProfile)) { + if (message.content.match(regexProfile) && !message.author.bot) { const profileId = message.content.match(regexProfile)[1] console.log(`Chat: Detected profile link "${profileId}" in message`); torn.user.profile(profileId).then(data => {