Programming Twitch Bot (JavaScript, Python) - followage?

Au
- in Twitch
2

I would like to code my own Twitch bot, no matter whether JS, Py or another language (preferably Python).
I can do simple things like reacting to commands,
don't know
how to query with a command
how long someone has been watching the stream and / or how long a person has been following my channel.
Can someone offer me a script, video or something else where I can learn or rewrite it?
Of course I would also approve of other commands.

Rh

I just found:

Au

Yes. I've seen that too. Isn't that what I'm looking for.