A simple Discord bot with essential moderation and utility commands.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Copyright (C) 2025 Luis Bauza
This program comes with ABSOLUTELY NO WARRANTY; for details see the LICENSE file. This is free software, and you are welcome to redistribute it under certain conditions described in the license.
- Modern Discord.js v14 implementation
- Slash commands for better user experience
- Essential moderation commands (kick, prune)
- AI-powered question answering with optional web search capability
- Help command for easy reference
/help- Lists all available commands/ping- Check if the bot is responsive/kick- Kick a user from the server (requires Kick Members permission)/prune- Delete up to 99 messages (requires Manage Messages permission)/ask- Ask a question to the AI (supports optional web search for up-to-date information)
- Create a
.envfile with your bot token and client ID:
DISCORD_TOKEN=your_token_here
CLIENT_ID=your_client_id_here
OPENROUTER_API_KEY=your_openrouter_api_key_here
- Install dependencies:
npm install- Deploy slash commands:
npm run deploy- Start the bot:
npm start- Node.js 16.9.0 or higher
- Discord.js v14
- A Discord bot token and application ID