v0.0.3
Update Packages & Ban Log Info
This commit is contained in:
commit
4e0779f5a7
4 changed files with 12 additions and 11 deletions
12
package-lock.json
generated
12
package-lock.json
generated
|
|
@ -1,16 +1,16 @@
|
|||
{
|
||||
"name": "lucy_watchcat",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "lucy_watchcat",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"chalk": "^4.1.2",
|
||||
"discord.js": "^14.26.3",
|
||||
"discord.js": "^14.26.4",
|
||||
"dotenv": "^17.4.2"
|
||||
}
|
||||
},
|
||||
|
|
@ -274,9 +274,9 @@
|
|||
]
|
||||
},
|
||||
"node_modules/discord.js": {
|
||||
"version": "14.26.3",
|
||||
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.26.3.tgz",
|
||||
"integrity": "sha512-XEKtYn28YFsiJ5l4fLRyikdbo6RD5oFyqfVHQlvXz2104JhH/E8slN28dbky05w3DCrJcNVWvhVvcJCTSl/KIg==",
|
||||
"version": "14.26.4",
|
||||
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.26.4.tgz",
|
||||
"integrity": "sha512-4oBp8tc6Kf8IDBwAHhbsMaAqx1b5fob9SNasZT7V6yyyUydoO5i5fGuX7TmvRtR+q/WgKRnRViRoAWnG7fNyvA==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@discordjs/builders": "^1.14.1",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "lucy_watchcat",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"description": "",
|
||||
"license": "ISC",
|
||||
"author": "",
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"chalk": "^4.1.2",
|
||||
"discord.js": "^14.26.3",
|
||||
"discord.js": "^14.26.4",
|
||||
"dotenv": "^17.4.2"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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