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.

Script that writes the nicklist to a file

Old posts that have not been replied to for several years.
Locked
C
Corwax

Script that writes the nicklist to a file

Post by Corwax »

Hello,

I'm planning to write a TCL-script that works like this:
- Each time someone joins/parts/quits my channel, the bot writes the current nicklist to a file (lets call it nicks.txt)
- The file should always contain all the nicks on the channel at the time
- This file would be used with PHP to display the nicklist on my website
- I want the nicks (sorted alphabeticly) to be written to the file on different lines, like this:

Nick1
Nick2
Nick3
osv...


Could anyone please explain to me how i can write this script, or eventually give me the name of a script that works in the same way?

Thanks!
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

It's pretty easy.. make a bind for joins, parts, quits, kicks, nick changes... whatever else you want to track. In the bind, open your file and write the nick list with the "chanlist" command.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Though, you must remember that, when a part, kick, quit or any other bind that is triggered because of some1 leaving the room, the persons nickname and records will still be in the nicklist.
s
soulja

Post by soulja »

cant he choose to overwrite the file everytime an event where someone enters or leaves the room happens?

this way it will always be updated. i dont know if this is possible but i know i can do it in a mirc script.
Locked