Include Message in Ban Log
This commit is contained in:
parent
c9d11a9d6e
commit
3b5c6f6315
2 changed files with 4 additions and 3 deletions
|
|
@ -17,7 +17,8 @@ module.exports = {
|
|||
if (channelID !== banChannelID) return;
|
||||
|
||||
// Ban user if they type in the channel
|
||||
await message.member.ban({ reason: `Likely bot, typed in <#${process.env.DONT_TYPE_HERE_CHANNEL}>`, deleteMessageSeconds: 60 * 60 * 24 });
|
||||
await banLogChannel.send(`User <@${message.author.id}> has been banned for typing in <#${process.env.DONT_TYPE_HERE_CHANNEL}>.`);
|
||||
await message.member.ban({ reason: `Likely bot, typed in honeypot channel.`, deleteMessageSeconds: 60 * 60 * 24 });
|
||||
await banLogChannel.send(`User <@${message.author.id}> has been banned for typing in <#${process.env.DONT_TYPE_HERE_CHANNEL}>.\nMessage: \`${message.content}\``);
|
||||
console.log(`${chalk.red.bold('[WatchCat]')} User ${message.author.tag} (${message.author.id}) has been banned for typing in the honeypot channel`);
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ const { Client, GatewayIntentBits } = require('discord.js');
|
|||
|
||||
dotenv.config({ quiet: true });
|
||||
|
||||
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers] });
|
||||
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers, GatewayIntentBits.MessageContent] });
|
||||
|
||||
client
|
||||
.login(process.env.DISCORD_TOKEN)
|
||||
|
|
|
|||
Loading…
Reference in a new issue