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

	<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>2005-12-26T20:08:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-26T20:08:23-04:00</updated>

		<published>2005-12-26T20:08:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58692#p58692</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58692#p58692"/>
		<title type="html"><![CDATA[!female gets an auto +v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58692#p58692"><![CDATA[
eggdrop's userfile is meant to serve the purpose of storing &amp; managing user records<br><br>of course, you are free to implement your own user management system, in a text file, database or maybe your cell phone - whatever suits you best<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Dec 26, 2005 8:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avatar132]]></name></author>
		<updated>2005-12-26T16:19:05-04:00</updated>

		<published>2005-12-26T16:19:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58684#p58684</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58684#p58684"/>
		<title type="html"><![CDATA[!female gets an auto +v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58684#p58684"><![CDATA[
i know about those settings, *adduser and chattr* but i didnt want to add the users to the bot, i was thinking of after three times it adds to a txt file, then everytime that user enters it will read the txt and auto +v, or do u tink adduser would be the best way to go?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7114">avatar132</a> — Mon Dec 26, 2005 4:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-26T16:10:22-04:00</updated>

		<published>2005-12-26T16:10:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58683#p58683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58683#p58683"/>
		<title type="html"><![CDATA[!female gets an auto +v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58683#p58683"><![CDATA[
well, in such case you should read about [adduser] and [chattr] commands and use them <br><br>and of course, be aware that there is that +v userflag thing<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Dec 26, 2005 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avatar132]]></name></author>
		<updated>2005-12-26T15:41:23-04:00</updated>

		<published>2005-12-26T15:41:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58682#p58682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58682#p58682"/>
		<title type="html"><![CDATA[!female gets an auto +v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58682#p58682"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[2:33pm] &lt;CrystalX&gt; [13:33] &lt;&lt;WyldZ&gt;&gt; !wyldz! !female [2:33pm] &lt;CrystalX&gt; [13:33] &lt;&lt;WyldZ&gt;&gt; !wyldz! !female [2:33pm] &lt;CrystalX&gt; [13:33] &lt;&lt;WyldZ&gt;&gt; !wyldz! !female </code></pre></div><div class="codebox"><p>Code: </p><pre><code>-X (cservice@undernet.org)- I don't know who WyldZ is.-X (cservice@undernet.org)- I don't know who WyldZ is.</code></pre></div>that doesnt seem to work, i think what might have to happen is to keep track of a userfile or something..  cause i forgot x doesnt autovoice by nick it autovoices by registered usernames<br>but the code does work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7114">avatar132</a> — Mon Dec 26, 2005 3:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avatar132]]></name></author>
		<updated>2005-12-26T15:22:08-04:00</updated>

		<published>2005-12-26T15:22:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58681#p58681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58681#p58681"/>
		<title type="html"><![CDATA[new format]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58681#p58681"><![CDATA[
tried this, but it didnt seem work, im had a couple people test it:<div class="codebox"><p>Code: </p><pre><code>bind pub - !female pub2proc pub2 {nick uhost hand chan text} { if {[isop $nick $chan]==0 &amp;&amp; [isvoice $nick $chan]==0} {putserv "PRIVMSG X :voice $chan $nick" }if ![info exists ::count($nick)] {   set ::count($nick) 1 ;# initialize} elseif {$::count($nick) &lt; 3} {   incr ::count($nick) ;# increment} else {   unset ::count($nick) ;# resetif {[isop $nick $chan]==0 } {putserv "PRIVMSG X :adduser $chan $nick 1" putserv "PRIVMSG X :modinfo $chan automode $nick voice" }} }putlog "Loaded femalevoice.tcl"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7114">avatar132</a> — Mon Dec 26, 2005 3:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avatar132]]></name></author>
		<updated>2005-12-26T14:40:05-04:00</updated>

		<published>2005-12-26T14:40:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58679#p58679</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58679#p58679"/>
		<title type="html"><![CDATA[got it working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58679#p58679"><![CDATA[
thanks, that fixed it, i ran it and tested it but i think the perpuse of the script i must of not been clear on, if that is the case i am sorry....<br><br>i wanted it to +v on !female, but after 3 times someone has typed it it adds it automaticly to maybe a list so it automatly voices when the user comes back into the room, they dont have to type !female ever again after 3 times(for regulars) <br>i'll try to mess with it some more, but i was curious to find out what you might of come up with, i've read alot of posts in here. and some of the scripting is amazing <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=7114">avatar132</a> — Mon Dec 26, 2005 2:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-26T13:21:51-04:00</updated>

		<published>2005-12-26T13:21:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58676#p58676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58676#p58676"/>
		<title type="html"><![CDATA[!female gets an auto +v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58676#p58676"><![CDATA[
you missed proc's opening brace, after the argument list<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Dec 26, 2005 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avatar132]]></name></author>
		<updated>2005-12-26T11:51:56-04:00</updated>

		<published>2005-12-26T11:51:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58673#p58673</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58673#p58673"/>
		<title type="html"><![CDATA[i think im doing something wrong]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58673#p58673"><![CDATA[
thank you for the code!<br>however i tried to insert your code into the tcl, and i am coming up with an error msg<br><div class="codebox"><p>Code: </p><pre><code>[09:44] wrong # args: should be "proc name args body"    while executing"proc pub2 {nick uhost hand chan text} "    (file "scripts/femalevoice.tcl" line 2)    invoked from within"source scripts/femalevoice.tcl"</code></pre></div>i am just a beginner, and i am unsure what that msg needs me to do, since it did work before i inserted the code, thanks again<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !female pub2proc pub2 {nick uhost hand chan text} if ![info exists ::count($nick)] {   set ::count($nick) 1 ;# initialize} elseif {$::count($nick) &lt; 3} {   incr ::count($nick) ;# increment} else {   unset ::count($nick) ;# resetif {[isop $nick $chan]==0 &amp;&amp; [isvoice $nick $chan]==0} {putserv "PRIVMSG X :voice $chan $nick" }}putlog "Loaded femalevoice.tcl"</code></pre></div>[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7114">avatar132</a> — Mon Dec 26, 2005 11:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-26T05:07:36-04:00</updated>

		<published>2005-12-26T05:07:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58665#p58665</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58665#p58665"/>
		<title type="html"><![CDATA[!female gets an auto +v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58665#p58665"><![CDATA[
yes<br><br>hint: learn about Tcl arrays and use an array to store the count of issued public commands; your array would be indexed by nick; so when someone types that command, you check the array against his/her nick:<div class="codebox"><p>Code: </p><pre><code>if ![info exists ::count($nick)] {   set ::count($nick) 1 ;# initialize} elseif {$::count($nick) &lt; 3} {   incr ::count($nick) ;# increment} else {   unset ::count($nick) ;# reset   # ...and finally, voice $nick}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Dec 26, 2005 5:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avatar132]]></name></author>
		<updated>2005-12-26T01:17:24-04:00</updated>

		<published>2005-12-26T01:17:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58663#p58663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58663#p58663"/>
		<title type="html"><![CDATA[!female gets an auto +v]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58663#p58663"><![CDATA[
Hi, i currently run a channel that gets 26-48 users on a daily bases, I've wrote up an simple tcl script (im a beginner in tcl, but learnning), to auto voice anyone that types !female using undernets X bot, my question is: is it possable for a script to be written to have it auto-voice someone after 3 times of typing !female ?  included will be the short code i wrote..thanks!<div class="codebox"><p>Code: </p><pre><code>bind pub - !female pub2proc pub2 {nick uhost hand chan text} {if {[isop $nick $chan]==0 &amp;&amp; [isvoice $nick $chan]==0} {putserv "PRIVMSG X :voice $chan $nick" }}putlog "Loaded femalevoice.tcl"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7114">avatar132</a> — Mon Dec 26, 2005 1:17 am</p><hr />
]]></content>
	</entry>
	</feed>
