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

	<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>2007-12-22T12:45:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-12-22T12:45:45-04:00</updated>

		<published>2007-12-22T12:45:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79495#p79495</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79495#p79495"/>
		<title type="html"><![CDATA[Quesation: Is it possible to do this with a TCL script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79495#p79495"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc proc:gettext { nick uhost handle channel text } {  regexp {there are (.*?) accounts older} $text match others}</code></pre></div>This will set the variable $others with the number of people after you.<br><br>"putquick" is a command used to tell eggdrop how fast to send information to the server, you have to put in the command what to send t the server.<br><div class="codebox"><p>Code: </p><pre><code>putquick "PRIVMSG #channel :howold l8night"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Sat Dec 22, 2007 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[l8night]]></name></author>
		<updated>2007-12-21T20:44:08-04:00</updated>

		<published>2007-12-21T20:44:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79490#p79490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79490#p79490"/>
		<title type="html"><![CDATA[Quesation: Is it possible to do this with a TCL script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79490#p79490"><![CDATA[
This is what I have so far:<div class="codebox"><p>Code: </p><pre><code>bind time - "05 05 * * *" proc:putquick proc proc:putquick {} {    putquick "howold l8night" }bind pubm -  At the moment there are * accounts older then l8night proc:gettext proc proc:gettext {} {}</code></pre></div>I want to put the value represented by the * in a variable, I was thinking first put the whole "At the moment there are * accounts older than l8night" in a list, I guess my question is how would I capture that text and put it into a list.<br><br>Any response will be greatly appreciated<br><br><br>Jeff<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9559">l8night</a> — Fri Dec 21, 2007 8:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[l8night]]></name></author>
		<updated>2007-12-21T01:37:45-04:00</updated>

		<published>2007-12-21T01:37:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79475#p79475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79475#p79475"/>
		<title type="html"><![CDATA[Quesation: Is it possible to do this with a TCL script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79475#p79475"><![CDATA[
Thanks a lot!! I'll take your suggestions and attempt to write my self a script.<br><br>I'll let you know how things go. Thanks again<br><br>Jeff<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9559">l8night</a> — Fri Dec 21, 2007 1:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-12-21T01:29:31-04:00</updated>

		<published>2007-12-21T01:29:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79474#p79474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79474#p79474"/>
		<title type="html"><![CDATA[Quesation: Is it possible to do this with a TCL script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79474#p79474"><![CDATA[
I suggest using a timer, or a time bind, to out put "howold account" to the channel.<br><br>You can use pubm bind to catch the reply based on "At the moment there are * accounts older then account", and suggest further creating a condition based on the uhost of the responding bot (to prevent some malicious user from simply creating a script that spits out "At the moment there are 1 accounts older then account" in reply to your bot's request).<br><br>Have the bot write the response it gets to a file, then use something like the following to send it:<div class="codebox"><p>Code: </p><pre><code>exec mail -s "Account age" my@email.com &lt; filename</code></pre></div>Since you asked this in the "Scripting <span style="text-decoration:underline">Help</span>" forum, and not the request forum, these are the best tips I can give for your script because you provided none of the code you are using.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri Dec 21, 2007 1:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[l8night]]></name></author>
		<updated>2007-12-20T19:26:17-04:00</updated>

		<published>2007-12-20T19:26:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79471#p79471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79471#p79471"/>
		<title type="html"><![CDATA[Quesation: Is it possible to do this with a TCL script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79471#p79471"><![CDATA[
ok ... I hope this makes since to you. I'm going to go and check the age of the account right now by going to this irc channel and typing in the command<br>howold <em class="text-italics">myaccountname</em>. This is the output that I got , At the moment there are 191 accounts older then "myaccount". That is how the age of my account is determined, by the number of accounts older than mine, or by the number of accounts newer than mine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9559">l8night</a> — Thu Dec 20, 2007 7:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-12-20T09:21:57-04:00</updated>

		<published>2007-12-20T09:21:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79461#p79461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79461#p79461"/>
		<title type="html"><![CDATA[Quesation: Is it possible to do this with a TCL script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79461#p79461"><![CDATA[
<blockquote class="uncited"><div>The age of the account is determined like this----<br><br>There can only be 300 accounts total on the shell server.<br>You sign up for an account and there are 299 accounts older than yours. another person gets an account and now there's 298 accounts older than yours, when there are 0 accounts older than your account it's gets deleted.</div></blockquote>This does not tell anyone how the age is figured out, this only restates the scenario. <br>So, I'll ask again. How do users know how old their account is?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Thu Dec 20, 2007 9:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[l8night]]></name></author>
		<updated>2007-12-20T01:52:34-04:00</updated>

		<published>2007-12-20T01:52:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79458#p79458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79458#p79458"/>
		<title type="html"><![CDATA[Quesation: Is it possible to do this with a TCL script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79458#p79458"><![CDATA[
The age of the account is determined like this----<br><br>There can only be 300 accounts total on the shell server.<br>You sign up for an account and there are 299 accounts older than yours. another person gets an account and now there's 298 accounts older than yours, when there are 0 accounts older than your account it's gets deleted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9559">l8night</a> — Thu Dec 20, 2007 1:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-12-20T01:32:40-04:00</updated>

		<published>2007-12-20T01:32:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79457#p79457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79457#p79457"/>
		<title type="html"><![CDATA[Quesation: Is it possible to do this with a TCL script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79457#p79457"><![CDATA[
You will first have to find out how the age is determined. Simply going by uid may not work as some (if not most) shell providers configure their adduser scripts to reuse uids.<br><br>On most shells, using TCL exec command to run commandline mail is possible.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Thu Dec 20, 2007 1:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[l8night]]></name></author>
		<updated>2007-12-19T21:00:57-04:00</updated>

		<published>2007-12-19T21:00:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79453#p79453</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79453#p79453"/>
		<title type="html"><![CDATA[Quesation: Is it possible to do this with a TCL script?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79453#p79453"><![CDATA[
Hi, <br><br>I'm new to tcl scripting and have an idea for a script, and I would just like to know if it is even possible before I attempt to write it. <br><br>Scenario:<br><br>I have a  shell account that will get deleted if it is the oldest of 300 accounts. To check how old your account is you simply go to a certain IRC channel and type the command ' howold  <em class="text-italics">username</em> ' and a bot will tell how many accounts are older than yours. I want to write a script for my eggdrop that will do this 'howold' command every so often, and when a certain number of accounts are older than mine, the bot will send an email to notify me to renew my shell account. The only part I'm really not sure about is if you can add mail server functionality to a script.<br><br>Any response or direction will be greatly appreciated.<br><br>Regards, Jeff<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9559">l8night</a> — Wed Dec 19, 2007 9:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
