Ignore Messages if Bot

This commit is contained in:
SDCore 2026-08-11 16:55:00 -05:00
parent 0806714cfa
commit bf6f883939

View file

@ -10,6 +10,9 @@ module.exports = {
const banChannelID = process.env.DONT_TYPE_HERE_CHANNEL;
const banLogChannel = await client.channels.fetch(process.env.BAN_LOG_CHANNEL);
// Ignore if bot
if (message.author.bot) return;
// Ignore if staff
if (message.member.roles.cache.some(role => role.name === 'Staff')) return;