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

	<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>2013-11-21T21:59:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sane]]></name></author>
		<updated>2013-11-21T21:59:28-04:00</updated>

		<published>2013-11-21T21:59:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102228#p102228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102228#p102228"/>
		<title type="html"><![CDATA[MegaHAL responding twice after every unexpected shutdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102228#p102228"><![CDATA[
Hi,<br><br>I have an issue with MegaHAL - lets say for e.g. that I'm editing a script but there's something wrong with it, like a missing close brace for example, and when the bot is rehashed or restarted, it dies or won't start, which is normal but that's when the MegaHAL issue occurs. When I fix the script issue whatever it may be and load the bot onto the IRC network, and when I say the bot's nick (just the bot's nick) it responds twice, the first is the general random response it gives based on words/phrases you've used, and the other is 'So tell me something already'. Then I have to load a back-up which doesn't have that issue and just responds with 'So tell me something already' only; and that's the only response it should give when just its nick is said.<br><br>This issue is really frustrating and I'm not sure why it happens or how to prevent it from happening. My eggdrop version is 1.6.19+SSL, and my MegaHAL version is 3.5 by Zev ^Baron^ Toledano. (Linux '.so' version)<br><br>I have heard about this issue before but it was supposed to have been fixed in MegaHAL version 3.5; which is the version that I'm using...<blockquote class="uncited"><div><em class="text-italics"><strong class="text-strong">* Ver 3.5: Jul 2009<br>* - Made .forget detect smaller words<br>* - Fixed bug with newer eggdrops where it was responding twice <span style="color:red">&lt;--</span><br>* - Chat now ignores pub channel commands<br>* - Fixed some buffer overruns<br>* - Removed more compilation warnings</strong></em></div></blockquote>Has anyone else experienced this or have an idea on how to stop it from happening?<br><br>Edit: I did some testing and I found out the following:<br>1) If I say just my bot's nick <em class="text-italics">without</em> the colon in front of its nick, it only responds once with "Sane: So tell me something already."<br><br>2) If I say just my bot's nick <em class="text-italics">with</em> the colon in front of its nick (I.E TAB completed), it responds twice, once with a random sentence and the second time with "Sane: So tell me something already."<br><br>It's like it thinks the colon is you speaking to it, so it responds once with a sentence relating to what you said even though it was just a colon, (there wasn't a space in front of the colon either, just "Botnick:" &lt;without the quotation marks obviously&gt;) and second it also thinks you only just mentioned its nick with nothing else too. It's confused almost.<br><br>---<br><br>Edit2: Further to my testing I decided to test a few other peoples' eggdrop bots and the one's I tested (2 others); both had the same issue, I then decided to check out how 'sp33chy' responded (for those familiar with it) and sure enough it responds how its supposed to. This is how I want my bot to respond:<br><div class="codebox"><p>Code: </p><pre><code>&lt;Sane&gt; I just want to test something&lt;Sane&gt; sp33chy&lt;@sp33chy&gt; Sp33chy got the answer: syndicate in 33.041 seconds. Joints: 1.5 rank: 395th.&lt;Sane&gt; sp33chy:&lt;@sp33chy&gt; Sane: So tell me something already.</code></pre></div>---<br><br>Edit3: I decided to check how my bot responded to just its nick with a comma after it "Botnick," and it responds with a random sentence. I also decided to check how 'sp33chy' responded to "sp33chy," and it responds like:<br><div class="codebox"><p>Code: </p><pre><code>&lt;Sane&gt; sp33chy,&lt;@sp33chy&gt; Sane: So tell me something already.</code></pre></div>That ^, which is also the way I want my bot to respond... Please help me fix this $%!^<br><br>---<br><br>Edit4: It turns out that the 'sp33chy' bot was using a different MegaHAL version by BakerJR. And the way it responds to its nick etc.. is better but it's kind of an inferior version overall. I guess my bot is stuck the way it is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12294">Sane</a> — Thu Nov 21, 2013 9:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
