Windows
1. Download the .rar
file
.rar
fileExtract the contents of the .rar
file into a folder on your PC. You can use programs like WinRAR or 7-Zip
2. Modify the .env
configuration file
.env
configuration fileInside the extracted folder, you will find a file called .env
Open it with a text editor (such as Notepad or Visual Studio Code)
Input the required details such as your bot token, client ID, etc.
Example configuration:
TOKEN=
LICENSE_ID=your_license_id_here
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASSWORD=
DB_NAME=license_db
LOG_CREATION_LICENSE=11111111111111111111
LOG_EDIT_LICENSE=11111111111111111111
LOG_DELETE_LICENSE=11111111111111111111
LOG_ERROR_SCRIPT=11111111111111111111
LOG_SCRIPT=11111111111111111111
ADMINS=11111111111111111111,222222222222222222
For the license_id, you need to request the license in the Discord server.
3. Import the database from query.sql
query.sql
Open HeidiSQL or another MySQL-compatible database management tool.
Execute the query.sql
file, which contains the necessary SQL instructions to set up the database structure.
4. Install dependencies from requirements.txt
requirements.txt
Open the terminal (cmd) in the folder where you extracted the files.
Run the command to install all necessary libraries:
npm install
5. Run the bot
Once the libraries are installed, you can start the bot by running the command:
node main.js
Last updated