do not register the bot in itself
This commit is contained in:
@@ -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 }
|
||||||
|
|||||||
Reference in New Issue
Block a user