This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

search btw need a release script

Old posts that have not been replied to for several years.
Locked
m
muetze

search btw need a release script

Post by muetze »

hi, i search a release script with follow commands
!add (textsrting) (date)
!del (textsrting)
!search with max 3 keywords
!rel (textstring) give out the textstring with the date from this


their must be simple save in .txt or other and give out by !search max. 10 lines with the keywords in the same line. The result must come into the query.

example from a text line:

text.line.ex-ample 2004-08-22
ex.ample.for.a.text-line 2004-08-22

i hope everybody can help me and sorry for my bad english thanks.
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

get yourself a copy of the TCL manual and check:
open, puts, gets, close for the file stuff

then take a look at the eggdrop TCL command list and check for:
putserv, bind pub

here's a little code that allways comes handy (thanks to sL iirc)

Code: Select all

set data [split [read [set inf [open $file r]]][close $inf] \n]
Locked