If you're asking what to do (I think) the best way would be to query the login SQL table
There's a column for last login date
query_sql
then make a bit of code to check the current date
gettimestr
https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt