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

	<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>2014-10-25T09:27:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-10-25T09:27:25-04:00</updated>

		<published>2014-10-25T09:27:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103304#p103304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103304#p103304"/>
		<title type="html"><![CDATA[Need a eggdrop-script for parsing lines from IRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103304#p103304"><![CDATA[
<blockquote class="uncited"><div><br>....I need one that will ping the bot and if no response kill the process and restart the bot.</div></blockquote>Ah. Ok.<br>You already have a thread somewhere about this.  I didn't realize you were asking for the same thing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Oct 25, 2014 9:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dutch1918]]></name></author>
		<updated>2014-10-24T18:10:41-04:00</updated>

		<published>2014-10-24T18:10:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103302#p103302</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103302#p103302"/>
		<title type="html"><![CDATA[Need a eggdrop-script for parsing lines from IRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103302#p103302"><![CDATA[
yeah I already know about that one however, that only works to automatically restart the bot if the shell it's on reboots or if the bot process is killed for some other reason. I need one that will ping the bot and if no response kill the process and restart the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12417">dutch1918</a> — Fri Oct 24, 2014 6:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-10-24T12:00:33-04:00</updated>

		<published>2014-10-24T12:00:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103301#p103301</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103301#p103301"/>
		<title type="html"><![CDATA[Need a eggdrop-script for parsing lines from IRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103301#p103301"><![CDATA[
<blockquote class="uncited"><div>...<br>I would be interested in a shell script run by crontab and have it ping the bot say every 5 mins and if no response restart the bot</div></blockquote><br><a href="http://www.egghelp.org/setup.htm#botchk" class="postlink">http://www.egghelp.org/setup.htm#botchk</a><br><br><br>I always just use autobotchk to set it up for me.  Works great.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Let us know how you get along with this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Oct 24, 2014 12:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dutch1918]]></name></author>
		<updated>2014-10-24T11:31:24-04:00</updated>

		<published>2014-10-24T11:31:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103300#p103300</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103300#p103300"/>
		<title type="html"><![CDATA[Need a eggdrop-script for parsing lines from IRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103300#p103300"><![CDATA[
I would be interested in a shell script run by crontab and have it ping the bot say every 5 mins and if no response restart the bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12417">dutch1918</a> — Fri Oct 24, 2014 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-10-24T11:01:28-04:00</updated>

		<published>2014-10-24T11:01:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103298#p103298</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103298#p103298"/>
		<title type="html"><![CDATA[Need a eggdrop-script for parsing lines from IRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103298#p103298"><![CDATA[
<blockquote class="uncited"><div>Thanks for your reply and your ideas. I now went a different way and created a webcrawler with PHP which simulates an IRC-user, joins the channel and listens to a specific user.</div></blockquote>That sounds very interesting.<br><blockquote class="uncited"><div>This works quite well so far and I also could directly establish connection with my MySQL DB.</div></blockquote>Eggdrop bots can work with mysql too, although I have never pursued it myself.<br><blockquote class="uncited"><div>... so I need to wait for the GUI to be back online and then restart my script.<br><br>The maybe 100% solution still would be with the eggdrop.</div></blockquote>Perhaps.<br>With a shell script run by crontab, eggdrop can restart automatically, if found to be not running.<br><br>Let us know how it goes, and if you need anything.<br>Best of luck with it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Oct 24, 2014 11:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomkay1985]]></name></author>
		<updated>2014-10-24T10:48:44-04:00</updated>

		<published>2014-10-24T10:48:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103297#p103297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103297#p103297"/>
		<title type="html"><![CDATA[Need a eggdrop-script for parsing lines from IRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103297#p103297"><![CDATA[
Hi willyw,<br><br>Thanks for your reply and your ideas. I now went a different way and created a webcrawler with PHP which simulates an IRC-user, joins the channel and listens to a specific user.<br><br>This works quite well so far and I also could directly establish connection with my MySQL DB.<br><br>As I am running the script on SSH it actually works like an eggdrop script <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>However, the only problem I currently have is that the webinterface sometimes is not reacting, so I need to wait for the GUI to be back online and then restart my script.<br><br>The maybe 100% solution still would be with the eggdrop.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12452">tomkay1985</a> — Fri Oct 24, 2014 10:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-10-16T21:03:26-04:00</updated>

		<published>2014-10-16T21:03:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103287#p103287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103287#p103287"/>
		<title type="html"><![CDATA[Re: Need a eggdrop-script for parsing lines from IRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103287#p103287"><![CDATA[
<blockquote class="uncited"><div>Since I am not the born programmer, but able to adapt things once I learned them by an example. I am looking for some help in coding a script.<br><br>This script should always react, if a specific person in the channel writes a specific word. </div></blockquote><div class="codebox"><p>Code: </p><pre><code># October 16, 2014# http://forum.egghelp.org/viewtopic.php?t=19807bind pubm - "#eggdrop *testword*" watch_wordproc watch_word {nick uhost handle chan text} {        if {"$nick" eq "some_nick_here"} {                putserv "privmsg $chan :$text"           }}</code></pre></div>Play around with this.  It is just for demonstration.  Perhaps you can<br>glean something from it.<br><br>You need to edit the channel name,  the text to watch for (in this example: *testword*) and the nick to watch for (in this example: some_nick_here )<br><br>It will watch one channel, for posts that contain the text you configure.<br>If a post contains that text, and if it is from the nick you configure, it will then simply repeat the post that contained that text.<br><br>Reference:<br><a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>and  text search it for:<br>bind pubm<br>and read the short description there.<br><br>For general TCL commands, reference:<br><a href="http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm</a><br>You can find the <br>if<br>command there.<br><br>This is a very simple example script.  I hope it strikes you as such.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>The point:  It is worth your time to learn some basic TCL scripting for Eggdrops.<br>This:<br><a href="http://suninet.the-demon.de/" class="postlink">http://suninet.the-demon.de/</a><br>is a nice little course that you might like to do. <br>It really helps to get you off the ground.<br><blockquote class="uncited"><div>Then from the same line of this word, i need to extract some data and then write this information in my database which already exists.<br><br>Is there any script available already which is able to parse bascially like what I need?</div></blockquote>Don't know.  Need more info from you.   The script above will detect posts that you want.  After that, you would have to clarify what "some data" is, and you would have to describe this database if we are to proceed further.<br><br>I hope this helps.<br><br>Do spend some time perusing the links that I've given you.  They really help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Oct 16, 2014 9:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomkay1985]]></name></author>
		<updated>2014-10-13T11:21:41-04:00</updated>

		<published>2014-10-13T11:21:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103275#p103275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103275#p103275"/>
		<title type="html"><![CDATA[Need a eggdrop-script for parsing lines from IRC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103275#p103275"><![CDATA[
Hello, dear community!<br><br>Since I am not the born programmer, but able to adapt things once I learned them by an example. I am looking for some help in coding a script.<br><br>This script should always react, if a specific person in the channel writes a specific word. Then from the same line of this word, i need to extract some data and then write this information in my database which already exists.<br><br>Is there any script available already which is able to parse bascially like what I need?<br><br>Thanks<br>Tom<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12452">tomkay1985</a> — Mon Oct 13, 2014 11:21 am</p><hr />
]]></content>
	</entry>
	</feed>
