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

	<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>2023-05-07T09:03:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2023-05-07T09:03:41-04:00</updated>

		<published>2023-05-07T09:03:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111922#p111922</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111922#p111922"/>
		<title type="html"><![CDATA[Change irc topic based on website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111922#p111922"><![CDATA[
I have this from way back but there is a <div class="codebox"><p>Code: </p><pre><code>set url</code></pre></div> and I have no idea whats hidden in bot.php<br><div class="codebox"><p>Code: </p><pre><code>proc obstats.online {min hour day month year} {global obtempcheck## Open socketset url "/URL/bot.php"set nick nickname   if {[catch {set obsock [socket -async &lt;IP ADDRESS&gt; 80]} sockerr]} {      puthelp "NOTICE $nick :$sockerr"      puthelp "NOTICE $nick :Try again later, look out the window till then!"      close $obsock      return 0   }   puts $obsock "GET $url"   flush $obsock   set i 0   set j 1      set obout [gets $obsock]    putlog "OB: checking if Site is online $url"    if { $obtempcheck != $obout } {  if { $obout == 000 } { putserv "TOPIC #chan : ..::: 07Velkommen til #chan &lt;&gt; Site - 04OFF &lt;&gt; 07#chan  - 04OFF ::.." }  if { $obout == 001 } { putserv "TOPIC #chan : ..::: 07Velkommen til #chan &lt;&gt; Site - 04OFF &lt;&gt; 07#chan  - 04OFF ::.." }  if { $obout == 010 } { putserv "TOPIC #chan : ..::: 07Velkommen til #chan &lt;&gt; Site - 04OFF &lt;&gt; 07#chan  - 04OFF ::.." }  if { $obout == 011 } { putserv "TOPIC #chan : ..::: 07Velkommen til #chan &lt;&gt; Site - 04OFF &lt;&gt; 07#chan  - 04OFF ::.." }  if { $obout == 100 } { putserv "TOPIC #chan : ..::: 07Velkommen til #chan &lt;&gt; Site - 09ON &lt;&gt; 07#chan  - 09ON ::.." }  if { $obout == 101 } { putserv "TOPIC #chan : ..::: 07Velkommen til #chan &lt;&gt; Site - 09ON &lt;&gt; 07#chan  - 09ON ::.." }  if { $obout == 110 } { putserv "TOPIC #chan : ..::: 07Velkommen til #chan &lt;&gt; Site - 09ON &lt;&gt; 07#chan  - 09ON ::.." }      set obtempcheck $obout      }}      putlog "topic test"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sun May 07, 2023 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2023-05-06T10:25:03-04:00</updated>

		<published>2023-05-06T10:25:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111906#p111906</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111906#p111906"/>
		<title type="html"><![CDATA[Change irc topic based on website]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111906#p111906"><![CDATA[
Hi,<br><br>Would it be possible to make a script that change topics on irc based on website is up or down. And when the website is up again it should switch the topic back on to working again?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sat May 06, 2023 10:25 am</p><hr />
]]></content>
	</entry>
	</feed>
