Skip to content

KeyError: 'login' #435

@Hybert404

Description

@Hybert404
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions