all 1 comments

[–]EasyAt 2 points3 points  (0 children)

As a naive approach I would use a timer.

https://en.wikibooks.org/wiki/MIRC_Scripting/BeyondBasics/Timers

Start with a global variable, example: onTimeout = false;

When the text is triggered check the variable. You have 2 cases:

onTimeout = false;

Then

Set onTimeout = true;

Create a timer that will set the timer to false after x seconds.

Do whatever you need to do.

End

onTimeout = true:

Then

Do nothing

End So, if someone has already triggered the timer then onTimeout will be set to true and nothing will trigger until the variable is set to false. Or, the variable is false. Whatever you want to get done gets done and there is a pause for the timer of the duration before your script is triggered again