From a0ec19faee321c31ed18ad8812861c18d321c7cd Mon Sep 17 00:00:00 2001 From: Isaac Date: Wed, 12 May 2021 18:04:38 +0100 Subject: [PATCH] Fix bot creating its own ticket --- src/listeners/message.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/listeners/message.js b/src/listeners/message.js index f8e1c0c..6b0d81b 100644 --- a/src/listeners/message.js +++ b/src/listeners/message.js @@ -28,6 +28,8 @@ module.exports = { }); } } else { + if (message.author.bot) return; + let p_row = await client.db.models.Panel.findOne({ where: { channel: message.channel.id