mIRC Home    About    Download    Register    News    Help

Print Thread
#124568 08/07/05 12:46 PM
S
SkyD
SkyD
S
Hey..
.. i have this:
on *:JOIN:#:/traffic_write
...
In /traffic_write i need that when someone join to channel the script write his nick in txt file.. txt files:
12-00.txt = 12:00 o'clock
1-00.txt = 1:00 o'clock
....
....
....
there is the problem.. i need that the bot write his nick in that txt file at that time when he joined..

EXAMPLE:
Kicker join at channel at 12:14 PM
Marta join at channel at 12:59 PM
Viky join at channel at 1:22 PM
..
... the nick Kicker need to write in 12-00.txt file, nick Marta in 12-00.txt file, and nick Viky need to write in 1-00.txt file...

SORRY FOR ENGLISH...

#124569 08/07/05 12:50 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Code:
alias traffic_write {
  write $time(H) $+ -00.txt $1 joined the channel at $time(hh:nn tt)
}


Use: /traffic_write nick

This will write to the filenames using 24-hour format (since you can't have 12-00.txt twice).

Try it out and let me know if it does what you want.


Link Copied to Clipboard