Bot created for crossplatform messaging between Twitch and Discord
You need change settings inside .env file to what you need. Example
of this file (.env.example) you can find in same folder as project.
And if settings is correct you will see messages in chats after server started.
| Environment | Default value |
|---|---|
| DISCORD_TOKEN | xxxx |
| DISCORD_CHANNEL_ID | 1234 |
| DISCORD_USER_ID | 123456 |
| DISCORD_HOOK_URL | hook_url |
| TWITCH_USERNAME | MyBot |
| TWITCH_CHANNEL | #mychannel |
| TWITCH_TOKEN | oauth:xxxxxxx |
How to obtain tokens, IDs, etc
You need generate OAuth token for your Twitch account.
Please create separated twitch account for bot if you do not wanna lose your primary account.
This is the part of your channel's URL, for example in https://www.twitch.tv/evilfreelancer
path evilfreelancer is channel name.
Name of your Bot user, should be the same as you used for authorization on Twitch.
You need login to Discord Developers portal and create new application.
After you done need login the application to your Discord server.
From Bots page of Discord Developers portal you can find the token.
https://discordapp.com/developers/applications/{application_id}/bots
Then you need enable debug mode of your Discord client, for this go to your "User Settings", then to "Appearance" and on this page in "Advanced" block will be a "Developer Mode", you need switch this to ON.
Then close the settings page and click MRB on any text chat room what you want, then select "Copy ID" from list and ID and `DISCORD_CHANNEL_ID`` will saved to your clipboard.
URL of Discord webhook, can be found on Webhooks tab of Discord server settings.
npm install
npm run server
docker pull evilfreelancer/socket-yrslf
docker run -e DISCORD_TOKEN=xxxx -e DISCORD_CHANNEL_ID=.... ..cuted.. -d evilfreelancer/socket-yrslf
cp docker-compose.yml.dist docker-compose.yml
docker-compose up -d
- Discord - Here you can talk with author of this project directly
- GitHub Issues - Got issues? Please to me!