Bot to monitor the twitch chat

You declared the bot username as “The Big Boss”

Twitch usernames can’t have spaces of capital letters in.
And then need to be a real user.

So sounds like you can’t connect at all?

You also need to generate a user access token to use as a “password” to login to chat with

You tried to generate a client_credentials token but that doesn’t represent a user. And can’t be used to login to Chat with.

See

You also used the search channels endpoint instead of any of the direct data endpoints.

And later in your file used kraken endpoints, kraken is deprecated and you need to migrate to the relevant helix endpoints. You can refer to the one page reference for the needed endpoints

1 Like