Problem with bot handling a points system

All great suggestions everyone, I’ve implemented a proper point system now.

However, I have a concern as to my approach of obtaining current viewers.

To get all current viewers, I am making an API call to: “https://api.twitch.tv/helix/users?login=channelid”, and load that into a slice.

This is fine, but once a stream approaches a high viewer count (5,000 or more) the system resources it takes gets pretty heavy. Basically, it takes my bot which runs at 4.0 MB of RAM without the API calls to well over 100 MB after a half hour or so with a very large stream.

Also, each API call can cause a spike in CPU usage.

Obviously this is a lot of data to gather, especially so quickly, so if anyone had a better approach I’d love to know. Thanks.