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