Skip to content

RonXTCdaBass/twitch_blackjack_overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

twitch_blackjack_overlay

my interpretation and first try to make a playable blackjack overlay version for twitch (for OBS)

for self-hosting required:

	• Webspace (because to many errors while trying local without a server installed) ,

	• Twitch account for the Bot ,

	• and a streaming app like OBS

It uses TMI.js to connect to Twitch chat. Twitch Auth token needed for the Bot.

use https://twitchapps.com/tmi/ to create the oauth key

After preparation, put your data into the js/twitch.js file

simple with a texteditor of your choice

	 " identity: {
	username: 'YOUR_BOTNAME',
	password: 'YOUR_BOT_OAUTH:TOKEN',
		},
	 "

after this, you can use https://obfuscator.io/ to make your data a lil bit harder to read ... but its still to find, for somebody who knows how!!! so better don´t use your Streamer-Account instead a Bot-Acc.

Now it´s time to upload to your webspace!

you can use the "web" folder only and rename how you like, then

call the overlay with http://YOUR_URL/YOUR_FOLDER/game.html and setting "?channel=YOUR_CHANNEL"

  • like [example.play/jack/game.html?channel=justplay]

Or you upload the complete main-folder structure including the "index.html" for generating the overlay-link.

then put the link as browser-source into your OBS.

!!! the game is still invisible, until someone call the "!jack" command in your channel !!!

Player-commands are: !jack - to show the game | !hit - to draw a card | !stand - to stand with enough cards ^^ | !deal - to manually end the round

+++ only the streamer can use the !deal command for end the game no matter who started the round!

p.s. you can use the shown buttons too, after someone calls the "!jack" ...for testing or just play for yourself ...

DEMO: http://twitch-jack.rf.gd (new server runs with php version of the files)

Demo: https://rebrand.ly/vjcuay8 (actually serverproblems)

far from perfect ...still incomplete ;) but working fine for now ^^

todolist

[ ] answering to the player with name (@user]

[ ] answering the counted points

[✔] now the countdown shown correctly.

About

my first try to make a playable blackjack overlay for twitch (for OBS)

Resources

Stars

Watchers

Forks

Packages

No packages published