Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello my friend I also want to create a twitch bot but I don't know how also I wanted to know which language was used to create this amazing game. Loved it

Hey, thanks for trying out the game! The game was made in javascript. You can actually start running the game at https://vykri.com/gamedevjs/ and press f12 then click sources to see the source code. The part you're probably interested in is gamedevjs/js/main.js .

A brief overview is that the "Login to Twitch" button leads to https://id.twitch.tv/oauth2/authorize (which includes the clientId and permissions you want. I only need to read chat for this game, but if you're making a bot, you'll also probably want to include sending messages as well). Then, when they get redirected back to my site from logging in, the url parameters include the access_token which can be used to connect to the irc websocket wss://irc-ws.chat.twitch.tv:443 which will call the onmessage function whenever someone sends a message in chat.

Good luck with your twitch bot!

Thanks dude I also used JavaScript for my bot but I used some npm package called TMI.js As it my first JavaScript project I encountered alot of bugs and issues but managed to solve it. If you're interested to see my bot live in action then come to my stream on Monday 2:30 pm IST. https://twitch.tv/buriuddin0