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?
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.
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.