Ignore Messages if Bot
This commit is contained in:
parent
0806714cfa
commit
bf6f883939
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue