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

	<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>2004-08-04T21:14:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-04T21:14:11-04:00</updated>

		<published>2004-08-04T21:14:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39492#p39492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39492#p39492"/>
		<title type="html"><![CDATA[Problem with list and speed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39492#p39492"><![CDATA[
Well, I don't understand what you are doing, or trying to achieve,  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"> <br>but when the bot says "Push Me" that is already an output.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><br>However if you would like to bot to trigger on that, then you can do a pubm or pub bind, matching indexes or apart of the text with the one you want to trigger also at first checking, if ([isbotnick $nick]).  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br><br>I am not sure what you mean by clicking on the mouse. If you use mIRC and you click on a url, then it surely opens that address/link in your default web browser. On the eggdrop there is nothing like that. No bind on an eggdrop can be triggered if a user clicks on a text by another person, infact the same goes for on mIRC.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Aug 04, 2004 9:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-08-04T08:28:36-04:00</updated>

		<published>2004-08-04T08:28:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39466#p39466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39466#p39466"/>
		<title type="html"><![CDATA[Problem with list and speed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39466#p39466"><![CDATA[
I mean that if i give an output like :<br><br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $nick : Push me"</code></pre></div>Is it possible to make the appearing Push me to trigger a procedure, when someone clicks with the mouse on it like a link?<p>Statistics: Posted by Guest — Wed Aug 04, 2004 8:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-04T08:24:32-04:00</updated>

		<published>2004-08-04T08:24:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39465#p39465</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39465#p39465"/>
		<title type="html"><![CDATA[Problem with list and speed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39465#p39465"><![CDATA[
I think you mean binding.<br>Yes you can. <br><blockquote class="uncited"><div>BIND = Trigger</div></blockquote>See 'bind' types in the tcl-commands.doc included in the eggdrop.*******.tar.gz package /docs/html dir. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Aug 04, 2004 8:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-08-04T08:12:52-04:00</updated>

		<published>2004-08-04T08:12:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39464#p39464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39464#p39464"/>
		<title type="html"><![CDATA[Problem with list and speed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39464#p39464"><![CDATA[
Can i append a trigger to a output i give with the putserv or putquick, so that a user can click on the output and the proc which is bound to the output is startet?<p>Statistics: Posted by Guest — Wed Aug 04, 2004 8:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-04T07:59:30-04:00</updated>

		<published>2004-08-04T07:59:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39463#p39463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39463#p39463"/>
		<title type="html"><![CDATA[Problem with list and speed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39463#p39463"><![CDATA[
For 1:<br>Well, it will list all the files it reads in the dir.<br><br>So if there added the current day, or 1 hr ago, or created 1 min ago it should definately list them as well. (If you doubt, check it... yourself  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> )<br><br>For 2:<br>As for that, you can do a foreach loop and add/append all the files in a list from the dir. Then select the file you want to play, probobaly through pub bind, and lsearch match in that exists or through string match then go ahead and do your stuff.<br><br>About the playing thing I have no idea. I am not good with those OS's.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Aug 04, 2004 7:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-08-04T07:46:49-04:00</updated>

		<published>2004-08-04T07:46:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39462#p39462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39462#p39462"/>
		<title type="html"><![CDATA[Problem with list and speed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39462#p39462"><![CDATA[
Ok i changed my script to putquick so users can run querys simulaniously.<br>Thanks for the help.<br><br>How about the two other issues?<br><br>1. Is it possible to list all files, which have been added the current day<br>2. Is it possible to link these files so that u click on a directory it makes the !mp3list with the path u clicked on if a file is choosen opens the file in the default player (only for unix boxes which have mounted the mp3 dir as on the server). <br><br>Thanks<p>Statistics: Posted by Guest — Wed Aug 04, 2004 7:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-04T07:05:35-04:00</updated>

		<published>2004-08-04T07:05:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39458#p39458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39458#p39458"/>
		<title type="html"><![CDATA[Problem with list and speed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39458#p39458"><![CDATA[
To make it work faster, you can use:<br><div class="codebox"><p>Code: </p><pre><code>putquick "PRIVMSG $nick :Dir in MP3/$text: $d" -next</code></pre></div>This should definately give a faster output.<br>Or to try and bypass all the queues, search for 'putdccraw'<br>on this forum and you will get many results!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><br><br>However, I would suggest putquick be a better solution.<br>If the directory (output) is long/big putdccraw will surely excess<br>flood the bot of the IRC Server.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Aug 04, 2004 7:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-08-04T06:53:40-04:00</updated>

		<published>2004-08-04T06:53:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39457#p39457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39457#p39457"/>
		<title type="html"><![CDATA[Problem with list and speed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39457#p39457"><![CDATA[
Hi there,<br>I just started with TCL and Eggbot a day ago.<br>I want to write a script which lists the contents of a directory.<br><br>The code is :<div class="codebox"><p>Code: </p><pre><code>bind pub - !mp3list mp3:listproc mp3:list {nick user handle chan text} {  if {$chan == "#mp3"} {   foreach d [glob -nocomplain -types d /music/mp3/$text/*] {           putserv "PRIVMSG $nick : Dir in MP3/$text: $d "  }   foreach f [glob -nocomplain -types f /music/mp3/$text/*] {        putserv "PRIVMSG $nick : File in MP3/$text : $f"   }   }}</code></pre></div>It works but i have 2 problems:<br>First its very slow.<br>Second i can only run a query at once.<br><br>How should i change the code to solve these problems.<br><br>Another two questions:<br>1. Is it possible to list all files, which have been added the current day<br>2. Is it possible to link these files so that u click on a directory it makes the !mp3list with the path u clicked on if a file is choosen opens the file in the default player (only for unix boxes which have mounted the mp3 dir as on the server).<br><br>Thanks in advance.<p>Statistics: Posted by Guest — Wed Aug 04, 2004 6:53 am</p><hr />
]]></content>
	</entry>
	</feed>
