I am currently trying to have a script that has a flood command to stop a command from being spammed in a large Twitch chat, but also send a message in chat when someone is currently not able to use said command.

My current script (which works perfectly fine):
Quote:
on *:text:!roulette:#omegazeron:{
if ((%floodcommands) || ($($+(%,floodcommands.,$nick),3))) { return }
set -u30 %floodcommands On
set -u30 %floodcommands. $+ $nick On
if ($nick isop #omegazeron) { msg #omegazeron $nick was shot, but it bounced off the mod armor! }
else {
var %rl = $rand(1,3)
if (%rl == 1) msg #omegazeron Roulette clicks...and misses! You survived the roulette!
if (%rl == 2) msg #omegazeron Roulette clicks...and misses! You survived the roulette!
if (%rl == 3) describe #omegazeron raises the gun to the head of $nick ...BANG!
if (%rl == 3) msg #omegazeron /timeout $nick }
}

I would like to know how to make it so during the 30 second downtime, people trying to use the command would get a response such as "You must wait 30 seconds before using this command"