Fix bot creating its own ticket

This commit is contained in:
Isaac 2021-05-12 18:04:38 +01:00
parent 6506a4e876
commit a0ec19faee
No known key found for this signature in database
GPG Key ID: F6812DBC6719B4E3

View File

@ -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