do not register the bot in itself

This commit is contained in:
2023-06-16 23:06:13 +02:00
parent 3c9b17febd
commit ec64d26496
+1
View File
@@ -86,6 +86,7 @@ client.on('messageCreate', async (e) => {
if (e.guild === null) return if (e.guild === null) return
if (e.member === null) return if (e.member === null) return
if (!e.channel.isTextBased()) return if (!e.channel.isTextBased()) return
if (e.author.bot) return
const channel = await execute( const channel = await execute(
'SELECT * from tracked WHERE guild=$guild AND channel=$channel', 'SELECT * from tracked WHERE guild=$guild AND channel=$channel',
{ $channel: e.channelId, $guild: e.guildId } { $channel: e.channelId, $guild: e.guildId }