Twitch/TS3 Subscriber Bridge

Najsr

Moderator
TeamSpeak Developer
Apr 23, 2016
483
249
167
Hello I have created a simple bridge to allow subscribers to get special icon on your TS3 Server.

Script link: https://github.com/Najsr/Twitch-TS3-Subscriber-bridge

Things you will need:
Code:
Your account id (set DEBUG to TRUE in config.php and call the script with $_GET['nick'] parameter. (For example http://localhost?nick=my_super_twitch_channel). Then paste the result into config and set DEBUG to FALSE.

Client ID, Client Secret and Redirect URI; Obtain from https://www.twitch.tv/kraken/oauth2/clients/new

Own teamspeak server with permissions

SQLite3 php module

For stream owners: You need to log in twice to remove no longer subscribed people from TS3 Server

If you have any questions do not hesitate to ask ;)
 
Last edited:

h1web

VIP
Sep 2, 2015
206
134
131
Thank you Nicer <3 I was looking for this like for ages :)

Do you also have a simular Script for Followers? I know there are already some around, but i do like to have the same "style" / "coder" for Subscriber and Follower!

Cheers
 
Last edited:

EscuderoKevin

Well-Known Member
Jul 2, 2015
380
181
130
Hello I have created a simple bridge to allow subscribers to get special icon on your TS3 Server.

Script link: https://github.com/Najsr/Twitch-TS3-Subscriber-bridge

Things you will need:
Code:
Your account id (set DEBUG to TRUE in index.php and call the script with $_GET['nick'] parameter. (For example http://localhost?nick=my_super_twitch_channel). Then paste the result into config and set DEBUG to FALSE.

Client ID, Client Secret and Redirect URI; Obtain from https://www.twitch.tv/kraken/oauth2/clients/new

Own teamspeak server with permissions

SQLite3 php module

For stream owners: You need to log in twice to remove no longer subscribed people from TS3 Server

If you have any questions do not hesitate to ask ;)

Where can I find information about the API? I want to do the same but via WEB.
 

instant_mike

www.Instant-Host.de
Mar 29, 2016
19
2
38
Does the script now auto delete Subscriber if they are not subscriber anymore? Ive asked twitch developer and he told me that its poissible because if the user authorized once his account, you can ask about the user every x minute if he is subscriber anymore
 

Najsr

Moderator
TeamSpeak Developer
Apr 23, 2016
483
249
167
It is not possible because you would need a fresh subscriber list which you can get only by authing again. Or you can add subscriber to a group and every X days/months you would erase but this is even worse than re-authing streamer. Unforunately there is no parameter that would tell you expiration date of client from streamer's side.

About your post: Why would user want to lose his subsriber's icon? Like if I was a subscriber and my subscription expired I'd try to keep it for as long as possible.
 

instant_mike

www.Instant-Host.de
Mar 29, 2016
19
2
38
No u dont need to auth again! You can use your db, save the auth code from the user and use it again and again, i asked a twitch dev, he said: if a user authed once u just need to use hims token and you can do it
 

instant_mike

www.Instant-Host.de
Mar 29, 2016
19
2
38
They not, if i authorized my bot with my twitch account the token does exist over 6 month, i can see it in my twitch account - tokens do not expire, you can safe them in a db and then u just need to ask if the user is subscriber anymore and use hims token
 

Najsr

Moderator
TeamSpeak Developer
Apr 23, 2016
483
249
167
Ok thanks for the info, I'll take a look at it.
 

DaMuTz

New Member
Oct 19, 2017
4
0
16
Hello I have created a simple bridge to allow subscribers to get special icon on your TS3 Server.

Script link: https://github.com/Najsr/Twitch-TS3-Subscriber-bridge

Things you will need:
Code:
Your account id (set DEBUG to TRUE in index.php and call the script with $_GET['nick'] parameter. (For example http://localhost?nick=my_super_twitch_channel). Then paste the result into config and set DEBUG to FALSE.

Client ID, Client Secret and Redirect URI; Obtain from https://www.twitch.tv/kraken/oauth2/clients/new

Own teamspeak server with permissions

SQLite3 php module

For stream owners: You need to log in twice to remove no longer subscribed people from TS3 Server

If you have any questions do not hesitate to ask ;)

Hello Nicer & thanks for this great script.

I am installed a new apache with php and sqlite module but i am not able to get my channel id with your tip's.
Can you me provide the exact steps how to call the script? Sorry i am new in web script's
 

DaMuTz

New Member
Oct 19, 2017
4
0
16
Yes i set the DEBUG to true but in the config.php found no DEBUG in your index.php. How i call the script? via cmd?
Sorry i didnt want to waste your time
 

Najsr

Moderator
TeamSpeak Developer
Apr 23, 2016
483
249
167
Yes i set the DEBUG to true but in the config.php found no DEBUG in your index.php. How i call the script? via cmd?
Sorry i didnt want to waste your time
Oh you are right, it is in the config.php thanks! You need to open it in browser.
 

DaMuTz

New Member
Oct 19, 2017
4
0
16
phperror.png


Sry i try to fix it by myself but i dont know which wrapper i need to enable. But i enable the extension=php_openssl.dll modul and i got the same error...
 
Last edited:

h1web

VIP
Sep 2, 2015
206
134
131
Any chance that this is going to work for "Followers" as well, not just for Subscribers?
 
Top