egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

User database with search and auto remove

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
cuthbertx
Voice


Joined: 27 Feb 2011
Posts: 4

PostPosted: Mon May 02, 2011 12:08 pm    Post subject: User database with search and auto remove Reply with quote

Hey guys,

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:
!userlog <nick>


And then it will store the nick of the person who typed the command, the nick argument and the current time in a database.

Then the user can just type:

Code:
!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:
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)


Any assistance on this or guiding me into the right direction would be much appreciated.
Back to top
View user's profile Send private message
while
Voice


Joined: 11 Jul 2009
Posts: 34
Location: beat mort

PostPosted: Fri Jun 24, 2011 9:34 am    Post subject: Reply with quote

i've seen something like:
!userlist to see all the users
!info <user> and reads the lines for the user from the eggdrop(name).user
ex: !info test
reply: test is an op with host *!*@host added X days ago

maybe a userlist script to tweak a little and it will reply what you are looking for
_________________
Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber