hey guys ive been digging around for weeks now and cant find/get to work what im looking for (bit of a overwhelmed newbie). i need two things added to this.

first: i need the !command to only trigger after the keywords been typed in the chat xx amount of times.

second: when the channel is idle/no messages after xx amount of time leave channel and or unload the script.

seems simple but i suck so thanx in advance for any help or insight its much appreciated.


Code:
ON *:TEXT:!command:#kaceysparkles: {
  if (%flood.#kaceysparkles) { return }
  set -u20 %flood.#kaceysparkles On
  msg $chan commands message
}



Last edited by kaceysparkles; 11/10/18 07:30 AM.