The basic idea is this that the bot should download a file from the internet.
Then when someone types !search string it searches the file and displays the results matching the string.
Thx in advance
Sorry, I'll try to be more exact.On 2002-01-21 03:03, stdragon wrote:
You didn't include very much information... how do you expect anybody to help you if they don't know what to do?
file.html for exampleFirst of all, what file? You never give it a name or anything, how is the bot supposed to download it?
http, forgot to add that.By "the internet" do you mean http, ftp, email, news, napster, freenet, dcc transfer... or some other protocol?
The file looks like this:What is in the file? Is it an xml document? Is it just one field per line? Is it html that needs to be filtered? In other words, what is the structure of the file? That has to be known before the bot can search through it.
Code: Select all
<tr><td><a href="ftp://some.server.ee:21/incoming/101 va - dj networx vol 9 cd1.mp3">101 va - dj networx vol 9 cd1.mp3</a> </td><td align="right">96,028,800 </td><td> 13:43 </td><td align="right"> 21 </td><td> Jan </td><td> 2002</td></tr>
<tr><td><a href="ftp://some.server.ee:21/incoming/Stronghold-CLASS-Eclipse.r02">Stronghold-CLASS-Eclipse.r02</a> </td><td align="right">15,000,000 </td><td> 13:35 </td><td align="right"> 21 </td><td> Jan </td><td> 2002</td></tr>
Bots runs on Redhat Linux, wget is available.What system does your bot run on? Does it have tools like wget and ncftp, or does it have to all be in Tcl?