Twitch Follower -> TS3 Servergroup (PHP)

h1web

VIP
Joined
Sep 2, 2015
Messages
206
Reaction score
134
Points
131
Hello,

im looking for a way that Twitch Followers (not Subscribers) can assign themself a TS3 Servergroup through a PHP Script.

Anyone has any expierince?
 

MrWolf

Retired Staff
Contributor
Joined
Dec 27, 2016
Messages
475
Reaction score
263
Points
112
Did you think about generating privilage key for every follower and giving it to users through private message in twitch chat?
Create database of keys through nightbot or some other bot, than just pm key with bot to every follower.
 

Supervisor

Administrator
Joined
Apr 27, 2015
Messages
1,863
Reaction score
2,550
Points
335
I think he kinda wants to automate this - but a question. Instead of making a php script for that, why dont you just let the users assign the according servergroup to themself in TeamSpeak?
Same result. You dont even have to allow to remove it again.
 

h1web

VIP
Joined
Sep 2, 2015
Messages
206
Reaction score
134
Points
131
@Supervisor yeah thats what i meant, they should connect "my Twitch App" and then insert their TS3 Identiy ID and should get them Servergroup assigned.
 

Norvik

Retired Staff
Contributor
Joined
Jul 18, 2015
Messages
635
Reaction score
588
Points
157
Simply get the user by his ip and use the addServerGroup function in order to give them a group. I don't know if there is a twitch api that allows to check if somebody is following you but I guess you should find something if you use google.
 

h1web

VIP
Joined
Sep 2, 2015
Messages
206
Reaction score
134
Points
131
Nah there's no way to get userIP from twitch :-(
 

Najsr

Moderator
TeamSpeak Developer
Joined
Apr 23, 2016
Messages
483
Reaction score
249
Points
167
You can do it with OAuth 2 via some kind of web interface. It would generate privilege key with custom info set so you know the name of the follower even when he renames on TS. (Would be problem if user renames on Twitch)
 

h1web

VIP
Joined
Sep 2, 2015
Messages
206
Reaction score
134
Points
131
Yeah, something like that, but too hard for me since i dont have any coding expierince.
 

MrWolf

Retired Staff
Contributor
Joined
Dec 27, 2016
Messages
475
Reaction score
263
Points
112
Yeah, something like that, but too hard for me since i dont have any coding expierince.
If you have any will to learn code its very easy with allot of online tutorials that are provided free.
I have friends that learned it for some time and now they know allot more than just basics.
BTW GL with your code :D
 

XARON

get over here!
Restricted
Joined
Nov 24, 2016
Messages
162
Reaction score
161
Points
118
You can make easy with twitch api.

You can do it with OAuth 2 via some kind of web interface. It would generate privilege key with custom info set so you know the name of the follower even when he renames on TS. (Would be problem if user renames on Twitch)
No need rename, just create one use private token (teamspeak user), and follow twitch api. Easy.

Edit: Script done, if you want test it, contact me.
 
Last edited:

darooncola

Member
Joined
Jun 9, 2016
Messages
1
Reaction score
0
Points
33
You can make easy with twitch api.


No need rename, just create one use private token (teamspeak user), and follow twitch api. Easy.

Edit: Script done, if you want test it, contact me.
That sounds good... I want to test it :)
 
Top