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

	<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>2008-05-09T14:11:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-05-09T14:11:39-04:00</updated>

		<published>2008-05-09T14:11:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82845#p82845</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82845#p82845"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82845#p82845"><![CDATA[
Which ofcourse is logical, I had my own watch in my head, so automaticly I added the minutes at the end, but thanks for yet another reply, and this concludes this script, I am very thankfull for all the help I have recieved.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Fri May 09, 2008 2:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2008-05-09T13:40:15-04:00</updated>

		<published>2008-05-09T13:40:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82844#p82844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82844#p82844"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82844#p82844"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind time - "01 00 *" do_on_timebind time - "01 12 *" do_on_time</code></pre></div>as it says in the doc<br><blockquote class="uncited"><div>    (37) TIME (stackable)<br>         bind time &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt;<br><br>         Description: allows you to schedule procedure calls at certain<br>           times. mask matches 5 space separated integers of the form:<br>           "minute hour day month year". minute, hour, day, month have a<br>           zero padding so they are exactly two characters long; year is<br>           four characters. Flags are ignored.<br>         Module: core</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Fri May 09, 2008 1:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-05-09T13:21:33-04:00</updated>

		<published>2008-05-09T13:21:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82841#p82841</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82841#p82841"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82841#p82841"><![CDATA[
Tnaks for all the replys, I think I got a better understanding of how things works now, I just got a tiny favor to ask, if I wanted to add minutes, would I just have to change it like<div class="codebox"><p>Code: </p><pre><code>bind time - "00 00 01*" do_on_timebind time - "00 12 01*" do_on_time</code></pre></div>Reason being that my bot is a bit ahead of time, and then I wanted it to wait till one minute past the hour in the script, as I showed in the code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Fri May 09, 2008 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2008-05-09T11:41:13-04:00</updated>

		<published>2008-05-09T11:41:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82839#p82839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82839#p82839"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82839#p82839"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag announcesetudef str announce.msgbind time - "00 00 *" do_on_timebind time - "00 12 *" do_on_timeproc do_on_time {args} {  foreach ch [channels] {   if {[channel get $ch announce]} {      putserv "PRIVMSG $ch :[channel get $ch announce.msg]"   }  }} </code></pre></div>Usage: <br>.chanset #channel +announce<br>.chanset #channel announce.msg This is the message<br>.chansave<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri May 09, 2008 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2008-05-09T11:34:43-04:00</updated>

		<published>2008-05-09T11:34:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82838#p82838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82838#p82838"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82838#p82838"><![CDATA[
<blockquote class="uncited"><div>Would def need a way to <strong class="text-strong">.backup announce</strong> and <strong class="text-strong">.load announce</strong> so bot crashes and such would not destroy any potential settings. This also is a trivial matter easily added.</div></blockquote>Trivial indeed, they made chansave for just such a thing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri May 09, 2008 11:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-05-09T11:22:54-04:00</updated>

		<published>2008-05-09T11:22:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82836#p82836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82836#p82836"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82836#p82836"><![CDATA[
Maybe time to clear up the mess? :p<br><br>Script by Papillon works as long as you make the change he posted. You enable it on a specific channel using .chanset #thechannel +announce. The message is hardcoded in the proc.<br><br>Speechles has a few nice suggestions, but have yet to post actual code.<br><br>Oh, and Speechles; time bindings would never supply a channel-name, but then again, the source of ch isn't from the proc arguments, but from a foreach-loop on the output of [channels] in this case...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri May 09, 2008 11:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-05-09T10:38:00-04:00</updated>

		<published>2008-05-09T10:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82834#p82834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82834#p82834"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82834#p82834"><![CDATA[
<blockquote class="uncited"><div>Im a bit confused now, so I can actually make a custom output for each channel in the .chanset or am I totally lost here? cause my future plan is to have the bot sit on several channels, but with custom output for each channel.</div></blockquote>This _is_ BurgerKing..Indeed, you can have it your way. Which is exactly how I explained it above. During the .chanset is when you will set +announce and your message.<br><br>The script will use a timer, and that timer will sort thru every channel. If any are found to be +announce the script will grab the extended information and display it during that timered event. The display will be puthelp'd to avoid users from having this occur in so many channels the ircd dismisses their bot from the network for causing excess flood. This would be easy to accomplish and If no one else has ideas, I could have something up after 9-10 hours (I have work in 15 mins for 8 hours so can't delve into scripting yet mind you.. muahaha).. I'm sure as well someone else can script something according to the notes I've given.<blockquote class="uncited"><div>.chanset #mychan +announce Robots are everywhere!!<br>.chanset #yourchan +announce There are no robots!!<br><br>**meanwhile 15 mins later**<br>*a timered event occurs in both channels*<br>&lt;bot:#mychan&gt; Robots are everywhere!!<br>&lt;bot:#yourchan&gt; There are no robots!!</div></blockquote>This is more than likely what you had in mind.<br><br>Would def need a way to <strong class="text-strong">.backup announce</strong> and <strong class="text-strong">.load announce</strong> so bot crashes and such would not destroy any potential settings. This also is a trivial matter easily added.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Fri May 09, 2008 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-05-09T10:31:34-04:00</updated>

		<published>2008-05-09T10:31:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82833#p82833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82833#p82833"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82833#p82833"><![CDATA[
