<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/3553" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-01-30T16:54:54-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/3553</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-30T16:54:54-04:00</updated>

		<published>2003-01-30T16:54:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15979#p15979</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15979#p15979"/>
		<title type="html"><![CDATA[search script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15979#p15979"><![CDATA[
every day <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by Guest — Thu Jan 30, 2003 4:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Freeman]]></name></author>
		<updated>2003-01-30T07:37:54-04:00</updated>

		<published>2003-01-30T07:37:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15959#p15959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15959#p15959"/>
		<title type="html"><![CDATA[search script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15959#p15959"><![CDATA[
Ya...It would be nice to have one that will keep a database where you can add/delete via DCC chat the bot. Or would be great if it could pull frum Chan Logs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2616">Freeman</a> — Thu Jan 30, 2003 7:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-01-30T02:29:49-04:00</updated>

		<published>2003-01-30T02:29:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15945#p15945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15945#p15945"/>
		<title type="html"><![CDATA[search script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15945#p15945"><![CDATA[
Wow, wouldn't you prefer that the script caches the text file in memory so it doesn't have to scan through the whole thing for every search? How often does the file change?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Jan 30, 2003 2:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-29T14:15:52-04:00</updated>

		<published>2003-01-29T14:15:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15926#p15926</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15926#p15926"/>
		<title type="html"><![CDATA[search script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15926#p15926"><![CDATA[
Elo all!<br><br>I need a script who will respond to the @find command. if someone'll type "@find blah" on a channel it should search "blah" in a textfile and paste the whole line<br><br>Here is a script like what i need but the maxsearch should be changed, it should ignore the user for 35 seconds when using the trigger and should ONLY reply with 1 match (this one replyes all matches to the user):<br><br>####################################################################################################<br>putlog "TextSearcher v0.2 - 1st Offcial Release by IsP (<a href="mailto:q_lander@hotmail.com">q_lander@hotmail.com</a>)"<br>#<br># This script simply searches a txt file (or text files) for search criteria specified via pub<br># or msg commands. It Lets you search within a text file for key words using case insensitive<br># trigger commands.<br>#<br># Test on eggdrop v1.6.X.....use at own risk <br>#<br># This script was originally made from another script for 1Real by y0manda,<br># rewritten from ground up by <a href="mailto:IsP@Underent.org">IsP@Underent.org</a><br>#<br># TODO: <br># - You tell me?<br>#<br># v0.1 - 1st scripted<br># v0.2 - Fixed the counter to display the correct count!<br># - Minor bug fix with proc $args - opps, was a mistake, honest ;P<br>#<br>####################################################################################################<br><br>#Where are the data files? (Use "{file location1} {file location2} {file location 3} {etc...}")<br>set cd_release "{./text/list1.txt} {./text/list2.txt}"<br><br>#Which channels do I check for the command?<br>set rlschans "#channel1 #channel2 #channel3"<br><br>#Max number of ourputs?<br>set rlsmaxsearch 9<br><br>#What's the public trigger?<br>set cmdsearch "!search"<br><br>#What Users are allowed to use this trigger/command? (Leave blank for anyone)<br>set rlsflag ""<br><br>#Set your inital tag info here<br>set rlsinfo "Brought to you by IsP@Undernet:"<br><br>########## DO NOT EDIT BELOW ##########<br>if {$rlsflag == ""} {set rlsflag "-"}<br>bind pub $rlsflag $cmdsearch rlssearchpub<br>proc rlssearchpub {nick uhost handle chan arg} {<br>global rlschans<br>set valch 0<br>foreach ch [split $rlschans] {if {$chan == $ch} {set valch 1}}<br>if {$valch == 0} {return}<br>rlslocate $nick $uhost $handle "NOTICE" "$arg"<br>}<br><br>bind msg $rlsflag $cmdsearch rlssearchmsg<br>proc rlssearchmsg {nick uhost handle arg} {<br>global rlschans<br>set valch 0<br>foreach ch [split $rlschans] {if {[botonchan $ch]} {if {[onchan $nick $ch]} {set valch 1}}}<br>if {$valch == 0} {return}<br>rlslocate $nick $uhost $handle "PRIVMSG" "$arg"<br>}<br><br>proc rlslocate {nick uhost handle type arg} {<br>global rlsmaxsearch cd_release rlsinfo<br>if {$arg == ""} {puthelp "$type $nick :Syntax: $cmdsearch &lt;search string&gt;" ;return 0}<br>regsub -all -- " " ${arg} "*" rlsarg<br>puthelp "$type $nick : $rlsinfo ...Searching for '$rlsarg'"<br>set totrlsfound 0<br>foreach database $cd_release {<br>set rlsfile [open $database r]<br>while {![eof $rlsfile]} {<br>set rlsline [gets $rlsfile]<br>if {[string match "*$rlsarg*" [string tolower $rlsline]]} {<br>incr totrlsfound 1<br>if {$totrlsfound &lt; $rlsmaxsearch} {<br>puthelp "$type $nick : \002Found:\002 $rlsline"<br>}<br>}<br>}<br>close $rlsfile<br>}<br>if {$totrlsfound &gt; $rlsmaxsearch} {puthelp "$type $nick :There are over $rlsmaxsearch matches. Please be more specific"}<br>puthelp "$type $nick :There was a total of $totrlsfound entries matching your query."<br>}<br><br><br><br>______________<br><br>Thanks in advance!<p>Statistics: Posted by Guest — Wed Jan 29, 2003 2:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
