Twitch Chat logger in Telegram Channel
-
Install docker and docker-compose
-
Clone the repository to your local computer:
$ git clone https://github.com/CitRUSprod/tc2tc
- Open app folder:
$ cd tc2tc
- Build an image of the app:
$ docker-compose build app
- Create a configuration file
Start app:
$ docker-compose up app
Stop app:
$ docker-compose down
$ git clone https://github.com/CitRUSprod/tc2tc
- Open app folder:
$ cd tc2tc
- Build the app:
$ yarn && yarn build
- Create a configuration file
Start app:
$ yarn start
// data/config.json
{
"channelPairs": [
{
"twitch": "TWITCH_CHANNEL_1",
"telegram": "TELEGRAM_CHANNEL_1"
},
{
"twitch": "TWITCH_CHANNEL_2",
"telegram": "TELEGRAM_CHANNEL_2"
},
{
"twitch": "TWITCH_CHANNEL_3",
"telegram": "TELEGRAM_CHANNEL_3"
}
],
"telegramBotTokens": [ // recommended 5-6 bots
"TELEGRAM_BOT_TOKEN_1",
"TELEGRAM_BOT_TOKEN_2",
"TELEGRAM_BOT_TOKEN_3",
"TELEGRAM_BOT_TOKEN_4",
"TELEGRAM_BOT_TOKEN_5"
],
"httpsProxy": "0.0.0.0:8080", // optional
"format": { // optional
"date": "DD.MM.YYYY",
"time": "HH:mm:ss"
}
}