A bot that gets the birthday dates from users in a google calendar.
- Node.js version 16.0.0 or higher is required. This bot was tested against Node.js version 16.14.0
- nvm or nvm-windows can be used to install / manage Node.js versions
Install dependencies:
npm iCopy the .env.sample file into a file named .env and update the variables accordingly.
cp .env.sample .env| Variable | Description |
|---|---|
| GOOGLE_CALENDAR_ID | Google calendar ID. It will look like this: vru0ugbqpqi0hhtrfo6bru5d28@group.calendar.google.com |
| BOT_USERNAME | The twitch username of the bot that will be used to send the messages. |
| TWITCH_OAUTH_TOKEN | Twitch OAuth token for the given BOT_USERNAME - can be obtained here: https://twitchapps.com/tmi/ |
| TWITCH_CLIENT_ID | Twitch Client ID can be generated here: https://dev.twitch.tv/console/apps |
The src/config.js file contains the language string, the command prefix used inside the twitch chat and a list of channels the bot will join.
After installing dependencies, creating the .env file and updating the src/config.js file, run the bot:
npm startnpm run dev