I assume that you already have a part of your script that is capturing all text based on what you've explained. Try something like this when capturing all text from everyone:

IF (!$hget(activeusers, $nick)) MSG $chan Good Morning, $nick $+ .
HADD -mz activeusers $nick 3600

It will sent a message to the channel if the person hasn't said anything in the last hour.