The Super Mario Maker app, warp.world, has the ability to check a user’s subscription status to the current channel, and prioritize their levels in the queue. I can’t afford to subscribe, but I can afford to watch ads and give bits to my favorite streamers, so I suggested to the dev that he might add a feature that takes bits into account when calculating priority.
Is there a way to know how many bits someone has given to a channel? Barring that, is there a way to get which bits badge they have?
There is not an API for querying that information. You can determine which bits badge a user has by checking the badges tag on PRIVMSG when that user sends a message in chat.
The example given in that page is below and you will note the line ‘total_bits_used’ - you could use that to determine total bits provided. Using the badge is only useful for a general approximation, if the user even chooses to show it, and whenever they send a message vs when bits specifically are sent.