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

	<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>2014-07-17T10:05:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rrc55]]></name></author>
		<updated>2014-07-17T10:05:22-04:00</updated>

		<published>2014-07-17T10:05:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103011#p103011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103011#p103011"/>
		<title type="html"><![CDATA[Module Timed Think Function]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103011#p103011"><![CDATA[
Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10533">rrc55</a> — Thu Jul 17, 2014 10:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2014-07-17T02:12:42-04:00</updated>

		<published>2014-07-17T02:12:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103010#p103010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103010#p103010"/>
		<title type="html"><![CDATA[Module Timed Think Function]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103010#p103010"><![CDATA[
If you don't have TCL Commands file then grab it from <a href="https://dl.dropboxusercontent.com/u/2056371/tcl/tcl-commands.pdf" class="postlink">here</a> and then look at the <em class="text-italics">bind cron</em> or <em class="text-italics">bind time</em>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jul 17, 2014 2:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rrc55]]></name></author>
		<updated>2014-07-16T22:31:06-04:00</updated>

		<published>2014-07-16T22:31:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103009#p103009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103009#p103009"/>
		<title type="html"><![CDATA[Module Timed Think Function]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103009#p103009"><![CDATA[
What are those and how do you use them?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10533">rrc55</a> — Wed Jul 16, 2014 10:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2014-07-16T09:07:52-04:00</updated>

		<published>2014-07-16T09:07:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103008#p103008</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103008#p103008"/>
		<title type="html"><![CDATA[Module Timed Think Function]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103008#p103008"><![CDATA[
And why would you bother with this if there's time or cron binds?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jul 16, 2014 9:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rrc55]]></name></author>
		<updated>2014-07-16T01:51:53-04:00</updated>

		<published>2014-07-16T01:51:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103007#p103007</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103007#p103007"/>
		<title type="html"><![CDATA[Module Timed Think Function]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103007#p103007"><![CDATA[
I figured it out in case anyone is interested.<br><div class="codebox"><p>Code: </p><pre><code>void ecgn_test(void){dprintf(DP_SERVER, "PRIVMSG %s :TESTING\n", "#ecgn");}char *ecgn_start(Function *func_table){global = func_table;module_register(MODULE_NAME, ecgn_table, 1, 2);if (!(irc_funcs = module_depend(MODULE_NAME, "irc", 1, 3)))return "This module requires irc 1.3 or later.";if (!module_depend(MODULE_NAME, "eggdrop", 108, 0))return "This module requires eggdrop1.8 or later.";add_hook(HOOK_MINUTELY, (Function) ecgn_test);add_builtins(H_pub, stat_cmd);return NULL;}</code></pre></div>The key here is the add_hook() function. This will call my ecgn function every minute without having to bind it to a command. This is exactly what I wanted.<br><br>Hope this helps someone.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10533">rrc55</a> — Wed Jul 16, 2014 1:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rrc55]]></name></author>
		<updated>2014-07-15T18:33:18-04:00</updated>

		<published>2014-07-15T18:33:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103006#p103006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103006#p103006"/>
		<title type="html"><![CDATA[Module Timed Think Function]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103006#p103006"><![CDATA[
I want to write a command independent mod function that performs a task at a regular interval. How do I export it to the core? Is there a better way? Thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10533">rrc55</a> — Tue Jul 15, 2014 6:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
