I am trying to make a twitch bot that uses a command that only the channel owner can use. How can I identify a unique user. Basically, how can I tell the program to only allow a certain user to use a certain command?
Asked
Active
Viewed 509 times
1
-
https://dev.twitch.tv/docs/authentication/ – john Smith Mar 09 '19 at 20:16
-
thanks but I went for something a little bit more simple. :) – christopherson Mar 09 '19 at 20:41
1 Answers
1
I fixed my issue using the following: ${user['display-name']}
then applied this to a variable and used an if statement.
Like this
var chanName = '${user['display-name']}`;
if (chanName === 'usernameperson`){
stuff;
}

christopherson
- 383
- 3
- 6
- 20