mIRC Home    About    Download    Register    News    Help

Print Thread
#124568 08/07/05 12:46 PM
Joined: Feb 2005
Posts: 74
S
SkyD Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Feb 2005
Posts: 74
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...


[color:red]m[color:blue]IRC[color:green] for EvEr

#124569 08/07/05 12:50 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard