Understanding token auth via python

Sure

No not via discords webhook to my script?

Like this:

You generate an app access token to use Getting OAuth Access Tokens | Twitch Developers

You want to know when lirik goes live
You get lirik’s user ID from get Users Reference | Twitch Developers

You create an eventsub notification handler which is a SSL’ed URL somewhere you control

You subscribe to stream.online using liriks userID EventSub Subscription Types | Twitch Developers - Reference | Twitch Developers

Then twitch calls the eventsub notification handler with a challenge
You echo back the challenge

Then when lirik goes live, twitch will send a payload to your eventsub notification handler
You read that payload and extract the data you need.
Then you make a HTTP Post request to the Discord Webhook URL with the data from the previous step.

So

Streamer Goes Live → Twitch Eventsub webook → Your Script → Discords Webhook → Message appears in a Discord Channel