<?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/16743" />

	<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>2009-04-23T18:08:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[dj-zath]]></name></author>
		<updated>2009-04-23T18:08:57-04:00</updated>

		<published>2009-04-23T18:08:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88556#p88556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88556#p88556"/>
		<title type="html"><![CDATA[building a search feature... (part way there..)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88556#p88556"><![CDATA[
I found the problem to this error..<br><br>I was calling the proc  "internally" using args...<br><br>in other words, you can't call a "bind" <em class="text-italics">internally</em> (since theres nothing to bind TO!)<br><br>the solution was to duplicate the proc - one with args and one without  (the one without is caled by another proc internally, while the one with args was called by a bind pub)<br><br>I was a silly dork for not catching this one!<br><br>in either case, I abondoned that part of the idea.. but I have more issues.. like how to set a hand argument.. its easy, I'm sure and I'll have it figured out by the time you read this post! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><br><br><br>-DjZ-<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10318">dj-zath</a> — Thu Apr 23, 2009 6:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-04-10T16:48:38-04:00</updated>

		<published>2009-04-10T16:48:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88388#p88388</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88388#p88388"/>
		<title type="html"><![CDATA[building a search feature... (part way there..)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88388#p88388"><![CDATA[
Right now, I'm not sure what you are asking help with..<br>Wasn't it the error of msg bindings not working due to improper argument list?<br><br>"Seeing ahead of playlist" - It's been quite a while since I played around with either icecast or shoutcast, but as I recall, the streaming server only knows what the sender tells it - which is what is currently playing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Apr 10, 2009 4:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dj-zath]]></name></author>
		<updated>2009-04-10T16:37:04-04:00</updated>

		<published>2009-04-10T16:37:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88387#p88387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88387#p88387"/>
		<title type="html"><![CDATA[building a search feature... (part way there..)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88387#p88387"><![CDATA[
hi NML:<br><br>yeah, I knew that much... hehe<br><br>I haven't got the error to go away (yet) for the meantime I just made the search list in a "notice" and then let them ise in-channel.. dirty, yeah.. but, unless, I can see what I'm doing <em class="text-italics">WRONG</em> here...<br><br>I actually got the first part working (to my surprise!) which was the HARDER side of this search thingy... the only thing I need to do is make it "see" the "ahead" playlist and then  check that to make sure that a tune already qued isn't going to play..<br><br>okay I taken the "notice" out since it was not working too well.. back to the  ssearch showing in a PM  though they can't do anything in the PM itself..<br><br>DjZ<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10318">dj-zath</a> — Fri Apr 10, 2009 4:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-04-10T15:51:13-04:00</updated>

		<published>2009-04-10T15:51:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88385#p88385</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88385#p88385"/>
		<title type="html"><![CDATA[building a search feature... (part way there..)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88385#p88385"><![CDATA[
Read a second time, msg bindings don't trigger within a channel, and thus has no channel. Remove the chan argument. text vs arg shouldn't matter (as long as you stay away from "args").<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Apr 10, 2009 3:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dj-zath]]></name></author>
		<updated>2009-04-10T15:18:41-04:00</updated>

		<published>2009-04-10T15:18:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88384#p88384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88384#p88384"/>
		<title type="html"><![CDATA[building a search feature... (part way there..)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88384#p88384"><![CDATA[
sorry, I couldn't quite follow your instructions...<br><br>thanks for the input in any event...<br><br>I changed "arg" to "text" in the proc token list.. about to test it  now.. (booted the code as I'm writing this note)<br><br>and.....<br><br>same error!<br><ul><li>Tcl error [PlyReq]: wrong # args: should be "PlyReq nick uhost hand chan arg"</li></ul><br>I supose I shoud  post the "problem" code... so, here goes...<br><div class="codebox"><p>Code: </p><pre><code>proc    PlyReq {nick uhost hand chan arg} {        global DetHI RacIP RacPort DetAP DetPY MyChan;        if {($arg == "")} {putquick "PRIVMSG $nick :Can't process \"nothing\" - aborting!"; return 0;};        if {([regsub -nocase -all -- {[A-Z]} $arg "" arg] &gt;= "1")} {putquick "PRIVMSG #$MyChan :Enter only numeric song identifiers - aborting!"; return 0;};        if {($DetHI != "onair.gif")||($arg == "")||([catch {exec fetch -q  A -m -T 1 -o - "http://$RacIP:$RacPort/x/playlist.cgi?id=$arg"};])} {        putquick "PRIVMSG $nick : Request query not submitted - Playout System is currently offline.";        return 0;} else {if {($DetAP == "onair.gif")&amp;&amp;($DetPY == "offair.gif")} {catch {exec fetch -q -A -m -T 1 -o /dev/null "http://$RacIP:$RacPort/x/playing.cgi?c=play" &gt;&amp; /dev/null};};        putquick "PRIVMSG $nick :Your request query: \#$arg has been submitted!";        };};</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10318">dj-zath</a> — Fri Apr 10, 2009 3:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2009-04-10T14:08:19-04:00</updated>

		<published>2009-04-10T14:08:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88383#p88383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88383#p88383"/>
		<title type="html"><![CDATA[building a search feature... (part way there..)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88383#p88383"><![CDATA[
if you changed it from bind pub to bind msg, also according to the error you are getting, then you should change it since its your only way to go as stated in tcl-commands.doc <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><blockquote class="uncited"><div>    (1)  MSG<br>         bind msg &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;text&gt;<br><br>         Description: used for /msg commands. The first word of the user's<br>           msg is the command, and everything else becomes the text argument.<br>         Module: server</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Fri Apr 10, 2009 2:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dj-zath]]></name></author>
		<updated>2009-04-10T14:10:17-04:00</updated>

		<published>2009-04-10T13:46:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88382#p88382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88382#p88382"/>
		<title type="html"><![CDATA[building a search feature... (part way there..)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88382#p88382"><![CDATA[
I sorta got this thing to work...<br><br>but I ran into a  snag, <br><br>when I used a "!play" function in a pub bind, all worked properly..<br><br>when I changed it to a "bind msg" it  bawked and dropped an error..<br><br><em class="text-italics">Tcl error [PlyReq]: wrong # args: should be "PlyReq nick uhost hand"</em><br><br><div class="codebox"><p>Code: </p><pre><code>bind msg - !play PlyReq</code></pre></div>simple enough, no?<br><div class="codebox"><p>Code: </p><pre><code>proc  PlyReq {nick uhost hand chan arg} {        global DetHI RacIP RacPort DetAP DetPY MyChan;        putserv "PRIVMSG $nick :$arg submitted."        #### more code here ####}</code></pre></div>My problem is I get flustered- then i get stupid!<br><br>I guess I'll  sleep on this one perhaps and I'll then see the error of my ways!?<br><br>or maybe you can offer a suggestion or 2??<br><br>DjZ<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10318">dj-zath</a> — Fri Apr 10, 2009 1:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dj-zath]]></name></author>
		<updated>2009-04-10T15:34:16-04:00</updated>

		<published>2009-03-25T09:52:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88087#p88087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88087#p88087"/>
		<title type="html"><![CDATA[building a search feature... (part way there..)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88087#p88087"><![CDATA[
I know I'm probably biting off more than I can chew here, but here goes:<br><br>I'm basically trying to extract a line of text after a  bind/call.. the text then is forewarded to an external application where its sorted and  applied to a search..<br><br>for those who have been following my last posts..  I'm now trying to send a string to the RAC..<br><br>I have broken it down to the  raw commands needed by the RAC that it looks for and can "parse" or insert the string in..<br><br><strong class="text-strong">ROUGH</strong> code is as follows: mind you- its nowhere near complete or functioning but is included for the following discussion.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !find SrcPlayproc    SrcPlay {args} {          global RacIP RacPort Src input          set Src [catch {[exec fetch -q -A -m -T 1 -o - "http://$RacIP:$RacPort/x/play.cgi?id=$input]}]}</code></pre></div>$input: an integer from the chat    i.e.  !find 25<br>Src  playlist listing (not needed for this function but another one that goes with this  (I haven't got that far yet!)<br><br>at the time of this posting, I'm sorta "swirled" on how I'm going to do the functions:<br><br>the feature will do 2 things:<br><br>1.. voiced chatters enter "!search <em class="text-italics">line of text</em>" and then will get a private window displaying  the found results.. with numbers assigned to them  (the RAC assigns numbers to the database entries based as an html sytle sheet.. parsing that will be a nightmare all in itself!) then they enter "!play <em class="text-italics">number</em>" to have their tune added to the playlist queue.. (of course I'll have to check the queue to make sure multiple entries are ignored) <br><br>again, this is a VERY rough layout.. open to discussion and  changes!<br><br>-DjZ-<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10318">dj-zath</a> — Wed Mar 25, 2009 9:52 am</p><hr />
]]></content>
	</entry>
	</feed>
