Hey guys!
So I've been working on a custom bot for my Twitch channel for a while. I have a very basic points system and was looking for a way to code a !spin command.

Here's what I'd like this command to do:

Allow members to !spin for a random amount, with a range from -250 to 250, of points. They're not gambling any of their previously earned points. There needs to be a time limit on how often this command can be used. I'd like it to be set at about 10 minutes, so that every 10 minutes, a person can !spin.

Like I stated before, I'm new to coding things from scratch. I can edit and pick apart things relatively well, but this is what I have so far. I'm so lost, I haven't even put much effort in because I have no idea where to start.

Quote:

on *:TEXT:!spin:#: {
var %r = $rand(-250,250)
Msg # $caps($nick) You received %r points!
}


Thank you!