Config (.env)
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,22222222222222222
TOKEN
: The bot token
for your Discord bot, used to authenticate and connect to the Discord API. You'll need to replace this with your actual bot token.
LICENSE_ID
: You can retrieve it by entering the Discord server.
DB_HOST
: DB_HOST
: The IP address or hostname of your MySQL database server. In this case, it's set to 127.0.0.1
, which refers to the local machine (localhost).
DB_PORT
: The port for the MySQL database, typically set to 3306
.
DB_USER
: The username for accessing the MySQL database. Here, it's set to root
, which is often the default MySQL administrator account.
DB_PASSWORD
: The password for the MySQL user (root
). You need to replace this with the actual password for the MySQL database user.
DB_NAME
: The name of the database where licenses and related data are stored. In this case, it's license_db
.
LOG_CREATION_LICENSE
: The Discord channel ID where license creation logs will be sent. Replace this with the actual channel ID in your Discord server.
LOG_EDIT_LICENSE
: The Discord channel ID where license edit logs will be sent. Replace with the actual channel ID.
LOG_DELETE_LICENSE
: The Discord channel ID for logging license deletions.
LOG_ERROR_SCRIPT
: The Discord channel ID for logging errors related to scripts.
LOG_SCRIPT
: The Discord channel ID for logging general script activities.
ADMINS
: A comma-separated list of Discord user IDs who are allowed to use admin-level commands. Replace these IDs with the actual Discord user IDs of your administrators.
Last updated