Hello! This is a bot that I have been building for my streams and I pretty much built most of it on stream! If you're interested in what' goes on in the development of the bot, visit my channel at https://www.twitch.tv/donutsinbelly
This bot is also free to use if you want use it for yourself!
npm install
.env
file. See the next section on what goes in it.points.json
file if you don't want my currently set points for gamblingnpm run compile
npm start
TWITCH_CLIENT_ID=<Twitch Client ID, get from https://dev.twitch.tv/>
TWITCH_CLIENT_SECRET=<Twitch Client Secret, get from https://dev.twitch.tv/>
TWITCH_ACCESS_TOKEN=<Follow the steps in the next section to get this.>
TWITCH_REFRESH_TOKEN=<Follow the steps in the next section to get this.>
CHANNELS=<list of channels to listen to, comma-separated without spaces>
DISCORD_SERVER_INVITE=<Discord Server invite, if you have one>
https://id.twitch.tv/oauth2/authorize?client_id=CLIENT_ID
&redirect_uri=REDIRECT_URI
&response_type=code
&scope=chat:read+chat:edit
code
as a query parameter.http://localhost/?code=394a8bc98028f39660e53025de824134fb46313
&scope=viewing_activity_read
&state=c3ab8aa609ea11e793ae92361f002671
code
you got from the previous step.https://id.twitch.tv/oauth2/token?client_id=CLIENT_ID
&client_secret=CLIENT_SECRET
&code=CODE_FROM_LAST_REQUEST
&grant_type=authorization_code
&redirect_uri=REDIRECT_URI
.env
file.{
"access_token": "0123456789abcdefghijABCDEFGHIJ",
"refresh_token": "0123456789abcdefghijABCDEFGHIJ",
"expires_in": 3600,
"scope": ["chat:read", "chat:edit"],
"token_type": "bearer"
}