add delay to on text msg - 12/06/21 12:46 AM
I have set up on text msgs but i need a 1-3 second delay before they are sent. How do i add this?
ON *:TEXT:*:*:{ // Check if the variable is set, if not then perform the rest of the code. if ($eval($+(%,Timeout.,$chan,$nick),2) != 1) { // use -u switch to unset the variable after N seconds. set -u3 $+(%,Timeout.,$chan,$nick) 1 // Do whatever is supposed to happen the first time here... } }
on *:TEXT:sample:#channel:{ timer 1 8 msg #channel !play }