So I want to make my bot says one line of text in response to a user talking in a channel after the user doesn't say anything for at least 30 minutes.
I thought of doing something like, if string match "" (nothing) for a user in the $chan, then wait 1 second, then repeat if string match "" (nothing), wait 1 second, repeat, etc. for 30 minutes, and then after 30 minutes passes, if the code is still running, continue to run the code until the until the user says something, then PRIVMSG $chan with the line I want, and reset the code.
However this seems wildly inefficient, especially if the user changes their nickname or never goes online again, then the code will pretty much run forever.
Also, eggdrop cannot detect joins, parts, or quits on this IRC network for some reason (it works fine on other IRC networks, just not this particular one) so I don't need to put anything in the script that will watch for those. This IRC network cannot server split due to the way the network is modified (not RFC-compliant) so that's not an issue either. Channel kicks are disabled on this network, so also not a problem.