Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Bot User Authentication Issues

$
0
0

I am trying to work on a simple bot for twitch to read messages, channel point redemptions, bits etc.

I am using the following implementation for the User authentication:

async def run():    # set up twitch api instance and add user authentication with some scopes    twitch = await Twitch(APP_ID, APP_SECRET)    auth = UserAuthenticator(twitch, USER_SCOPE, force_verify=True, url='http://localhost:17563')    token, refresh_token = await auth.authenticate()    await twitch.set_user_authentication(token, USER_SCOPE, refresh_token)

This opens the webpage for authentication. I sign in with my twitch account and grant it the permissions as defined in USER_SCOPE.

However, when I try to create the chat instance withchat = await Chat(twitch)

I run into a ValueErrorpassed twitch instance is missing User Auth.

I don't understant where I am going wrong since I am authenticating myself.

I do understand that I need to authenticate with the account I need the permissions for, so all tests are done on my own channel which I am signing into during the authentication process.

Any help will be greatly appreciated!


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>