Add Anti-Spam Discord bot

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.)
This commit is contained in:
Andrew Zambazos
2026-06-12 08:10:30 +12:00
commit 7205bcd5ac
12 changed files with 1168 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"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"
}
}