7205bcd5ac
Introduce a new Anti-Spam Discord bot project. Adds project metadata and scripts (package.json, .env.example, .gitignore, README, deploy-commands.js) and the full src implementation: command registration and handling, per-guild settings persistence, configuration parsing, spam detection logic (phishing URLs, suspicious TLDs, mass/role mentions, image+URL combos, new account heuristics), and the bot entrypoint (index.js) that enforces permissions, logs actions, and optionally bans offenders. README explains setup, required intents, and usage; per-server settings are stored under data/guild-settings.json. (package-lock.json added for dependency resolution.)
20 lines
445 B
JSON
20 lines
445 B
JSON
{
|
|
"name": "anti-spam-bot",
|
|
"version": "1.0.0",
|
|
"description": "Discord bot that detects phishing spam and bans offenders",
|
|
"main": "src/index.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "node src/index.js",
|
|
"dev": "node --watch src/index.js",
|
|
"deploy-commands": "node scripts/deploy-commands.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"dependencies": {
|
|
"discord.js": "^14.19.3",
|
|
"dotenv": "^16.5.0"
|
|
}
|
|
}
|