@fengnaiouo/dcbot-cli
v1.2.1
Published
Discord Bot Web Dashboard Manager CLI
Readme
🤖 Discord Bot Easy Dashboard
✨ Features
- 🚀 One-Click Deployment: Manage dependencies, env vars, and database initialization with
dcbot-cli. - 🛡️ Anti-Link Guard: Advanced message monitoring with support for whitelist, warnings, deletion, kick, or ban.
- 📊 Modern Dashboard: Premium dark-themed design supporting Traditional Chinese, Simplified Chinese, and English.
- ⚙️ Real-time Monitoring: Integrated server member counts, resource usage, and uptime statistics.
- 📦 Global Data Persistence: Persistent data directory design ensures your settings are safe even if the project is moved.
- 📖 Built-in Docs: Markdown-rendered documentation directly accessible within the dashboard.
🚀 Quick Start
1. Global Installation (Recommended)
Install the management CLI directly via npm or pnpm:
# Using pnpm (Recommended)
pnpm add -g @fengnaiouo/dcbot-cli
# Using npm
npm install -g @fengnaiouo/dcbot-cliOnce installed, the dcbot-cli command will be available globally.
2. Project Initialization
Navigate to the directory where you want to store your bot data and run:
dcbot-cli startFollow the interactive prompts to initialize your environment, install dependencies, and start the dashboard.
🛠️ CLI Commands
| Command | Description |
| --- | --- |
| dcbot-cli init | Manually initialize environment and database |
| dcbot-cli dev | Start development environment (hot-reload) |
| dcbot-cli start | Start production environment (auto-build & start) |
| dcbot-cli build | Build the project for production |
| dcbot-cli up | One-click update CLI to the latest version |
4. Start the Dashboard
# Development Mode (with hot-reload)
dcbot-cli dev
# Production Mode (optimized for performance)
dcbot-cli build
dcbot-cli start📚 Documentation
Detailed technical guides and configuration details are available in the docs directory:
- 🛠️ CLI Commands - Detailed usage for
dcbot-cli. - ⚙️ Configuration Guide - Bot permissions and API settings.
- 🛡️ Security & Anti-Link - Link filtering rules and OCR logic.
- 🏗️ Architecture - System design and data flow.
🛠️ Tech Stack
- UI Framework: Next.js 15 (App Router)
- Styling: Tailwind CSS 4.0
- Database: Prisma + Better-SQLite3
- Authentication: NextAuth.js
- Bot Engine: Discord.js v14
- CLI Power: Commander.js + TSX
📜 License
This project is licensed under the MIT License.
