Royal Manager v13 is a Discord bot designed for a two-server setup: a main server and a staff server. This bot includes a variety of features for moderation, staff management, utility, economy, and music, along with handling Top.gg votes via an Express API.
Note: This project is outdated and relies on Discord.js v13, which no longer supports the latest Discord API. As a result, the bot will not function properly unless updated to the latest Discord.js version. Consider upgrading the project for compatibility with the current Discord API.
- Moderation: Commands for banning, kicking, muting, and other server management tasks.
- Utility: Tools to assist with general server operations.
- Staff Management: Features to manage staff activity and communication across the staff server.
- Economy: A basic economy system for user engagement.
- Music Commands: Simple commands to play and manage music in voice channels.
- Top.gg Votes: Integrates with Top.gg using Express to track and reward server votes via an API.
- Node.js: Version 16.6.0 or higher (required for Discord.js v13)
- MongoDB: A running MongoDB instance or cluster
- Discord.js: Version 13 (outdated)
- Express: For handling Top.gg vote integration
To set up the bot locally, follow these steps:
git clone https://github.com/mathew2103/RoyalManagerV13.gitcd RoyalManagerV13Ensure you have Node.js installed, then run:
npm install- Environment Variables:
- Rename
.env.exampleto.env. - Update the
.envfile with the required environment variables:DISCORD_TOKEN: Your bot's Discord tokenMONGO_URI: Connection string for your MongoDB instanceTOPGG_API_TOKEN: Token for integrating with Top.gg API
- Rename
- Config File:
- Rename
config.json.exampletoconfig.json. - Update the configuration file to match your server setup.
- Rename
node index.js- This bot is designed to handle operations for a main server and a staff server.
- It uses MongoDB with Mongoose for managing persistent data such as:
- User activity
- Economy balances
- Moderation logs
- Express is used to handle Top.gg vote callbacks for server rewards.
- The music commands provide basic playback functionality but are limited compared to modern music bots.
- Outdated Discord.js v13: This version is no longer supported and does not work with Discord's current API. You will need to update to Discord.js v14+ or the latest version to restore functionality.
- Music Commands: Due to changes in YouTube and audio libraries, music functionality may also be broken.