diff --git a/src/modules/newthread.js b/src/modules/newthread.js index 22bae22..79f5e97 100644 --- a/src/modules/newthread.js +++ b/src/modules/newthread.js @@ -9,6 +9,11 @@ module.exports = ({ bot, knex, config, commands }) => { return; } + if (user.bot) { + utils.postSystemMessageWithFallback(msg.channel, thread, "Can't create a thread for a bot"); + return; + } + const existingThread = await threads.findOpenThreadByUserId(user.id); if (existingThread) { utils.postSystemMessageWithFallback(msg.channel, thread, `Cannot create a new thread; there is another open thread with this user: <#${existingThread.channel_id}>`);