-
Notifications
You must be signed in to change notification settings - Fork 0
π Adapter Setup
Aluerie edited this page May 14, 2026
·
2 revisions
- If we switch
ownerparameter or default value - we have to run the bot withforce_subscribe=Trueonce. The conduits stay alive only for 72 hours. So it's almost certain the subscriptions will be dead for the other account when we decide to switch.
-
Decide whether we use local adapter (localhost) or remote (currently "free pleb" option - ngrok); Remote allows other people to authorize the bot permissions, but requires a web app running.
-
Twitch Developer Console at
@Irene_Adler__account -> OAuths Redirect URLs: -
Now:
- local: no actions needed;
- ngrok: Run
ngrok http --url=parrot-thankful-trivially.ngrok-free.app 4343in PC/VPS's terminal. Note that the port should be 4343, as twitchio adapter works on it as well. Ignore ngrok dashboard saying port 80, it's just an example.
-
Simply run the bot, i.e.
uv run src/main.py. Now users should be able to visit a link like this- local: http://localhost:4343/oauth?scopes=channel:bot&force_verify=true
- ngrok: https://parrot-thankful-trivially.ngrok-free.app/oauth?scopes=channel:bot&force_verify=true
to authorize the bot. Note, to get a proper link with ALL proper scopes - launch the bot in
-s(--scopes-only) mode.
Thanks for reading π
These are useful only for myself, but I don't really have any better place to keep them.