Discord bot that warns all the servers it is in when a new game is given for free by Epic Games. In addition to the script, the bot has serveral commands to get information about the free game system implemented by Epic. The bot has kept all the data related to theses promotions since the beginning of the Epic Games Store.
The bot is written in JavaScript and run with PM2 to manage the process. The dailyDisplayer is run every day automatically using crontab.
Finally, this project uses a MySQL database to store all the needed data.
To install the depedencies, simply run npm install
at the root of the repository. Then, you will need few environment variables in a .env file.
Those variables are: DISCORD_TOKEN
, DB_HOST
, DB_USER
, DB_PASSWORD
, DB_PORT
, DB_DATABASE
, LOGS (enabled|disabled)
.
There are 3 different commands to run depending on what you want to start:
npm run bot
: Botnpm run daily
: dailyDisplayernpm start
: Test script
An image worths 1000 words:
- axios v0.21.1
- discord.js v14.2.0
- dotenv v8.2.0
- mysql2 v2.3.0
Nathan Touzé