Im a bit confused now, so I can actually make a custom output for each channel in the .chanset or am I totally lost here? cause my future plan is to have the bot sit on several channels, but with custom output for each channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Fri May 09, 2008 10:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-05-09T10:15:34-04:00</updated>

		<published>2008-05-09T10:15:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82832#p82832</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82832#p82832"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82832#p82832"><![CDATA[
<blockquote class="uncited"><div>haha, my bad,.. that can offcourse be removed now and <div class="codebox"><p>Code: </p><pre><code>$::do_on_time_chan</code></pre></div> be replaced by <div class="codebox"><p>Code: </p><pre><code>$ch</code></pre></div></div></blockquote>since when does a time binding pass along channel information?<br>The way to accomplish it would be to use a custom flag with extended information. That way the message you put will be added during the .chanset<br>.<blockquote class="uncited"><div>.chanset #yourchan +announce On channel #youchan we have lots of milk. Bring you kitties ladies. Thx. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Just like I have would be how you would enter your line, understand?<br>In this way, that static line containing channels is hereby irrelevant, and the chanset controls the universe...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br>edit: and actually, now that I really ponder about such a universe controlling announcer... I believe one might already exist in the archive, and rather than reinvent another wheel (the one made here might not be as round), it might be a smoother ride to just use the wheel already in existence... Just a thought<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Fri May 09, 2008 10:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2008-05-09T10:10:21-04:00</updated>

		<published>2008-05-09T10:10:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82831#p82831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82831#p82831"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82831#p82831"><![CDATA[
haha, my bad,.. that can offcourse be removed now and <div class="codebox"><p>Code: </p><pre><code>$::do_on_time_chan</code></pre></div> be replaced by <div class="codebox"><p>Code: </p><pre><code>$ch</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Fri May 09, 2008 10:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-05-09T09:58:08-04:00</updated>

		<published>2008-05-09T09:58:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82830#p82830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82830#p82830"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82830#p82830"><![CDATA[
But I was wondering, now that the userdef has been made, what about the static channel added in the script?<br>Could that part be removed, or should it be made to a different code?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Fri May 09, 2008 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2008-05-09T09:50:10-04:00</updated>

		<published>2008-05-09T09:50:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82829#p82829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82829#p82829"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82829#p82829"><![CDATA[
Why should I laugh? Everyone got to learn it sometime, and one of the best ways to do it is by asking, no shame in that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>True, it's not as easy as that.. you have to check out the <blockquote class="uncited"><div>  channels<br>    Returns: a list of the channels the bot has a channel record for<br>    Module: channels</div></blockquote> and <blockquote class="uncited"><div>  channel get &lt;name&gt; &lt;setting&gt;<br>    Returns: The value of the setting you specify. For flags, a value of 0<br>      means it is disabled (-), and non-zero means enabled (+).<br>    Module: channels</div></blockquote> <br>along with the foreach command.. end-result should look something like this: <div class="codebox"><p>Code: </p><pre><code>setudef flag announce# the chan to announce toset do_on_time_chan "#chan"bind time - "00 00 *" do_on_timebind time - "00 12 *" do_on_timeproc do_on_time {args} {  foreach ch [channels] {if {[channel get $ch announce]} {putserv "PRIVMSG $::do_on_time_chan :stuff has been updated, check it out at site.com"}  }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Fri May 09, 2008 9:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-05-09T09:27:25-04:00</updated>

		<published>2008-05-09T09:27:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82826#p82826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82826#p82826"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82826#p82826"><![CDATA[
Okay, please don't laugh to much now, but would this be somewhat close to my sollution:<br><div class="codebox"><p>Code: </p><pre><code>setudef flag announce# the chan to announce toset do_on_time_chan "#chan"bind time - "00 00 *" do_on_timebind time - "00 12 *" do_on_timeproc do_on_time {args} {   putserv "PRIVMSG $::do_on_time_chan :stuff has been updated, check it out at site.com"}</code></pre></div>I've read up on the udef section, and added setudef flag announce but i'm sure that was too easy, and that I need to do something else, although it did give me an output that that flag was set after I did .chanset #channel +announce<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Fri May 09, 2008 9:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2008-05-09T06:15:11-04:00</updated>

		<published>2008-05-09T06:15:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82819#p82819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82819#p82819"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82819#p82819"><![CDATA[
I would suggest you take a look in the <strong class="text-strong">tcl-command.doc</strong> file yes.. really helpful <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>to get the +announce I would suggest searching for <strong class="text-strong">setudef</strong> in the mentioned file<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Fri May 09, 2008 6:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2008-05-08T18:24:34-04:00</updated>

		<published>2008-05-08T18:24:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82816#p82816</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82816#p82816"/>
		<title type="html"><![CDATA[Announce at specific time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82816#p82816"><![CDATA[
Looks like something I could use, but it looks really simple, maybe I really should read some more in the docs hehe, but thanks, so I can just add this, and it will announce whatever I put in the text?<br><br>*EDIT* would it be possible to make a .chanset #channel +announce kinda thing?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Thu May 08, 2008 6:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
