I've been trying to wrap my head around this or find a script that is close to what I am looking for, and am now seeking assistance. Perhaps someone knows of a script that is close to what I am needing or has one already made.
What I am looking for, is a script where a user can type:
Code: Select all
!userlog <nick>
Then the user can just type:
Code: Select all
!userlog
And it will list all of the nicks stored in the database with their own nick.
The users on the list should expire after 24 hours, hence the timestamp. My guess on having this done is have the code just check what the current time is and calculate the timestamp from the database and remove the user from the log if it's +24.
The !userlog command should list all entries in the database for the user that typed the command.
So example of the output.
Code: Select all
Cuthbertx: !userlog Testuser
BOT: Testuser has been added to your userlog with a timestamp of 5/2/2011 9:00 AM
Cuthbertx: !userlog Testuser2
BOT: Testuser2 has been added to your userlog with a timestamp of 5/2/2011 9:05 AM
Cuthbertx: !userlog
BOT: Here are your user logs: Testuser (5/2/2011 9:00 AM) Testuser2 (5/2/2011 9:05 AM)