๐ค SylaBot โ Discord Bot Platform
Category
Features
๐ก๏ธ Moderation
Ban, Kick, Timeout, Warn, Purge, Anti-Spam, Anti-Link, Word Filter, Mention Spam
๐ Logging
Message logs, Moderation actions, Member events, Voice activity
๐ Welcome
Custom messages, Canvas images, Auto-role, Verification system
๐ฎ Engagement
XP/Leveling, Rank cards, Leaderboard, Suggestions, Giveaways
๐ซ Support
Ticket system, Transcripts, Rating system, Multi-panel support
๐ค Voice
Join-to-Create channels, Custom controls, Permission management
๐ญ Roles
Button roles, Reaction roles, Auto-responder, Sticky messages
Modern UI โ Glass-morphism design with dark theme
Real-time Sync โ Redis Pub/Sub for instant updates
Multi-language โ Vietnamese & English support
Secure Auth โ Better-Auth with session management
Custom Bots โ Users can connect their own bot tokens
Database Isolation โ Separate PostgreSQL schemas per tenant
Encrypted Tokens โ AES-256-GCM encryption for security
Process Isolation โ Each bot runs in isolated process
Requirement
Version
Node.js
โฅ 22.0.0
pnpm
โฅ 10.0.0
PostgreSQL
โฅ 14
Redis
โฅ 7
# 1. Clone repository
git clone https://github.com/YOUR_USERNAME/discord-bot.git
cd discord-bot
# 2. Install dependencies
pnpm install
# 3. Copy environment file
cp .env.example .env # Then edit .env with your values
# 4. Setup database
pnpm db:generate
pnpm db:push
# 5. Deploy slash commands
pnpm bot:deploy
# 6. Start development
pnpm dev
Create .env file in root directory:
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# DATABASE
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DATABASE_URL = " postgresql://user:password@localhost:5432/discord_bot"
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# REDIS
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
REDIS_URL = " redis://localhost:6379"
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# DISCORD BOT
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DISCORD_TOKEN = " your_bot_token"
DISCORD_CLIENT_ID = " your_client_id"
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# DASHBOARD (Optional)
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
BETTER_AUTH_SECRET = " your_32_char_secret"
DASHBOARD_PORT = 3000
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# MULTI-TENANT (Optional)
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
TENANT_ENCRYPTION_KEY = " your-32-char-minimum-secret"
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# CLOUDFLARE R2 (Optional - for image uploads)
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
R2_ACCOUNT_ID = " "
R2_ACCESS_KEY_ID = " "
R2_SECRET_ACCESS_KEY = " "
R2_BUCKET_NAME = " "
R2_PUBLIC_URL = " "
Getting Discord Bot Token
Go to Discord Developer Portal
New Application โ Name it โ Create
Bot tab โ Reset Token โ Copy
Enable Privileged Gateway Intents :
โ
Presence Intent
โ
Server Members Intent
โ
Message Content Intent
OAuth2 โ URL Generator :
Scopes: bot, applications.commands
Permissions: Administrator
Copy invite URL and add bot to server
.
โโโ apps/
โ โโโ bot/ # Discord bot (discord.js)
โ โ โโโ src/
โ โ โโโ commands/ # Slash commands
โ โ โโโ events/ # Discord event handlers
โ โ โโโ modules/ # Feature modules
โ โ โโโ services/ # Business logic
โ โ
โ โโโ dashboard/ # Web dashboard (Next.js 15)
โ โ โโโ src/
โ โ โโโ app/ # App router pages
โ โ โโโ components/ # React components
โ โ โโโ hooks/ # Custom hooks
โ โ
โ โโโ manager/ # Bot process manager (multi-tenant)
โ
โโโ packages/
โ โโโ config/ # Shared configuration
โ โโโ database/ # Prisma schema & client
โ โโโ security/ # Encryption utilities
โ โโโ types/ # Shared TypeScript types
โ
โโโ scripts/ # Utility scripts
โโโ docker-compose.prod.yml # Production Docker config
โโโ turbo.json # Turborepo configuration
Command
Description
pnpm dev
Start all apps (Redis + Bot + Dashboard)
pnpm bot:dev
Start bot only (watch mode)
pnpm dashboard:dev
Start dashboard only
pnpm build
Build all apps for production
pnpm bot:deploy
Register slash commands
pnpm db:generate
Generate Prisma client
pnpm db:push
Push schema to database
pnpm db:studio
Open Prisma Studio
pnpm lint
Run ESLint
pnpm typecheck
Run TypeScript check
๐ก๏ธ Moderation
Command
Description
/ban <user> [reason]
Ban a member
/unban <user_id>
Unban a member
/kick <user> [reason]
Kick a member
/timeout <user> <duration>
Timeout a member
/warn <user> <reason>
Warn a member
/purge <amount>
Bulk delete messages
๐ Welcome & Automation
Command
Description
/setwelcome <channel>
Set welcome channel
/setgoodbye <channel>
Set goodbye channel
/autorole <role>
Set auto-role for new members
/verify setup
Setup verification system
/antispam enable/disable
Toggle anti-spam
/antilink enable/disable
Toggle anti-link
๐ฎ Engagement
Command
Description
/rank [user]
View rank card
/leaderboard
View XP leaderboard
/suggest <idea>
Submit a suggestion
/giveaway start <prize> <duration>
Start a giveaway
๐ซ Tickets
Command
Description
/ticket setup <category>
Setup ticket system
/ticket close [reason]
Close ticket
/ticket add <user>
Add user to ticket
/ticket remove <user>
Remove user from ticket
๐ค Temp Voice
Command
Description
/tempvoice setup
Setup join-to-create
/tempvoice rename <name>
Rename your channel
/tempvoice limit <number>
Set user limit
/tempvoice lock / unlock
Lock/unlock channel
/tempvoice permit / reject
Allow/deny users
Allow users to connect their own Discord bots with isolated databases.
# Generate encryption key
node -e " console.log(require('crypto').randomBytes(32).toString('base64'))"
# Add to .env
TENANT_ENCRYPTION_KEY=" your-generated-key"
Tier
Max Bots
Max Guilds/Bot
๐ Free
1
1
โญ Pro
1
2
๐ Ultra
1
3
Login to Dashboard
Navigate to My Bots
Click Create Bot
Enter Bot Token (encrypted automatically)
Click Start Bot
# Build and start
docker compose -f docker-compose.prod.yml up -d
# View logs
docker compose -f docker-compose.prod.yml logs -f
Bot doesn't respond to commands
Check bot is online in Discord
Run pnpm bot:deploy to register commands
Wait 1-2 minutes for Discord to update
Check bot has required permissions
Database errors
Verify DATABASE_URL is correct
Run pnpm db:push to sync schema
Check PostgreSQL is running
Redis connection failed
Verify Redis is running
Check REDIS_URL is correct
On Windows, use WSL: wsl redis-server
MIT License โ See LICENSE for details.
Made with โค๏ธ by SalyVn