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

	<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>2001-09-28T00:19:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[GQsm]]></name></author>
		<updated>2001-09-28T00:19:00-04:00</updated>

		<published>2001-09-28T00:19:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91#p91</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91#p91"/>
		<title type="html"><![CDATA[A question about config code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91#p91"><![CDATA[
Thanks guys you were really quick!<br><br>I shall now attack my configs with my new found knowledge.<br><br>Thanks again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=54">GQsm</a> — Fri Sep 28, 2001 12:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-09-28T00:05:00-04:00</updated>

		<published>2001-09-28T00:05:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90#p90</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90#p90"/>
		<title type="html"><![CDATA[A question about config code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90#p90"><![CDATA[
Yes, this can work.<br><br>I orginaly used this method for my servers list, but eventualy converted it into 4 files. Servers, global settings, dynamic settings and bot settings.<br><br>I took all the setting that would remain the same, and put them in global.inc.<br><br>I took the server list and put it in a file called servers.inc<br><br>I took settings like, userfile, chanfile, notefile, logfiles, and put them in a file called dynamic.inc. This file is actualy a script, which adds the bot nickname to the filenames, thus making them unique, but keeping config size down.<br><br>I then created a file called botnick.conf. This contained the botnick, nickname, any scripts that where only on one bot and so on.<br><br>TO make these all work together, I used the "source" tcl command to load the dynamic.inc file, into the bots config file. In turn, the dynamicinc file, has a "source" line for both servers.inc and global.inc.<br><br>This makes them all come together.<br><br>For a more basic example.<br><br><strong class="text-strong">File:</strong> <em class="text-italics">server.inc</em><div class="codebox"><p>Code: </p><pre><code>set servers {irc.my.serverirc.not.my.server}</code></pre></div><strong class="text-strong">File:</strong> <em class="text-italics">global.inc</em><div class="codebox"><p>Code: </p><pre><code>listen 3333 allsource server.incsource alltools.tcl</code></pre></div><strong class="text-strong">File:</strong> <em class="text-italics">botnick.inc</em><div class="codebox"><p>Code: </p><pre><code>set nick "botnick"source global.inc</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Sep 28, 2001 12:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2001-09-28T00:05:00-04:00</updated>

		<published>2001-09-28T00:05:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89#p89</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89#p89"/>
		<title type="html"><![CDATA[A question about config code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89#p89"><![CDATA[
Sure that will work. In bot.conf, just add the line:<br><br>source global.conf<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Sep 28, 2001 12:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GQsm]]></name></author>
		<updated>2001-09-27T23:50:00-04:00</updated>

		<published>2001-09-27T23:50:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88#p88</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88#p88"/>
		<title type="html"><![CDATA[A question about config code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88#p88"><![CDATA[
I got some eggdrops. In the configs a lot of settings I keep the same throughout my botnet, while some oviously have to be unique. Is it possible to have a file i call global.conf to contain my global lines of the config which i can put with each bot and then a unique bot.conf only containing the non-global settings. <br><br>could it work when i do a ./eggdrop bot.conf <br>that contains some code to load the remaining settings from global.conf<br><br>Would this work and what commands/lines of code do I need to put in the bot.conf to load global.conf?<br><br>Thanks<br><br>_________________<br><br><br>&lt;font size=-1&gt;[ This Message was edited by: GQsm on 2001-09-27 21:53 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=54">GQsm</a> — Thu Sep 27, 2001 11:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
