Ignore Messages from Bots #1

Merged
SDCore merged 3 commits from dev into main 2026-08-11 22:25:10 +00:00
Showing only changes of commit bf6f883939 - Show all commits

View file

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