DC Bot
A complete Discord moderation bot written from scratch with Turkish slash commands. Data is stored in JSON files — no database setup required.
What does it do?
It covers everything a Discord server typically needs for moderation: bans, kicks, timeouts, a warning system, channel management, an automatic spam filter, welcome messages and stats panels. Commands are slash commands with Turkish labels.
Features
- Moderation —
/ban,/unban,/kick,/mute,/unmute - Warnings —
/warn,/warns,/clearwarn; three warnings trigger an automatic 10-minute timeout - Channel tools —
/purge,/slowmode,/lock,/unlock - Auto moderation — spam, mention spam, invite/link blocking and a banned-word filter
- Welcome / goodbye — embed messages with banner, member count and account age
- Role panel — button-based role selection via
/rol-ekle - Mod panel —
/modpanelwith ban/kick/mute/warn stats - Cross-server — a
sunucuoption on commands to act in another server, plus/sunucular - Logging & DMs — every action is embed-logged and the target user gets a DM
Installation
npm install
# fill in .env:
TOKEN=discord_token_in
CLIENT_ID=application_id_in
GUILD_ID=sunucu_id_in
node src/deploy-commands.js
In the Discord Developer Portal, Server Members Intent and
Message Content Intent must be enabled — otherwise the automatic
filter won't work. Filling in GUILD_ID registers commands
instantly.
Technical notes
The codebase is split into event and command files (src/events,
src/commands), so adding a command is a single file. The data
layer is abstracted behind database.js and writes JSON files,
which means the bot runs entirely on its own with no external services.
The design goal was "set up in under five minutes". That's why file-based storage was chosen over a database — plenty for small and medium servers.