From ec64d264964c52a42b4ba899d981eb4ac15c1954 Mon Sep 17 00:00:00 2001 From: Legonzaur Date: Fri, 16 Jun 2023 23:06:13 +0200 Subject: [PATCH] do not register the bot in itself --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 949a3f6..59f57a5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -86,6 +86,7 @@ client.on('messageCreate', async (e) => { if (e.guild === null) return if (e.member === null) return if (!e.channel.isTextBased()) return + if (e.author.bot) return const channel = await execute( 'SELECT * from tracked WHERE guild=$guild AND channel=$channel', { $channel: e.channelId, $guild: e.guildId }