How to setup ItsMyBot
Here, you will find all the information needed to launch and install ItsMyBot.
Prerequisites
It is recommended to use Linux to host ItsMyBot. You can also use Windows or MacOS, and the instructions are the same.
Memory Recommendations
ItsMyBot is optimized for efficiency, using less than 200MB of RAM under normal conditions. However, it is recommended to allocate between 500MB and 1GB of RAM to ensure smooth operation.
Installation
- Install Node.js, with a minimum recommended version of 18.x.
- Download the latest version of ItsMyBot from the website.
- Extract the zip file into a folder.
- Open a terminal in the folder.
- Install the dependencies with the command
npm install
.
Create the bot on Discord
- Go to the Discord developers site.
- Create a new application.
- Go to the Bot tab.
- Disable the "Public Bot" option.
- Enable the "Presence Intent," "Server Members Intent," and "Message Content Intent" options.
- Go to the OAuth2 tab.
- In the "OAuth2 URL Generator" section, check the "bot" and "applications.commands" scopes.
- In the "Bot Permissions" section, check the "Administrator" permission.
- Copy the generated link at the bottom of the page and paste it into your browser.
- Add the bot to your server (Note: the bot should only be on one server at a time).
Run the bot for the first time to generate the files
- Open a terminal in the bot's folder.
- Start the bot with the command
npm run start
.
Configuration
- Return to the Discord developers site.
- Choose your application and go to the "Bot" tab.
- Reset the bot token to get a new token.
- Copy the token.
- Open the
/configs/config.yml
file. - Paste the token into the
token
field. - Add your primary guild ID to the
primary-guild
field. - Save the file.
- If you have plugins for the bot, you can add them to the
/build/plugins/
folder.
Launch the bot
- Open a terminal in the bot's folder.
- Start the bot with the command
npm run start
.
Pterodactyl Panel Configuration
For users deploying the bot on a Pterodactyl panel, ensure that the Main file
is set to: build/core/index