giambaJ / jChat

jChat is an overlay that allows you to show your Twitch chat on screen with OBS, XSplit, and any other streaming software that supports browser sources.
https://www.giambaj.it/twitch/jchat/
GNU General Public License v3.0
137 stars 46 forks source link

jchat app self hosting #34

Open Vereor opened 2 years ago

Vereor commented 2 years ago

Is this project supported for self hosting? (only for single channel usage)

I had to dig around the issues to find the credentials.js that isn't part of the git Even setting up with my own creds I am getting an

{"error":"Not Found","status":404,"message":"This API does not exist"} on the https://api.twitch.tv/v5/users?login=channelname&client_id=xxxxxxx

So any tips if supported would be appreciated.

Houdini111 commented 2 years ago

I'm also interested in the answer to this. I'm interested in contributing a feature but the code here doesn't match what's live. I can see that the live version connects to helix instead of v5 (https://api.twitch.tv/helix/users and https://api.twitch.tv/helix/bits/cheermotes).
So, despite creating my own Twitch Dev application to get my own clientID it's impossible to run locally and thus contribute with any measure of confidence.

Kissaki commented 2 years ago

On live the v2 index.html and script.js changed. You can download and update them, or use my fork where I did that (+ fixed generated URL logic for self hosting).

The twitch auth token is only necessary for the channel name to channel ID mapping/translation via twitch api, and to retrieve the bit cheer emotes. So if those are undesired, it can be adjusted and hosted without a need to regularly refresh the auth token.

Kissaki commented 2 years ago

I set up https://kcode.de/projects/jchat/host/ to help you generate the required token for self-hosting, if that is a problem.

Vereor commented 2 years ago

@Kissaki Thanks for that. I can confirm your fork is working great for me

arrowgent commented 2 years ago

yes. you can download the files, setup and change the required helix api and oauth codes then point obs/whatever to the path/to/your/jchat/index.html?options=etc

you can run the entire thing locally for your channel

arrowgent commented 2 years ago

I'm also interested in the answer to this. I'm interested in contributing a feature but the code here doesn't match what's live. I can see that the live version connects to helix instead of v5 (https://api.twitch.tv/helix/users and https://api.twitch.tv/helix/bits/cheermotes). So, despite creating my own Twitch Dev application to get my own clientID it's impossible to run locally and thus contribute with any measure of confidence.

i tried to PR updates and documentation about the new helix api no response, after a month i removed the PR https://github.com/giambaJ/jChat/pull/27

kissaki, did a fork and fixed similar issues... https://github.com/Kissaki/jChat or here https://github.com/KevinKYeh/kChatV2

you are correct, the Live (view browser source code) is not updated here.

arrowgent commented 2 years ago

yes. you can download the files, setup and change the required helix api and oauth codes then point obs/whatever to the path/to/your/jchat/index.html?options=etc

you can run the entire thing locally for your channel

just for convenience of everyone in the future: here is my obs-browser source

file:///home/catbox/.config/obs-studio/jchat/jChat-main/v2/index.html?channel=CHANNELNAME&fade=10&hide_commands=true&size=1

obviously change CHANNELNAME to the channel you want to watch chat

i run obs and games everything on Linux.