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

	<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>2002-10-10T04:03:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-10-10T04:03:32-04:00</updated>

		<published>2002-10-10T04:03:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11858#p11858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11858#p11858"/>
		<title type="html"><![CDATA[bots detects itself that it joined a chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11858#p11858"><![CDATA[
<blockquote class="uncited"><div>There is no error message.<br>I just don't get any private message from the bot itself although I make sure to specify my nick as the one to receive the message when the bot joins the channel.<br><br>It's as if the code wasn't entering that IF condition.</div></blockquote>In addition to the comments of stdragon, make sure you enter the putserv line correctly:<br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG z_one :I joined $chan"i.e.putserv "PRIVMSG&lt;space&gt;z_one&lt;space&gt;:I joined $chan"NOT VALID:putserv "PRIVMSG z_one: I joined $chan"(i.e. omitting the second &lt;space&gt; is not valid.)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Thu Oct 10, 2002 4:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-10-10T03:43:53-04:00</updated>

		<published>2002-10-10T03:43:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11857#p11857</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11857#p11857"/>
		<title type="html"><![CDATA[bots detects itself that it joined a chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11857#p11857"><![CDATA[
One of the most important skills you can have as a programmer is to learn how to find errors.<br><br>You find errors by adding debugging information in key places. The most common form of debugging with Eggdrop is using the "putlog" command. What you need to do is add putlog statements to various parts of the code so that you can trace what is happening.<br><br>For instance, add a putlog at the top of the botjoined proc that prints out the $nick that joined. Then add one inside the "if" statement. Eventually you will find out where the error is happening.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Oct 10, 2002 3:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2002-10-10T02:42:06-04:00</updated>

		<published>2002-10-10T02:42:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11856#p11856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11856#p11856"/>
		<title type="html"><![CDATA[bots detects itself that it joined a chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11856#p11856"><![CDATA[
There is no error message.<br>I just don't get any private message from the bot itself although I make sure to specify my nick as the one to receive the message when the bot joins the channel.<br><br>It's as if the code wasn't entering that IF condition.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Thu Oct 10, 2002 2:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-10-09T23:27:36-04:00</updated>

		<published>2002-10-09T23:27:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11853#p11853</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11853#p11853"/>
		<title type="html"><![CDATA[Puthelp coding]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11853#p11853"><![CDATA[
<blockquote class="uncited"><div>puthelp &lt;text&gt; [options]<br>    Description: sends text to the server, like 'putserv', but it uses a<br>      different queue intended for sending messages to channels or people.<br>    Options: -next: push messages to the front of the queue<br>    Returns: nothing<br>    Module: server</div></blockquote>It works on the fashion of <strong class="text-strong">puthelp "PRIVMSG $nick :$what"</strong><br><div class="codebox"><p>Code: </p><pre><code>bind join - * botjoined proc botjoined {nick uhost hand chan} {  global botnick  if {$nick == $botnick} {   puthelp "PRIVMSG $botnick :I joined $chan"  } } </code></pre></div>Hope that Helps<br>------------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Wed Oct 09, 2002 11:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-10-09T12:31:34-04:00</updated>

		<published>2002-10-09T12:31:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11841#p11841</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11841#p11841"/>
		<title type="html"><![CDATA[Re: bots detects itself that it joined a chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11841#p11841"><![CDATA[
<blockquote class="uncited"><div>...[snip]...<br>What wrong with that code ?<br>...[snip]...</div></blockquote>What problem/error do you get?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Wed Oct 09, 2002 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2002-10-09T12:21:22-04:00</updated>

		<published>2002-10-09T12:21:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11840#p11840</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11840#p11840"/>
		<title type="html"><![CDATA[bots detects itself that it joined a chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11840#p11840"><![CDATA[
Here's my code ... I need the bot to know that it is the one who joined a channel. I only want it to react when it is the one that joins ... not any other nick.<br>What wrong with that code ?<br>By the way, <strong class="text-strong">&lt;my_nick_here&gt;</strong> would be my nick on irc of course.<br><div class="codebox"><p>Code: </p><pre><code>bind join - * botjoinedproc botjoined {nick uhost hand chan} {  global botnick    if {$nick == $botnick} {        putserv "PRIVMSG &lt;my_nick_here&gt; : I joined $chan"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Wed Oct 09, 2002 12:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
