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

	<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>2006-04-07T15:15:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[John_Maclain]]></name></author>
		<updated>2006-04-07T15:15:51-04:00</updated>

		<published>2006-04-07T15:15:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61727#p61727</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61727#p61727"/>
		<title type="html"><![CDATA[Help with refreshing a http page with eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61727#p61727"><![CDATA[
not sure if this will help but it's a convo i had in an eggdrop help chan.... didnt really help me much....<br><br><blockquote class="uncited"><div>[20:00] &lt;John_Maclain&gt; i just said above, the script uses two web address, one to swap the status to online, one to set to offline<br>[20:00] &lt;paultwang&gt; ok ..<br>[20:01] &lt;John_Maclain&gt; if i load up these http address in my browser, i get teh script to work<br>[20:01] &lt;paultwang&gt; so you just type the 'online' address in browser and go?<br>[20:01] &lt;John_Maclain&gt; now i need the bot to trigger the online<br>[20:01] &lt;paultwang&gt; yes or no?<br>[20:01] &lt;John_Maclain&gt; yes<br>[20:01] &lt;paultwang&gt; nothing else to type? no forms to submit?<br>[20:01] &lt;John_Maclain&gt; no<br>[20:01] &lt;paultwang&gt; that wasn't too hard..<br>[20:02] &lt;John_Maclain&gt; noep <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><br>[20:02] &lt;paultwang&gt; you don't need the "getting" part, nor string manipulation<br>[20:02] &lt;paultwang&gt; two less things to know<br>[20:02] &lt;John_Maclain&gt; ok<br>[20:02] &lt;paultwang&gt; when bot is connected, transmit:<br>[20:02] &lt;paultwang&gt; GET path/to/file HTTP/1.1<br>[20:03] &lt;paultwang&gt; HOST: domainname<br>[20:03] &lt;paultwang&gt;<br>[20:03] &lt;paultwang&gt; that's all for the requesting<br>[20:04] &lt;John_Maclain&gt; sorry for being a complete n000b, but how do i implement that into eggdrop?<br>[20:05] &lt;paultwang&gt; that's one part<br>[20:05] &lt;John_Maclain&gt; ok<br>[20:05] &lt;paultwang&gt; you need a trigger (bind time)<br>[20:05] &lt;paultwang&gt; you need a triggee (a procedure)<br>[20:05] &lt;John_Maclain&gt; ok<br>[20:06] &lt;paultwang&gt; the procedure needs to open a socket to connect to the web server<br>[20:06] &lt;paultwang&gt; and if done asynchronously, needs another procedure to wait for response<br>[20:07] &lt;John_Maclain&gt; ok... would there be a response?<br>[20:07] &lt;paultwang&gt; if done synchronously, eggdrop will freeze up during the proc call<br>[20:07] &lt;paultwang&gt; when connection attempt is approved, procedure needs to send the stuff i just said<br>[20:07] &lt;paultwang&gt; then drop the connection<br>[20:07] &lt;paultwang&gt; ?<br>[20:07] &lt;paultwang&gt; better not<br>[20:08] &lt;paultwang&gt; it dropped the connection after sending<br>[20:08] &lt;paultwang&gt; any response will be lost in the sea of electrons<br>[20:08] &lt;John_Maclain&gt; lol ok<br>[20:08] &lt;John_Maclain&gt; you say there needs to be a trigger...<br>[20:10] &lt;paultwang&gt; yes<br>[20:11] &lt;John_Maclain&gt; asin everytime i want the script to run, i would have to trigger it?<br>[20:11] &lt;paultwang&gt; no<br>[20:12] &lt;paultwang&gt; a time trigger<br>[20:12] &lt;paultwang&gt; triggers every specified time</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7587">John_Maclain</a> — Fri Apr 07, 2006 3:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[John_Maclain]]></name></author>
		<updated>2006-04-07T14:31:31-04:00</updated>

		<published>2006-04-07T14:31:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61725#p61725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61725#p61725"/>
		<title type="html"><![CDATA[Help with refreshing a http page with eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61725#p61725"><![CDATA[
OK here we go with the explanation.<br><br>A friend has an eggdrop with a stats bot. The stats bot is one of the main toys in our chan.<br><br>I have a website with a status page, on that page is a php script with a variable online / offline status.<br>i have a cron job set up that checks into the script and sets the variable to offline every 29th and 59th minute of every hour.<br><br>What i want the bot to do is check into the script every 31st and 1st minute of the hour to set teh variable back to "online".<br><br>This gives me a fairly accurate online / offline status of the bot.<br><br>I have no knowledge of tcl or eggdrop, but know "basic" bash commands, and i do mean basic ( i can navigate edit and create files) lol.<br><br>Any help / advice MUCH appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7587">John_Maclain</a> — Fri Apr 07, 2006 2:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
