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

	<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>2018-04-06T19:50:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Draknon]]></name></author>
		<updated>2018-04-06T19:50:07-04:00</updated>

		<published>2018-04-06T19:50:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106770#p106770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106770#p106770"/>
		<title type="html"><![CDATA[Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106770#p106770"><![CDATA[
well, I got it working, now if I just knew what I did.. but it's going now.. thanks for all your help..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12740">Draknon</a> — Fri Apr 06, 2018 7:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-04-06T18:02:12-04:00</updated>

		<published>2018-04-06T18:02:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106767#p106767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106767#p106767"/>
		<title type="html"><![CDATA[Re: Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106767#p106767"><![CDATA[
I'm short on time at the moment. Sorry.<br><br>Just wanted to make this post quickly:<br><br>Two things:<br>1. )  After editing binds, a simple .rehash is not enough.<br>For now, the simple way to explain it is:   After editing a bind line,  be sure to do:  .restart<br>So,  .restart your bot, and test again. Just to see if that makes a difference.<br><br>2.)  It is probably best for you to to post the whole, complete script, so we can see it.  Be sure it is the exact script that is currently running in your bot.<br><br>If you choose to post it here, be sure to use  <div class="codebox"><p>Code: </p><pre><code> .Else, you can post it here :  http://paste.tclhelp.net/I might be back here in a few hours.  Else it will be tomorrow.   Perhaps someone else will jump in here, especially after you post the complete script.What is your nick and bot's nick, on DalNet?    I'll look for you there, too.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Apr 06, 2018 6:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Draknon]]></name></author>
		<updated>2018-04-06T17:13:53-04:00</updated>

		<published>2018-04-06T17:13:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106766#p106766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106766#p106766"/>
		<title type="html"><![CDATA[Re: Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106766#p106766"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>...<br>doesn't work means nothing happens absolutely nothing</div></blockquote><br>Could be a few things.<br><br>First, check to be sure script is loaded, as expected:<br>In partyline, do:<br>.binds *!menu*<br><br>and what is returned?  .... is the bind loaded, as expected?<br><br>If so - good.  <br>Now notice the HITS  counter.  Note the count.<br>Then go try :  !menu        from the channel.<br>do: .binds *!menu* again, and did the hits counter increment by one?<br>If so - good.  That means that it is triggering, and should be running the corresponding proc.<br>Which is what it looks like it should do.<br><br>The problem now is that there are TWO procs with the same name.<br>I don't know what would happen... but I would expect something to happen.<br><br>Also,  are there any error messages or anything appearing in the partyline, when you trigger it with  !menu  from the channel?</div></blockquote>Wow, completely missed this.. sorry.. gonna try to answer everything in this post...<br><blockquote class="uncited"><div>First, check to be sure script is loaded, as expected:<br>In partyline, do:<br>.binds *!menu*<br><br>and what is returned?  .... is the bind loaded, as expected?</div></blockquote>1: yes it is loaded and the !menu works because of my changes to the script so we are now only working with !lists.<br><blockquote class="uncited"><div>Now notice the HITS  counter.  Note the count.<br>Then go try :  !menu        from the channel.<br>do: .binds *!menu* again, and did the hits counter increment by one?<br>If so - good.  That means that it is triggering, and should be running the corresponding proc.<br>Which is what it looks like it should do.</div></blockquote>the party line response to <br>.bind !lists = pub  -|-      !lists                  0 pub_list<br>.bind !lists = pub  -|-      !lists                  1 pub_list<br><blockquote class="uncited"><div>Also, are there any error messages or anything appearing in the partyline, when you trigger it with !menu from the channel?</div></blockquote>2:No there are no error messages in the partyline.<br><blockquote class="uncited"><div>First, you've changed the script. Whatever you are talking about now, with pizza , wasn't there in your first post. </div></blockquote>3: the pizza line is part of the rest of the script that has worked from the beginning. I added it in this time only to show that it is identical almost to the !lists command that is not working as it should.<br><blockquote class="uncited"><div>What IRC network is your bot on?</div></blockquote>4: the bot is on the bondage international server.. basically the same as Dalnet<br><br>I hope I have answered everything.. <br><br>now to reiterate .. with the changes I have gotten the !menu to work.. not an issue any more.<br><br>the !lists does not work yet the one that is !pizza is exact same setup and it does work. there in lies my confusion, they are just about identical and yet 1 works and 1 does not.<br><br>as you can see in another post I did make some changes to the script based on your statement about 2 procs with the same name. ... now just the !lists does not work...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12740">Draknon</a> — Fri Apr 06, 2018 5:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-04-06T13:55:25-04:00</updated>

		<published>2018-04-06T13:55:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106765#p106765</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106765#p106765"/>
		<title type="html"><![CDATA[Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106765#p106765"><![CDATA[
Now you are spinning off into space or something.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>First, you've changed the script.  Whatever you are talking about now, with pizza ,  wasn't there in your first post.<br><br>Next, you have completely ignored some questions that I asked you.  Yet you've asked me more questions.<br><br>I'm not even going to try to respond to them.  That's setting up a cycle that is a waste of time.  <br>Things go in order.  We can't proceed until you respond to all questions asked of you.<br><br>If you care to focus and be methodical, then perhaps  we can find your problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Apr 06, 2018 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Draknon]]></name></author>
		<updated>2018-04-06T14:27:03-04:00</updated>

		<published>2018-04-06T13:43:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106764#p106764</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106764#p106764"/>
		<title type="html"><![CDATA[Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106764#p106764"><![CDATA[
ok, let me try it this way... here is the issue.. the !menus or !lists does nothing ( Does not work ) the !pizza does exactly as it is supposed to.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !menus pub_menuproc pub_menu {nick uhost hand channel rest} {  global botnick    putquick "NOTICE $nick :Loading menu"    putquick "NOTICE $nick :Menu this set up by Draknon"    putquick "NOTICE $nick :Enjoy your order"    putquick "NOTICE $nick :---------M--------E-------N----------U----------"    putquick "NOTICE $nick :!pizza"    putquick "NOTICE $nick :!!redbull"    putquick "NOTICE $nick :!candyfloss"    putquick "NOTICE $nick :!cherrycoke"    putquick "NOTICE $nick :!pepsi"    putquick "NOTICE $nick :!burger"    putquick "NOTICE $nick :!softserve"    putquick "NOTICE $nick :!chocolate"    putquick "NOTICE $nick :!kebab"    putquick "NOTICE $nick :!bite"    return 0}bind pub - !lists pub_listproc pub_list {nick uhost hand channel arg} {  global botnick    putserv "PRIVMSG $channel :4Menu on List 01: 10,01!pizza, 4!redbull, 7!candyfloss, 9!cherrycoke, 2!pepsi, 13!burger, 6!softserve, 5!chocolate, 11!kebab 13!bite 4Note: 4Use "2!" 4for this command 9example 7!kebab 9&lt; 13end of list 9&gt;"    return 0}bind pub - !pizza pub_pizzaproc pub_pizza {nick uhost hand channel arg} {  global botnick    putserv "PRIVMSG $channel :10Gives 4$nick 10a 4hot 10slice of cheese pizza, compliments of Ferrari^_^"    return 0}</code></pre></div>as you can see, the !pizza is the same as the !lists so why does the !lists not work?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12740">Draknon</a> — Fri Apr 06, 2018 1:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-04-06T13:21:24-04:00</updated>

		<published>2018-04-06T13:21:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106763#p106763</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106763#p106763"/>
		<title type="html"><![CDATA[Re: Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106763#p106763"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div><blockquote class="uncited"><div>can someone tell me why the !menu part doesn't work.. <br>...</div></blockquote>"doesn't work"  does not tell us what happens.<br><br>What does happen?</div></blockquote>doesn't work means nothing happens absolutely nothing</div></blockquote>What IRC network is your bot on?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Apr 06, 2018 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-04-06T13:20:08-04:00</updated>

		<published>2018-04-06T13:20:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106762#p106762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106762#p106762"/>
		<title type="html"><![CDATA[Re: Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106762#p106762"><![CDATA[
<blockquote class="uncited"><div>...<br>doesn't work means nothing happens absolutely nothing</div></blockquote><br>Could be a few things.<br><br>First, check to be sure script is loaded, as expected:<br>In partyline, do:<br>.binds *!menu*<br><br>and what is returned?  .... is the bind loaded, as expected?<br><br>If so - good.  <br>Now notice the HITS  counter.  Note the count.<br>Then go try :  !menu        from the channel.<br>do: .binds *!menu* again, and did the hits counter increment by one?<br>If so - good.  That means that it is triggering, and should be running the corresponding proc.<br>Which is what it looks like it should do.<br><br>The problem now is that there are TWO procs with the same name.<br>I don't know what would happen... but I would expect something to happen.<br><br>Also,  are there any error messages or anything appearing in the partyline, when you trigger it with  !menu  from the channel?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Apr 06, 2018 1:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Draknon]]></name></author>
		<updated>2018-04-06T13:00:29-04:00</updated>

		<published>2018-04-06T13:00:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106761#p106761</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106761#p106761"/>
		<title type="html"><![CDATA[Re: Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106761#p106761"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>can someone tell me why the !menu part doesn't work.. <br>...</div></blockquote>"doesn't work"  does not tell us what happens.<br><br>What does happen?</div></blockquote>doesn't work means nothing happens absolutely nothing<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12740">Draknon</a> — Fri Apr 06, 2018 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-04-06T10:12:10-04:00</updated>

		<published>2018-04-06T10:12:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106759#p106759</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106759#p106759"/>
		<title type="html"><![CDATA[Re: Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106759#p106759"><![CDATA[
Tips for you:<br><br>While you can use   "arg"   as a variable name where you have used it above,  I never do.<br>To the human eye, it is too close to "args"  which is special.  No need to try to learn how to use args here and now... just know that it is special, and don't use "args" there unless you mean to.<br><br>I'd get in the habit of something more like this:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - "!somecommand" fooproc foo {nick uhost handle chan text} {               ## commands                ## go               ## here}</code></pre></div>since "text" truly is what is passed right there.   <br>Again, you CAN use arg ...  (just don't use args)  ... but I just don't.<br><br><br>Next tip:<br>Here on the forum,  use the   [ code ] [ /code ]     option, when you are posting actual code.   It makes it easier for us to read.    <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=10420">willyw</a> — Fri Apr 06, 2018 10:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-04-06T10:04:53-04:00</updated>

		<published>2018-04-06T10:04:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106758#p106758</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106758#p106758"/>
		<title type="html"><![CDATA[Re: Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106758#p106758"><![CDATA[
<blockquote class="uncited"><div>...<blockquote class="uncited"><div>proc pub_menu {nick uhost hand channel rest} {<br>  global botnick<br>    putquick "NOTICE $nick :Loading menu"<br>    putquick "NOTICE $nick :Menu this create by Novita &amp; Indra Pratama"<br>    putquick "NOTICE $nick :Enjoy your chatting"<br>    putquick "NOTICE $nick :---------M--------E-------N----------U----------"<br>    putquick "NOTICE $nick :!pizza"<br>    putquick "NOTICE $nick :!!redbull"<br>    putquick "NOTICE $nick :!candyfloss"<br>    putquick "NOTICE $nick :!cherrycoke"<br>    putquick "NOTICE $nick :!pepsi"<br>    putquick "NOTICE $nick :!burger"<br>    putquick "NOTICE $nick :!softserve"<br>    putquick "NOTICE $nick :!chocolate"<br>    putquick "NOTICE $nick :!kebab"<br>    putquick "NOTICE $nick :!bite"<br>    return 0<br>}<br><br>bind pub - !menu pub_menu<br>bind pub - !list pub_menu<br><br>proc pub_menu {nick uhost hand channel arg} {<br>  global botnick<br>    putserv "PRIVMSG $channel :4Menu on List 01: 10,01!pizza, 4!redbull, 7!candyfloss, 9!cherrycoke, 2!pepsi, 13!burger, 6!softserve, 5!chocolate, 11!kebab 13!bite 4Note: 4Use "2!" 4for this command 9example 7!kebab 9&lt; 13end of list created By Indra^Pratama &amp; novita 9&gt;"<br>    return 0<br>}</div></blockquote></div></blockquote>You have two pub binds that create two different public commands that users can type, that call the same proc.<br>That's fine.  No problem there.  If that is what you really wanted.<br><br>But, you have two procs with the same name -  pub_menu   .<br>That's not ok.<br><br>I suspect that you want one command to point to one proc, and the other command to point to a different proc.   <br>So,  just change the name of one of the procs, both in the bind line and the proc line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Apr 06, 2018 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-04-06T10:01:19-04:00</updated>

		<published>2018-04-06T10:01:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106757#p106757</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106757#p106757"/>
		<title type="html"><![CDATA[Re: Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106757#p106757"><![CDATA[
<blockquote class="uncited"><div>can someone tell me why the !menu part doesn't work.. <br>...</div></blockquote>"doesn't work"  does not tell us what happens.<br><br>What does happen?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Apr 06, 2018 10:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Draknon]]></name></author>
		<updated>2018-04-06T04:08:08-04:00</updated>

		<published>2018-04-06T04:08:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106752#p106752</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106752#p106752"/>
		<title type="html"><![CDATA[Script doesn't work... why?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106752#p106752"><![CDATA[
can someone tell me why the !menu part doesn't work.. the rest of the script works just fine.<br><blockquote class="uncited"><div>proc pub_menu {nick uhost hand channel rest} {<br>  global botnick<br>    putquick "NOTICE $nick :Loading menu"<br>    putquick "NOTICE $nick :Menu this create by Novita &amp; Indra Pratama"<br>    putquick "NOTICE $nick :Enjoy your chatting"<br>    putquick "NOTICE $nick :---------M--------E-------N----------U----------"<br>    putquick "NOTICE $nick :!pizza"<br>    putquick "NOTICE $nick :!!redbull"<br>    putquick "NOTICE $nick :!candyfloss"<br>    putquick "NOTICE $nick :!cherrycoke"<br>    putquick "NOTICE $nick :!pepsi"<br>    putquick "NOTICE $nick :!burger"<br>    putquick "NOTICE $nick :!softserve"<br>    putquick "NOTICE $nick :!chocolate"<br>    putquick "NOTICE $nick :!kebab"<br>    putquick "NOTICE $nick :!bite"<br>    return 0<br>}<br><br>bind pub - !menu pub_menu<br>bind pub - !list pub_menu<br><br>proc pub_menu {nick uhost hand channel arg} {<br>  global botnick<br>    putserv "PRIVMSG $channel :4Menu on List 01: 10,01!pizza, 4!redbull, 7!candyfloss, 9!cherrycoke, 2!pepsi, 13!burger, 6!softserve, 5!chocolate, 11!kebab 13!bite 4Note: 4Use "2!" 4for this command 9example 7!kebab 9&lt; 13end of list created By Indra^Pratama &amp; novita 9&gt;"<br>    return 0<br>}</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12740">Draknon</a> — Fri Apr 06, 2018 4:08 am</p><hr />
]]></content>
	</entry>
	</feed>
