Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.32 KB

File metadata and controls

49 lines (32 loc) · 1.32 KB

Geburtstags Bot

A bot that gets the birthday dates from users in a google calendar.

Prerequisites

  • Node.js version 16.0.0 or higher is required. This bot was tested against Node.js version 16.14.0

Setup

Install dependencies:

npm i

Environment Config

Copy 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

Config

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.

Running

After installing dependencies, creating the .env file and updating the src/config.js file, run the bot:

npm start

Development

npm run dev