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

	<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>2005-10-15T14:34:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[drfox]]></name></author>
		<updated>2005-10-15T14:34:37-04:00</updated>

		<published>2005-10-15T14:34:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56652#p56652</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56652#p56652"/>
		<title type="html"><![CDATA[can someone help with Simple advertise script please please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56652#p56652"><![CDATA[
ok do you know off another one that spills a random line of text from a text file at a given time span say every 2-5 mins<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6827">drfox</a> — Sat Oct 15, 2005 2:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-10-15T13:55:03-04:00</updated>

		<published>2005-10-15T13:55:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56651#p56651</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56651#p56651"/>
		<title type="html"><![CDATA[can someone help with Simple advertise script please please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56651#p56651"><![CDATA[
contact the author, I have no clue what it is supposed to do, the only thing I could do would be removing it, but that would most likely change the intented behavior of that script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Oct 15, 2005 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[drfox]]></name></author>
		<updated>2005-10-15T09:28:53-04:00</updated>

		<published>2005-10-15T09:28:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56649#p56649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56649#p56649"/>
		<title type="html"><![CDATA[can someone help with Simple advertise script please please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56649#p56649"><![CDATA[
well i didnt write the script im still learning all new to me <br>guess thats why it dont work any ideas on how to make it work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6827">drfox</a> — Sat Oct 15, 2005 9:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-10-15T08:54:14-04:00</updated>

		<published>2005-10-15T08:54:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56647#p56647</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56647#p56647"/>
		<title type="html"><![CDATA[can someone help with Simple advertise script please please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56647#p56647"><![CDATA[
<blockquote class="uncited"><div>!isin "[strftime %A]" [strftime %A]</div></blockquote>whats that supposed to mean? its total nonesense for a boolan expression<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Oct 15, 2005 8:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[drfox]]></name></author>
		<updated>2005-10-15T07:47:03-04:00</updated>

		<published>2005-10-15T07:47:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56645#p56645</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56645#p56645"/>
		<title type="html"><![CDATA[can someone help with Simple advertise script please please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56645#p56645"><![CDATA[
yeah i know im being a pain but you guys are great and im learning alot from this so thanks for that <br><br>anyway the problem is this <br><br>[8:19am]&lt;Fox-Info&gt; [17:24] Tcl error in script for 'timer5':<br>[8:19am]&lt;Fox-Info&gt; [17:24] syntax error in expression ""[strftime %H%M]" &lt;= "[string map {{:} {}} $second]" || "[st...": variable references require preceding $<br><div class="codebox"><p>Code: </p><pre><code>####################################### Simple advertise script v1.0 ### ###       by DeeJay-SpunK        ######   ###### msn: djs@deejay-spunk.dk     ###### irc: #DeeJay         ##########################################                              ###### The script is a advertise    ###### script to msg a random       ###### advertisement from a file    ###### into a channel on certain    ###### times with a delay between   ###### the messages. Can be         ###### configured after your needs  ########################################## If you want the messages only to be shown in a specific timesquare, then put in the times here (20:00 to 21:00 etc, seperate with spaces)set adv_time "0:00 23:00"### Should the bot shut up some days? Write them here (Seperate them with spaces)set adv_days ""### The file where the advertise messages is stored in. (FILE MUST EXISTS IN THAT FOLDER! Remember to give write access/chmod 755set adv_file "/home/doc/eggdrop/scripts/advertise.db"### Channels the advertise message should go toset adv_chans "#foxs-lair"### How long time between the messages (In minutes)set adv_timer "2"#################################################### DONT EDIT BELLOW HERE UNLESS YOU HAVE TO! ####################################################timer $adv_timer adv:doproc adv:do {} {  global adv_chans adv_timer adv_time  foreach channel $adv_chans { putquick "PRIVMSG $channel :[advmsg]"}  timer $adv_timer adv:do}proc advmsg {} {  global adv_file adv_from adv_to  set first "[lindex [split "$adv_time"] 0]"  set second "[lindex [split "$adv_time"] 1]"  if {"[strftime %H%M]" &lt;= "[string map {{:} {}} $second]" || "[strftime %H%M]" &gt;= "[string map {{:} {}} $first]" &amp;&amp; !isin "[strftime %A]" [strftime %A]} {    set f [open $adv_file]    set l [split [read $f] \n]    close $f    set n [rand [llength $l]]    if {[set x [lindex $l $n]]!=""} {return "$x"}  }}putlog "Advertise script by DeeJay loaded succesfully"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6827">drfox</a> — Sat Oct 15, 2005 7:47 am</p><hr />
]]></content>
	</entry>
	</feed>
