mIRC Home    About    Download    Register    News    Help

Print Thread
#110596 08/02/05 06:55 PM
Joined: Feb 2005
Posts: 2
P
p00kie Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: Feb 2005
Posts: 2
I would like to know how to be able to grab what someone is saying in a channeland then output it to a text file in the local directory
and then ftp that text file right after.. And this is all put under an alias. So the logging will be under remotes and the uploading with be under an alias. And also i want the logging to be something like an xdcc catcher so that it does not record everything my iroffer bot says but just the pack listings.

#110597 09/02/05 05:45 AM
Joined: Jan 2005
Posts: 18
H
Pikka bird
Offline
Pikka bird
H
Joined: Jan 2005
Posts: 18
on 1:TEXT:*:#:{
/write $chan $+ log.txt $timestamp $nick $1-
}

The ftp part sorry i can't help there, but the code about should work to log the text.

#110598 09/02/05 08:15 AM
Joined: Feb 2005
Posts: 2
P
p00kie Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: Feb 2005
Posts: 2

Thanks a lot bu do you know how to
1. parse out the colors or any bold fonts
2. delete the file after it's created.

#110599 09/02/05 08:22 AM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Code:
on 1:TEXT:*:#:{
  .write $chan $+ log.txt $timestamp $nick $strip($1-,cb)
  .timer 1 10 remove log.txt
}

this will strip all color and bold, and will remove the file in 10 seconds.

Just in case you want to strip other stuff:
----
Quote:

$strip(text,burcmo)
Returns text with all bold, underline, reverse, and color control codes stripped out.

The burcmo parameter is optional, if used, it strips only the specified types of characters.

----

Last edited by LostServ; 09/02/05 08:25 AM.

Link Copied to Clipboard