PythonistaGuild / TwitchIO

An Async Bot/API wrapper for Twitch made in Python.
https://twitchio.dev
MIT License
785 stars 163 forks source link

KeyError: 'login' #435

Closed Hybert404 closed 9 months ago

Hybert404 commented 9 months ago
import twitchio

oauth_token = "1234"

async def event_message(ctx):
    print(f"Received message: {ctx.content}")

if __name__ == "__main__":
    bot = twitchio.Client(token=oauth_token)
    bot.event(event_message)
    bot.run()

I simply tried to read chat messages. I requested oAuth token, put it in the script and it always give me error KeyError: 'login'. I have tried different twitchio versions and requesting new oAuth. Still doesn't work. Any help?