Not sure what you mean here.
You can either
- use eventsub, Twitch will make a HTTP Post request to you when the stream goes live, you then consume the data from Twitch and convert it to a Discord Webhook and forward it on
- use eventsub, and consme it in your bot and send a message to discord (not recommened a bot shouldn’t be directly web accessable)
- use eventsub, and your server forwards the data to your bot to send to discord
- poll the streams API every minute and see if the stream changed from offline to online and the bot can send a message to Discord
Eventsub: EventSub Subscription Types | Twitch Developers
Streams API: Reference | Twitch Developers
Both Eventsub and HelixAPI will require the use of an App Access Token aka Client Credentials: Getting OAuth Access Tokens | Twitch Developers