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

	<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>2012-05-01T15:27:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Cerberus]]></name></author>
		<updated>2012-05-01T15:27:33-04:00</updated>

		<published>2012-05-01T15:27:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99308#p99308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99308#p99308"/>
		<title type="html"><![CDATA[[SOLVED] Check if a website is down or not using isup.me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99308#p99308"><![CDATA[
with a few edit script worked great.<br><br>removed extra close brace from end of script<br><br>changed useragent to: <br><br>Mozilla/5.0 (X11; U; Linux i686; el-GR; rv:1.8.1) Gecko/2010112223 Firefox/3.6.12<br><br>and removed the -urlencode section.<br><br>i also added this so script can be turned on or off via public command by bot master.<br><div class="codebox"><p>Code: </p><pre><code>bind pub m|m &amp;isup-script WSS-Settingsproc WSS-Settings {nick host hand chan text} {if {![channel get $chan isup] &amp;&amp; $text == "on"} {catch {channel set $chan +isup}putserv "notice $nick :Web Site Statuc Checker: enabled for $chan"putlog "Web Site Statuc Checker: script enabled (by $nick for $chan)"} elseif {[channel get $chan isup] &amp;&amp; $text == "off"} {catch {channel set $chan -isup}putserv "notice $nick :Web Site Statuc Checker: disabled for $chan"putlog "Web Site Statuc Checker: script disabled (by $nick for $chan)"} else {putserv "notice $nick :Web Site Statuc Checker: &amp;isup-script (on|off) enables or disables script for active channel"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10183">Cerberus</a> — Tue May 01, 2012 3:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[teegg]]></name></author>
		<updated>2012-04-19T09:43:28-04:00</updated>

		<published>2012-04-19T09:43:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99216#p99216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99216#p99216"/>
		<title type="html"><![CDATA[[SOLVED] Check if a website is down or not using isup.me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99216#p99216"><![CDATA[
this script was not working for me..so i played around with it a. It turns out the following codes were not pasted correctly into vi. Maybe vi doesnt support these codes?<div class="codebox"><p>Code: </p><pre><code>regsub -all {—} $html {-} htmlregsub -all {(?:\x91|\x92|’|‘|')} $html {'} htmlregsub -all {(?:\x93|\x94|“|”|")} $html {"} html</code></pre></div>But anyhow I commented them out and the script works again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11955">teegg</a> — Thu Apr 19, 2012 9:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Trixar_za]]></name></author>
		<updated>2010-12-22T20:23:17-04:00</updated>

		<published>2010-12-22T20:23:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95450#p95450</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95450#p95450"/>
		<title type="html"><![CDATA[[SOLVED] Check if a website is down or not using isup.me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95450#p95450"><![CDATA[
Eh, then it was down for a bit. All the script does is grab the text from the website each time the command is invoked. So what your seeing isn't cached at all and is the website's response as it happens.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10958">Trixar_za</a> — Wed Dec 22, 2010 8:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ashoq]]></name></author>
		<updated>2010-12-22T14:35:34-04:00</updated>

		<published>2010-12-22T14:35:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95446#p95446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95446#p95446"/>
		<title type="html"><![CDATA[[SOLVED] Check if a website is down or not using isup.me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95446#p95446"><![CDATA[
something wrong <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>i tested a <em class="text-italics">down</em> website on <a href="http://www.isup.me" class="postlink">www.isup.me</a> it said '<strong class="text-strong">down</strong>' on tcl it said '<strong class="text-strong">up</strong>'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11287">Ashoq</a> — Wed Dec 22, 2010 2:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Trixar_za]]></name></author>
		<updated>2010-12-20T07:43:27-04:00</updated>

		<published>2010-12-20T07:43:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95419#p95419</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95419#p95419"/>
		<title type="html"><![CDATA[[SOLVED] Check if a website is down or not using isup.me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95419#p95419"><![CDATA[
<blockquote class="uncited"><div>I see. What happens if I would do !isup [die] for instance? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>[@GameBot] Illegal characters in url path ( [die] ) &lt;--- that happens <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10958">Trixar_za</a> — Mon Dec 20, 2010 7:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2010-12-20T06:15:22-04:00</updated>

		<published>2010-12-20T06:15:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95418#p95418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95418#p95418"/>
		<title type="html"><![CDATA[[SOLVED] Check if a website is down or not using isup.me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95418#p95418"><![CDATA[
I see. What happens if I would do !isup [die] for instance? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Dec 20, 2010 6:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Trixar_za]]></name></author>
		<updated>2010-12-20T04:23:00-04:00</updated>

		<published>2010-12-20T04:23:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95417#p95417</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95417#p95417"/>
		<title type="html"><![CDATA[[SOLVED] Check if a website is down or not using isup.me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95417#p95417"><![CDATA[
I forgot to remove that last $isup(logo) yes and in the strictest sense you don't need that : in privmsg, except on IRCds that STRICTLY adheres to the IRC protocol. So far I've found only one such server and that's with bitlbee, the rest seem to work just as well without it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10958">Trixar_za</a> — Mon Dec 20, 2010 4:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2010-12-20T01:48:56-04:00</updated>

		<published>2010-12-20T01:48:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95416#p95416</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95416#p95416"/>
		<title type="html"><![CDATA[[SOLVED] Check if a website is down or not using isup.me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95416#p95416"><![CDATA[
It's me or you forgot to define $isup(logo)? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Also, shouldn't it be:<div class="codebox"><p>Code: </p><pre><code>putquick "PRIVMSG $chan :$upsite"</code></pre></div>(notice the missing ':' after the $chan variable)?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Dec 20, 2010 1:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sadnem]]></name></author>
		<updated>2010-12-19T18:57:14-04:00</updated>

		<published>2010-12-19T18:57:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95413#p95413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95413#p95413"/>
		<title type="html"><![CDATA[[SOLVED] Check if a website is down or not using isup.me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95413#p95413"><![CDATA[
It´s working as a charm, thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11141">sadnem</a> — Sun Dec 19, 2010 6:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Trixar_za]]></name></author>
		<updated>2010-12-20T04:20:20-04:00</updated>

		<published>2010-12-19T15:59:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95412#p95412</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95412#p95412"/>
		<title type="html"><![CDATA[[SOLVED] Check if a website is down or not using isup.me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95412#p95412"><![CDATA[
Ok, I tested it and it works:<div class="codebox"><p>Code: </p><pre><code># Isup.me Script by Trixar_za# Type in partyline: .chanset #channel +isup to enable it.# Sets the user agentset isup(agent) "Mozilla/4.75 (X11; U; Linux 2.2.17; i586; Nav)"setudef flag isupif {[catch {package require http 2.5} e] != 0} {  set isup(noutf8) 1  package require http}bind pub - !isup proc:isupproc proc:isup {nick uhand handle chan input} {  if {[channel get $chan isup]} {     global isup    if {![llength [split $input]]} {       putquick "PRIVMSG $chan Please supply a website address. Ex: !isup google.com"    } else {         if {[info exists isup(noutf8)]} {          set http [::http::config -useragent $isup(agent)]       } else {          set http [::http::config -useragent $isup(agent) -urlencoding "utf-8"]       }       catch { set http [::http::geturl "http://www.isup.me/$input" -timeout 10000]} error        if {![string match -nocase "::http::*" $error]} {          putquick "PRIVMSG $chan [string totitle [string map {"\n" " | "} $error]] \( $input \)"          return 0       }       if {![string equal -nocase [::http::status $http] "ok"]} {          putquick "PRIVMSG $chan [string totitle [::http::status $http]] \( $input \)"          return 0       }       set html [::http::data $http]       # Clean up :P       regsub -all {\n} $html { } html       regsub -all {\t} $html { } html       regsub -all {&lt;br/&gt;} $html { } html       regsub -all { } $html { } html       regsub -all {    } $html { } html       regsub -all {   } $html { } html       regsub -all {  } $html { } html       regsub -all {&lt;a.+?&gt;} $html {} html       regsub -all {&lt;/a&gt;} $html {} html       regsub -all {&lt;span.+?&gt;} $html {} html       regsub -all {&lt;/span&gt;} $html {} html       regsub -all {—} $html {-} html       regsub -all {&gt;} $html {&gt;} html       regsub -all {&lt;} $html {&lt;} html       regsub -all {&amp;} $html {\&amp;} html       regsub -all {×} $html {*} html       regsub -all {(?:\x91|\x92|’|‘|')} $html {'} html       regsub -all {(?:\x93|\x94|“|”|")} $html {"} html       regsub -all {×} $html {x} html       if {[regexp -- {&lt;div.+?&gt;(.+?)&lt;p&gt;} $html - upsite]} {          set upsite [string trim $upsite]       }       if {[info exists upsite]} {          putquick "PRIVMSG $chan $upsite"       } else {          putquick "PRIVMSG $chan Ironically, I couldn't get anything from isup.me!"       }    }  }}putlog "Isup.me Script by Trixar_za Loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10958">Trixar_za</a> — Sun Dec 19, 2010 3:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sadnem]]></name></author>
		<updated>2010-12-19T18:57:44-04:00</updated>

		<published>2010-12-19T13:30:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95411#p95411</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95411#p95411"/>
		<title type="html"><![CDATA[[SOLVED] Check if a website is down or not using isup.me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95411#p95411"><![CDATA[
Hello, I´m currently searching for a tcl script that will retrieve info from isup.me (aka downforeveryoneorjustme.com )<br> an example output would be like:<div class="codebox"><p>Code: </p><pre><code>!isup google.com&lt;bot&gt; It's just you. http://google.com is up.</code></pre></div><div class="codebox"><p>Code: </p><pre><code>!isup fakewebsite81823.com&lt;bot&gt; It's not just you! http://fakewebsite81823.com looks down from here. </code></pre></div><div class="codebox"><p>Code: </p><pre><code>!isup website&lt;bot&gt; Huh? http://website doesn't look like a site on the interwho. </code></pre></div>To directly access to the site´s output of a website you can directly access <a href="http://isup.me/website" class="postlink">http://isup.me/website</a> to retrieve the desired information.<br><br>It doesn´t seems complicated although I have no tcl skills at all and my curl knowledge it´s pretty poor so I don´t really know where to start, if someone could do this script for me I'd be very grateful.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11141">sadnem</a> — Sun Dec 19, 2010 1:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
