- Developed using Typescript and Discord.js v14
- Command Handler
- Events Handler
- Config File
- Slash Commands
Before starting with the installation, you need to have the following:
- Clone the Royal Bot repository:
git clone https://github.com/Mocy-Studio/Royal-Bot.git
- change the directory to Royal Bot
cd Royal-Bot
- Install the required packages:
npm install
- Build the codes
npm run start:bot or npm start:bot
- Set up your environment variables:
Create a .env
file in the root directory of your project with the following variables:
TOKEN="." # Your bot token
PREFIX="!" # Your prefix
OWNER_IDS="859640640640640640, 859640640640640640" # Your ID
CLIENT_ID="960072976412340254" # Your bot client ID
GUILD_ID="859640640640640640" # Your server ID (if you want to use it for a single server)
PRODUCTION="true" # "true" for production
DATABASE_URL="mongodb+srv://David:xxxxxxxxxxxx" # Your MongoDB URL
- Generate the Prisma client:
If you using replit than read this:
go to prisma/schema.prisma and add engine type like this
generator client {
provider = "prisma-client-js"
engineType = "binary"
}
and then run this command
npx prisma generate
- Run the bot:
npm run start or npm start
- Invite the bot to your server:
Generate an invite link for your bot and invite it to your server using the Discord Developer Portal.
Thank you for your interest in contributing to Royal Bot! Here are some guidelines to follow when contributing:
- Fork the repository and create a new branch for your feature or bug fix.
- Write clean and concise code that follows the established coding style.
- Create detailed and thorough documentation for any new features or changes.
- Write and run tests for your code.
- Submit a pull request with your changes.
Your contribution will be reviewed by the project maintainers, and any necessary feedback or changes will be discussed with you. We appreciate your help in making Royal Bot better!
Distributed under the Apache-2.0 license License. See for more information.