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

	<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>2021-05-28T05:53:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-05-28T05:53:48-04:00</updated>

		<published>2021-05-28T05:53:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109934#p109934</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109934#p109934"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109934#p109934"><![CDATA[
<blockquote class="uncited"><div>tcllib also has  &gt;&gt; <a href="https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tcllib/files/modules/cron/cron.md" class="postlink">https://core.tcl-lang.org/tcllib/doc/tr ... on/cron.md</a><br><br><br>if .tcl commands enabled @ partyline . <div class="codebox"><p>Code: </p><pre><code>.tcl package require cron; cron::every Msg2User [expr {60*80}] {putserv "privmsg Nickname :Hey!"}</code></pre></div></div></blockquote>A friend of mine remembers me that the (u)timer can have a <strong class="text-strong">count</strong> parameter (<a href="https://github.com/eggheads/eggdrop/blob/develop/doc/sphinx_source/mainDocs/tcl-commands.rst#timer-minutes-tcl-command-count" class="postlink">https://github.com/eggheads/eggdrop/blo ... mand-count</a>)<br>if count equals 0, it will never end<div class="codebox"><p>Code: </p><pre><code>.tcl timer 80 {putserv "PRIVMSG nick :hey!"} 0</code></pre></div>Btw, I think I prefer using the cron package which allows to name the process and adds more flexibility.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri May 28, 2021 5:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2021-05-09T03:34:54-04:00</updated>

		<published>2021-05-09T03:34:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109880#p109880</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109880#p109880"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109880#p109880"><![CDATA[
That's because it doesn't come from eggdrop's commands, but from tcllib, meaning it doesn't have an implementation to see them.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun May 09, 2021 3:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-05-08T19:56:33-04:00</updated>

		<published>2021-05-08T19:56:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109879#p109879</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109879#p109879"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109879#p109879"><![CDATA[
i tried that as well willyw but the method heartbroken is using doesnt show in the list on PL when using: .tcl binds cron<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat May 08, 2021 7:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2021-05-08T19:49:17-04:00</updated>

		<published>2021-05-08T19:49:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109878#p109878</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109878#p109878"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109878#p109878"><![CDATA[
<blockquote class="uncited"><div>...<br>also anyway to display all running crons ? <br>...</div></blockquote>From within the partyline, this is what I do:<br><br>.tcl binds cron<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat May 08, 2021 7:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-05-08T15:50:15-04:00</updated>

		<published>2021-05-08T15:50:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109875#p109875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109875#p109875"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109875#p109875"><![CDATA[
anyway to have this as pub command ?<br><br>also anyway to display all running crons ? with the method heartbroken used<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat May 08, 2021 3:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-04-27T11:52:08-04:00</updated>

		<published>2021-04-27T11:52:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109803#p109803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109803#p109803"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109803#p109803"><![CDATA[
Thanks, I didn't know this package exists.<br>Might solve a lot of problematics <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=691">CrazyCat</a> — Tue Apr 27, 2021 11:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2021-04-27T06:46:23-04:00</updated>

		<published>2021-04-27T06:46:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109802#p109802</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109802#p109802"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109802#p109802"><![CDATA[
tcllib also has  &gt;&gt; <a href="https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tcllib/files/modules/cron/cron.md" class="postlink">https://core.tcl-lang.org/tcllib/doc/tr ... on/cron.md</a><br><br><br>if .tcl commands enabled @ partyline . <div class="codebox"><p>Code: </p><pre><code>.tcl package require cron; cron::every Msg2User [expr {60*80}] {putserv "privmsg Nickname :Hey!"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Tue Apr 27, 2021 6:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2021-04-27T02:22:11-04:00</updated>

		<published>2021-04-27T02:22:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109801#p109801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109801#p109801"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109801#p109801"><![CDATA[
Ah, right, i had a feeling a single cron job wouldn't do the job and it actually makes sense.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Apr 27, 2021 2:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-04-26T17:59:22-04:00</updated>

		<published>2021-04-26T17:59:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109800#p109800</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109800#p109800"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109800#p109800"><![CDATA[
<blockquote class="uncited"><div>I will test both scripts, im worried tho if i need to change the time to + or - 80mins i wont know how to change 20 */1.  Id assume if its 90mins it would be 30 */1 ?</div></blockquote>No.<br>20 */1 will send the message every hour, when minutes are 0, 20 and 40.<br><br>The code from SpiKe^^ seems more relevant<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Apr 26, 2021 5:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[digitalbleh]]></name></author>
		<updated>2021-04-26T15:28:34-04:00</updated>

		<published>2021-04-26T15:28:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109799#p109799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109799#p109799"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109799#p109799"><![CDATA[
Thanks SpiKe^^<br><br>Thank you caesar<br><br>I will test both scripts, im worried tho if i need to change the time to + or - 80mins i wont know how to change 20 */1.  Id assume if its 90mins it would be 30 */1 ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11717">digitalbleh</a> — Mon Apr 26, 2021 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-04-26T12:25:29-04:00</updated>

		<published>2021-04-26T12:25:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109797#p109797</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109797#p109797"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109797#p109797"><![CDATA[
*/1 or * are the same.<br>When using */x, it means it will run when * % x (modulo) equals 0.<br><br>Examples:<br>*/5 * * * * will act every time the minutes are 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55<br>13 */7 * * * will act at 7h13, 14h13 and 21h13<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Apr 26, 2021 12:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-04-26T11:37:54-04:00</updated>

		<published>2021-04-26T11:37:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109796#p109796</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109796#p109796"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109796#p109796"><![CDATA[
Caesar: That seems a lot more like a 60 minute timer, at 20 after every hour.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Apr 26, 2021 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2021-04-26T10:48:32-04:00</updated>

		<published>2021-04-26T10:48:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109795#p109795</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109795#p109795"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109795#p109795"><![CDATA[
If anyone is willing to test a cron job like <em class="text-italics">20 */1 * * *</em> (meaning at 20 minutes past the hour) let me know if works.<div class="codebox"><p>Code: </p><pre><code>bind cron - {20 */1 * * *} send:messageproc send:message {min hour day month week} {puthelp "PRIVMSG user :This is the once every 80 minutes message"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 26, 2021 10:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-04-26T09:48:52-04:00</updated>

		<published>2021-04-26T09:48:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109794#p109794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109794#p109794"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109794#p109794"><![CDATA[
Seems kind of rude to spam the same message to aPerson every 80 minutes, but here it is:)<br><div class="codebox"><p>Code: </p><pre><code>proc timedMsgProc {} {  puthelp "PRIVMSG aPerson :send this msg to aPerson every 80 minutes"  timer 80 [list timedMsgProc]}if {![info exists timedMsgRunning]} {  set timedMsgRunning 1  timer 10 [list timedMsgProc]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Apr 26, 2021 9:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[digitalbleh]]></name></author>
		<updated>2021-04-26T05:49:31-04:00</updated>

		<published>2021-04-26T05:49:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109793#p109793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109793#p109793"/>
		<title type="html"><![CDATA[privmsg nickname on a timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109793#p109793"><![CDATA[
Hi,<br><br>Just want a simple script to send a msg to a person every 80 minutes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11717">digitalbleh</a> — Mon Apr 26, 2021 5:49 am</p><hr />
]]></content>
	</entry>
	</feed>
