<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>arkinEx Codex &#187; eggdrop</title>
	<atom:link href="http://www.arkinex.com/contains/eggdrop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arkinex.com</link>
	<description>the place where all my code can be viewed</description>
	<lastBuildDate>Wed, 04 Nov 2009 20:39:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing and Configuring Eggdrop on Debian</title>
		<link>http://www.arkinex.com/guides/65/install-eggdrop-debian/</link>
		<comments>http://www.arkinex.com/guides/65/install-eggdrop-debian/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 19:25:14 +0000</pubDate>
		<dc:creator>arkin</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[eggdrop]]></category>
		<category><![CDATA[irc]]></category>

		<guid isPermaLink="false">http://www.arkinex.com/?p=65</guid>
		<description><![CDATA[An eggdrop is a popular IRC bot that handles users and maintains certain rules &#038; other things on your IRC channels. Eggdrops are useful to have on networks that don&#8217;t have IRC services such as Efnet and also useful when you need a certain service such as 24.7 channel logs for statistics (pisg) or quotes [...]]]></description>
			<content:encoded><![CDATA[<p>An eggdrop is a popular IRC bot that handles users and maintains certain rules &#038; other things on your IRC channels. Eggdrops are useful to have on networks that don&#8217;t have IRC services such as Efnet and also useful when you need a certain service such as 24.7 channel logs for statistics (<a href="http://pisg.sourceforge.net/" target="_blank">pisg</a>) or quotes in your channel.</p>
<p>The following guide will show you how to install the latest Eggdrop on Debian Etch/Lenny (and probably most other Debian/Ubuntu distributions/versions.)<br />
<span id="more-65"></span><br />
First of all, make sure you are root; we want to install the main eggdrop repository. This will download and install the latest eggdrop version.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>arkinex:~<span style="color: #666666; font-style: italic;"># apt-get install eggdrop</span></pre></div></div>

<p>It is advised that you have a user setup for eggdrop, in this example, my user is &#8216;<strong>eggdrops</strong>&#8216; with the eggdrop directory &#8216;<strong>/home/eggdrops/eggdrop1/</strong>&#8216;.</p>
<p>We need to copy a sample configuration file, after extracting it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>arkinex:~<span style="color: #666666; font-style: italic;"># gzip -d /usr/share/doc/eggdrop-data/examples/eggdrop.conf.gz</span>
root<span style="color: #000000; font-weight: bold;">@</span>arkinex:~<span style="color: #666666; font-style: italic;"># cp /usr/share/doc/eggdrop-data/examples/eggdrop.conf /home/eggdrops/sample.conf</span>
root<span style="color: #000000; font-weight: bold;">@</span>arkinex:~<span style="color: #666666; font-style: italic;"># chown eggdrops:eggdrops /home/eggdrops/sample.conf</span>
root<span style="color: #000000; font-weight: bold;">@</span>arkinex:~<span style="color: #666666; font-style: italic;"># su eggdrops &amp;&amp; cd</span></pre></div></div>

<p>If you&#8217;ve kept up, we copied the sample configuration and assigned eggdrops user account as the owner and then changed our current terminal to the eggdrops account. Next, we want to copy the sample to our working configuration.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">eggdrops<span style="color: #000000; font-weight: bold;">@</span>arkinex:~<span style="color: #666666; font-style: italic;"># cp sample.conf eggdrop1/eggdrop1.conf</span>
eggdrops<span style="color: #000000; font-weight: bold;">@</span>arkinex:~<span style="color: #666666; font-style: italic;"># cd eggdrop1</span>
eggdrops<span style="color: #000000; font-weight: bold;">@</span>arkinex:~<span style="color: #666666; font-style: italic;"># nano eggdrop1.conf</span></pre></div></div>

<p>You can now edit all your eggdrop settings and then we will launch the eggdrop for the first time. <strong>Note</strong>: Leave all the scripts and modules with the /usr/share/ directory prefix alone, we do not need to duplicate any of these files as they are in the shared folder.</p>
<p>To launch the eggdrop:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">eggdrops<span style="color: #000000; font-weight: bold;">@</span>arkinex:~<span style="color: #666666; font-style: italic;"># eggdrop -m eggdrop1.conf</span></pre></div></div>

<p>And your ready to go, it should join the default channel and once you&#8217;ve setup users you should not need to specify the -m option again.</p>
<p>Hope you enjoyed this guide. If you have any questions, post them as comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arkinex.com/guides/65/install-eggdrop-debian/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Connecting to MySQL using TCL</title>
		<link>http://www.arkinex.com/tcl/49/tcl-connect-mysql-database/</link>
		<comments>http://www.arkinex.com/tcl/49/tcl-connect-mysql-database/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 23:42:34 +0000</pubDate>
		<dc:creator>arkin</dc:creator>
				<category><![CDATA[TCL]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[eggdrop]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.arkinex.com/?p=49</guid>
		<description><![CDATA[So, lately i&#8217;ve been playing around with tcl again, and trying to make it work alongside MySQL to store information such as Q auth&#8217;s and various other information on users. Its working quite well. We connect to MySQL through TCL using a package called mysqltcl. Here is how I connect: # First we require the [...]]]></description>
			<content:encoded><![CDATA[<p>So, lately i&#8217;ve been playing around with tcl again, and trying to make it work alongside MySQL to store information such as Q auth&#8217;s and various other information on users. Its working quite well.</p>
<p>We connect to MySQL through TCL using a package called mysqltcl.</p>
<p>Here is how I connect:</p>

<div class="wp_syntax"><div class="code"><pre class="tcl" style="font-family:monospace;"><span style="color: #808080; font-style: italic;"># First we require the mysqltcl package. You normally have to install this.</span>
<span style="color: #008000;">package</span> require mysqltcl
&nbsp;
<span style="color: #ff7700;font-weight:bold;">set</span> db <span style="color: black;">&#91;</span>::<span style="color: black;">mysql</span>::<span style="color: black;">connect</span> -host localhost -user username -password password -db database<span style="color: black;">&#93;</span><span style="color: #66cc66;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Then perform an query...</span>
<span style="color: #808080; font-style: italic;"># JOIN</span>
<span style="color: #808080; font-style: italic;">#</span>
bind <span style="color: #008000;">join</span> - <span style="color: #66cc66;">*</span> rec:<span style="color: #008000;">join</span>
<span style="color: #ff7700;font-weight:bold;">proc</span> rec:<span style="color: #008000;">join</span> <span style="color: #483d8b;">{nick uhost hand chan}</span> <span style="color: black;">&#123;</span>
	<span style="color: #ff7700;font-weight:bold;">global</span> botnick db
	<span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #483d8b;">{$nick == $botnick}</span> <span style="color: #483d8b;">{ return 0 }</span>
	<span style="color: #ff7700;font-weight:bold;">set</span> result <span style="color: black;">&#91;</span>::<span style="color: black;">mysql</span>::<span style="color: #008000;">exec</span> <span style="color: #ff3333;">$db</span> <span style="color: #483d8b;">&quot;INSERT INTO nicks (timestamp,channel,nickname) VALUES(UNIX_TIMESTAMP(),'$chan','$nick')&quot;</span><span style="color: black;">&#93;</span>
<span style="color: black;">&#125;</span></pre></div></div>

<p>As you can see, in my example we store the nickname and channel when someone joins a channel your bot is sitting in. A very useful module indeed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arkinex.com/tcl/49/tcl-connect-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
