-
Navigate to the root directory of the project.
-
Create a new file named
.env -
Open the
.envfile in a text editor. -
Add the following lines to the
.envfile, replacingYOUR_VARIABLEwith the actualGITHUB_API_KEYandDISCORD_WEBHOOK_URLwith the corresponding value:GITHUB_API_KEY=your_github_api_key_here DISCORD_WEBHOOK_URL=your_discord_webhook_url_here
-
Save the
.envfile.
-
Navigate to the root directory of the project.
-
Create a new file named
usernames.txtif it doesn't already exist. -
Open the
usernames.txtfile in a text editor. -
Add each GitHub username on a separate line.
user1 user2 user3 -
Save the
usernames.txtfile.
Before running the project, make sure to install dependencies. Run the following command:
npm installTo run the project, execute the following command:
node cron.js