AI, economy, moderation, fun, and utility features in one modern Discord bot.
Ragnarok is a multi-purpose Discord bot built with discordx and discord.js v14. It includes AI chat with persistent history, economy systems, moderation tools, fun commands, and server utilities.
|
Use slash commands and mention/reply flow with persistent history and per-guild controls. |
Configure AI globally in |
|
Server economy systems, XP/levels, and interactive component-driven command flows. |
Mongoose-backed persistence for bot data, configs, AI usage, and history. |
|
Modern Discord Components V2 containers for cleaner, richer in-app interfaces. |
Practical moderation, server configuration, and utility tools for day-to-day management. |
- Bun - Fast JavaScript runtime
- Discord Bot Application with bot token
- Optional external service keys (OpenRouter, Valhalla)
-
Clone the repository:
git clone https://github.com/Valhalla-Development/Ragnarok.git
-
Extract and move the files to your desired location.
-
Install Bun:
- Mac/Linux:
curl -fsSL https://bun.sh/install | bash - Windows:
powershell -c "irm bun.sh/install.ps1 | iex"
- Mac/Linux:
-
Navigate to your project folder:
cd /path/to/your/extracted/source -
Rename
.env.exampleto.envand configure your settings:- Required: Bot token and MongoDB URI
- Bot Token Guide
- Channel ID Guide
-
Install dependencies:
bun install
-
Start the bot:
bun run start
We welcome contributions to improve Ragnarok! If you'd like to contribute:
- Fork the repository
- Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
- Make your changes and commit them with a clear, descriptive message:
git commit -m 'Add feature: brief description of your changes' - Push your changes to your fork:
git push origin feature/your-feature-name
- Open a Pull Request against the main repository's
mainbranch
Please ensure your code follows the existing patterns and include clear descriptions in your Pull Request. Focus on performance and user experience improvements.
This project is licensed under the GPL-3.0 License - see the LICENSE file for details. (It's mostly "Share the love, and keep it open!")
- discord.js for the powerful Discord API wrapper
- discordx for the decorator-based command framework
- Bun for the blazing fast JavaScript runtime
- MongoDB for persistence
- OpenRouter for AI model routing
Got questions or need help? Join our Discord server for support and to connect with other Ragnarok users!
💻 Crafted with ❤️ by Valhalla-Development Built on the ValkyrieCore Discord bot template.