Pointing you in the right direction inevitably means you still being responsible for researching everything.
More importantly though, you haven't provided nearly enough background about your problem for us to point you in any direction. I don't know what a "twitch currency bot" is, and "idle point gathering" is extremely vague. If you want your bot to give "points" to users for duration of idletime, look into the /timer command and variables or hash tables. That's about all I can give you without knowing more about what you are stuck on.