Yes, but without knowing the triggers I can't be a lot of help.

The basic code is to keep track of who triggers the bot, set a variable and keep track of it for 5 minutes or so.

A better alternative might be to just stop the bot from trigering more than once every 15 seconds or so. To do this, every time its triggered set a variable to $true and unset it in 15 seconds. As long as the variable is $true, stop the bot from doing anything.