mIRC Bot Delay for mIRC

Psuedo Code:
ON TEXT “!commands” IN CHANNEL #matt_thomas DO

CHECK VARIABLE %flood.matt_thomas, IF THERE RETURN <-RETURN - halts a currently executing script and allows the calling routine to continue processing.

set -uTIME %variable VALUE" <-will set a variable that decays over TIME in seconds

msg CHANNEL MESSAGE

Actual script:

ON *:TEXT:!commands:#matt_thomas: {
if (%flood.matt_thomas) { return }
set -u10 %flood.matt_thomas On
msg $chan !uptime; !stream
}

Notes, you can leave the variable as %flood with no channel name after it to have a “global” delay in all channels, or you can do a channel specific variable that will only limit it per channel.

Change 10 to any value. I usually find around 6-8 seconds to work out ok, depending on speed of chat and amount of lines you do, you may want to tweak it.