DemonAI
👤
You 2:34 PM
Can you help me build a Discord bot with slash commands that has a ticket system, leveling, and automod? I want it in Node.js with discord.js v14.
🤖
DemonAI 2:34 PM

I'd be happy to help you build a comprehensive Discord bot! Here's a solid architecture for what you need:

Project Structure:

project-structure
discord-bot/ ├── src/ │ ├── bot.js // Main entry point │ ├── deploy.js // Slash command deployment │ ├── database.js // SQLite/JSON database │ ├── systems/ │ │ ├── tickets.js // Ticket system │ │ ├── leveling.js // XP & leveling │ │ └── automod.js // Auto-moderation │ └── commands/ │ ├── mod.js // Moderation commands │ └── info.js // Info commands ├── .env └── package.json

Here's the main bot setup:

javascript — bot.js
const { Client, GatewayIntentBits, Collection } = require('discord.js'); const { ticketSystem } = require('./systems/tickets'); const { levelingSystem } = require('./systems/leveling'); const { automodSystem } = require('./systems/automod'); const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMembers ] }); client.on('ready', () => { console.log(`✅ Bot online as ${client.user.tag}`); ticketSystem(client); levelingSystem(client); automodSystem(client); });

Key features I'd recommend including:

  • Ticket System: Button-based creation, staff claiming, transcript on close, auto-close after 72h inactivity
  • Leveling: 15-25 XP per message with 60s cooldown, role rewards at milestones, /rank and /leaderboard commands
  • AutoMod: Anti-spam (5 msgs/5s), anti-invite links, caps filter, anti-raid detection

Want me to build out any of these systems in detail? I can provide the full implementation for each one. 🚀

👤
You 2:36 PM
Yes, build out the ticket system with buttons and the full slash command. Make it so staff can claim tickets and there's a close button with transcript.
🤖
DemonAI 2:36 PM
DemonAI can make mistakes. Verify important information.