- Run
yarnornpm installto install dependencies needed. - Configure the program using
config.json(details below) - Run the program, using
yarn startornpm start
| Config Name | Description |
|---|---|
channelID |
The discord channel ID for syncing the chat to. To get the ID, enable developer mode, right click on the channel name and copy the ID. |
twitch Channels |
The channel names where you want to sync the chat from. |
discordToken |
Discord bot token. You will need to invite the bot to the server and give the right permissions to it: create Web Hooks, manage channels and delete messages. You can create a bot Here. |
twitchUsername |
The username of the account you want to use for the bot. |
twitchPassword |
The Oauth token for the account you want to use for the bot. |
twitchClientID |
The client ID for a twitch app. Create one here. |
maxWebhooks |
The chat is delivered by Web Hooks. Discord rate limits them. If you have a busy chat, you will need to have more Web Hooks. (The discord bot will generate it for you.) |
To run in docker, configure the program using the guide above, then build the container:
docker build --tag twitch-to-discord .
Then run the image:
docker run --name twitch-to-discord -it twitch-to-discord