This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Wanted, a script to store and read new arrivals nicks...

Old posts that have not been replied to for several years.
Locked
A
Amarth
Voice
Posts: 5
Joined: Thu Sep 29, 2005 5:03 am

Wanted, a script to store and read new arrivals nicks...

Post by Amarth »

Hi,

I am after a script to store the nicks of new arrivals to a chatroom, so that they can be helped. I have tried to script this myself but it is really not working and I am getting totally confused. I am not sure if this is particularly difficult, so could use the help of someone!

I would like the following abilities:
1. stores the nick and entry time when joins the channel in a to be helped list.
2. the ability of a person with a specific flag to pm the bot and move the nick to a helped list with time helped.
3. with a pm to the bot the list of nicks to be retrieved and messaged to the requesting person, splitting into needing help, and helped categories with times listed next to name.
4. when the person leaves nick is removed from the list

Other things if at all possible
5. if possible nick changes reflected in list
6. the ability to ignore nicks that have particular characters such as {} in their names.
7. the ability to ignore nicks that are all lower case, or at least first letter lower case.

Hopefully someone can help me out there, and I'd really appreciate it.
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Instead of storing the nick into a file (with the join time) you can simply use the [getchanjoin] eggdrop Tcl command to see when the nick joined. Subtracting this time from [unixtime] returns (in seconds) how long the nick has been in the channel.
A
Amarth
Voice
Posts: 5
Joined: Thu Sep 29, 2005 5:03 am

Post by Amarth »

Yes but then we can't see two things, if the person has been helped, and when they were helped.
A
Amarth
Voice
Posts: 5
Joined: Thu Sep 29, 2005 5:03 am

Post by Amarth »

Actually I have been able to get a script working, but still trying to modify it so have listed it on scripting help.

Thanks!
Locked