How do I set up a raffle command?

I was hoping I could somehow make a command that will find a random active user in chat that will automatically give them channel points. So far, I have:

!commands add !lottery $(urlfetch$(channel)) has won $(customapi$(1)&end=$(2)) points!

However, this sometimes makes nightbot win but I wanted only active chatters. How do I make it so it gives points?

Hey @Cireshie!

If you want to filter out Nightbot have a look at this: [Custom API] Random Viewer

And there’s no way for Nightbot to give channel points to users, as Twitch doesn’t have an API endpoint for that right now, sorry.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.