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

	<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-05-26T10:24:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2006-05-26T10:24:08-04:00</updated>

		<published>2006-05-26T10:24:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63427#p63427</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63427#p63427"/>
		<title type="html"><![CDATA[Re: yay!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63427#p63427"><![CDATA[
<blockquote class="uncited"><div>Works perfect, thanks alot <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote>No it doesn't <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> (check the urls <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=2878">user</a> — Fri May 26, 2006 10:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-05-26T10:11:50-04:00</updated>

		<published>2006-05-26T10:11:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63424#p63424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63424#p63424"/>
		<title type="html"><![CDATA[yay!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63424#p63424"><![CDATA[
Works perfect, thanks alot <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6839">NTHosts</a> — Fri May 26, 2006 10:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2006-05-26T10:19:17-04:00</updated>

		<published>2006-05-26T10:06:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63421#p63421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63421#p63421"/>
		<title type="html"><![CDATA[Re: bot to get a read a txt file depending on the day of wee]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63421#p63421"><![CDATA[
<blockquote class="uncited"><div>but what i also need this to do is know what day it is.. so if i just type !schedule it will know that today is Friday and get the correct txt file.<br>How would i do this please <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !mon*1 {schedule monday}bind pub - !tue*1 {schedule tuesday}bind pub - !wed*1 {schedule wednesday}bind pub - !thu*1 {schedule thursday}bind pub - !fri*1 {schedule friday}bind pub - !sat*1 {schedule saturday}bind pub - !sun*1 {schedule sunday}bind pub - !schedule {schedule today}array set day2url {sunday http://lynxfm.com/schedules/bottxt/sun.txtmonday http://lynxfm.com/schedules/bottxt/mon.txttuesday http://lynxfm.com/schedules/bottxt/tue.txtwednesday http://lynxfm.com/schedules/bottxt/wed.txtthursday http://lynxfm.com/schedules/bottxt/thu.txtfriday http://lynxfm.com/schedules/bottxt/fri.txtsaturday http://lynxfm.com/schedules/bottxt/sun.txt}proc schedule {d n u h c a} {if {$d=="today"} {set d [string tolower [clock format [clock sec] -format %A]]}set x [::http::geturl $::day2url($d)]foreach e [split [::http::data $x] \n] {puthelp "privmsg $c :$e"}::http::cleanup $x }</code></pre></div>EDIT: forgot to include "package require http" <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=2878">user</a> — Fri May 26, 2006 10:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NTHosts]]></name></author>
		<updated>2006-05-26T09:48:55-04:00</updated>

		<published>2006-05-26T09:48:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63418#p63418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63418#p63418"/>
		<title type="html"><![CDATA[bot to get a read a txt file depending on the day of week]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63418#p63418"><![CDATA[
ok heres my thing...<br><br>Im currently using this code to get the schedules for my radio station to show in channel...<br><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !mon*1 mondaybind pub - !tue*1 tuesdaybind pub - !wed*1 wednesdaybind pub - !thu*1 thursdaybind pub - !fri*1 fridaybind pub - !sat*1 saturdaybind pub - !sun*1 sundayproc monday {n u h c t} {   set x [::http::geturl http://lynxfm.com/schedules/bottxt/mon.txt]   foreach e [split [::http::data $x] \n] {puthelp "privmsg $c :$e"}   ::http::cleanup $x}proc tuesday {n u h c t} {   set x [::http::geturl http://lynxfm.com/schedules/bottxt/tue.txt]   foreach e [split [::http::data $x] \n] {puthelp "privmsg $c :$e"}   ::http::cleanup $x}proc wednesday {n u h c t} {   set x [::http::geturl http://lynxfm.com/schedules/bottxt/wed.txt]   foreach e [split [::http::data $x] \n] {puthelp "privmsg $c :$e"}   ::http::cleanup $x}proc thursday {n u h c t} {   set x [::http::geturl http://lynxfm.com/schedules/bottxt/thu.txt]   foreach e [split [::http::data $x] \n] {puthelp "privmsg $c :$e"}   ::http::cleanup $x}proc friday {n u h c t} {   set x [::http::geturl http://lynxfm.com/schedules/bottxt/fri.txt]   foreach e [split [::http::data $x] \n] {puthelp "privmsg $c :$e"}   ::http::cleanup $x}proc saturday {n u h c t} {   set x [::http::geturl http://lynxfm.com/schedules/bottxt/sat.txt]   foreach e [split [::http::data $x] \n] {puthelp "privmsg $c :$e"}   ::http::cleanup $x}proc sunday {n u h c t} {   set x [::http::geturl http://lynxfm.com/schedules/bottxt/sun.txt]   foreach e [split [::http::data $x] \n] {puthelp "privmsg $c :$e"}   ::http::cleanup $x}</code></pre></div>but what i also need this to do is know what day it is.. so if i just type !schedule it will know that today is Friday and get the correct txt file.<br>How would i do this please <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=6839">NTHosts</a> — Fri May 26, 2006 9:48 am</p><hr />
]]></content>
	</entry>
	</feed>
