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

	<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>2004-06-16T08:50:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-06-16T08:50:38-04:00</updated>

		<published>2004-06-16T08:50:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37448#p37448</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37448#p37448"/>
		<title type="html"><![CDATA[Need Looping/Timer Help Please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37448#p37448"><![CDATA[
you forgot to tell us which part of the code you can't get to work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>anyway.. <br>remove the <em class="text-italics">return x</em>, no need for those<br>make sure you add a <strong class="text-strong">http::cleanup $statx</strong> right after the <em class="text-italics">set data</em> line<br>make the matching case-insensitive<br>to tell you how to get the timer right we need to know how you intend to trigger the proc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jun 16, 2004 8:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-06-16T00:37:04-04:00</updated>

		<published>2004-06-16T00:37:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37435#p37435</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37435#p37435"/>
		<title type="html"><![CDATA[Need Looping/Timer Help Please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37435#p37435"><![CDATA[
What i am trying to do is If the site URL has the text , display every x time the site is down, when the page does not have the text , display the site is back to normal and then only check if the site goes to maintainence ( with out displaying ) then if the site goes down , loop again that the site is down until it comes back and so on and so forth...  sorry i am new to TCL as i am sure you can quickly tell<br><br>package require http<br><br><br>#bind pub - !status pub:neo_check<br>#bind time - "15 * * * *" pub:neo_check<br><br>#bind pubm - "*" pub:neo_check<br><br>proc pub:neo_check {nick host handle chan text} {<br>global botnick showtimechans<br><br><br>#set statx [http::geturl <a href="http://www.neopets.com/objects.phtml" class="postlink">http://www.neopets.com/objects.phtml</a>]<br>set statx [http::geturl <a href="http://www.dubloon.com/test.php" class="postlink">http://www.dubloon.com/test.php</a>]<br><br>set data [http::data $statx]<br><br>set var "&lt;font size=5&gt;Neopets is down for maintenance <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">&lt;/font&gt;"<br>set x 0<br>foreach content [split $data \n] {<br>if [string match "*$var*" $content] {set x 1}<br>}<br><br>if {$x == 1} {<br>putserv "NOTICE Xolite : \002 *Neopian Alert: <a href="http://www.Neopets.com" class="postlink">http://www.Neopets.com</a> is Down For Maintenance <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">\002"<br>putlog "Neopets.com Status is Down For Maintenance"<br><br>        } else {<br><br>if {$x == 0} {<br>putserv "NOTICE Xolite :\002 *Attention Neopians: <a href="http://www.Neopets.com/" class="postlink">http://www.Neopets.com/</a> Is Back Up and Running\002 - Have Fun!"<br>putlog "Neopets.com Status is OK"<br>return 0<br><br>}<br>                        }<br><br><br>timer 1 pub:neo_check<br>return 1<br><br>}<p>Statistics: Posted by Guest — Wed Jun 16, 2004 12:37 am</p><hr />
]]></content>
	</entry>
	</feed>
