Thanks that helped understanding. I guess the best way to write it would be to use regex.

What i plan on having the script is for primary reading the output stream of iroffer bots. They are on the exact form

bot : [check this video] [SB]Video_name_01[CRC].avi - /msg bot xdcc send 5
bot : [new] [SB]Video_name_01[h264][CRC].mp4 - /msg bot xdcc send 6
bot : [this one sucks] [MekkaM]Video_name2_05[h264][CRC].mp4 - /msg bot xdcc send 7

Where [SB] and [MekkamM] stand short for usually the encoder of the files. and the [CRC] is the crc of the file like [F0T6A58]

So instead of having to manually do this every time for certain listing I want it to auto match the strings and download (as the files are around 150mb and I and the bots are sitting on 30+mbit connections the transfers goes fast... in matter of seconds)


The plan is to :

Search the line for a certain string like "*/msg & xdcc send &". Then an if statement to see if the line has [SB]_Video_name_01[h264] in it and then do a /msg bot xdcc send 5 .

Problems: The videos come with several episodes. So I had planned to make a global variable for episode count and which is incremented each time it downloads a file (so that it doesn't re download if some other bot posts the same things in other channel).
Meaning i would have a variable Videoname_count which is used to make a string [SB]Video_name_Videoname_count[h264].avi compare it to the actual input and then msg the bot and increment the count.

Phew.. That's whats I basically want it to do...

Last edited by tessa1; 18/01/08 04:51 PM.