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

	<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>2021-11-18T10:11:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-11-18T10:11:14-04:00</updated>

		<published>2021-11-18T10:11:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110491#p110491</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110491#p110491"/>
		<title type="html"><![CDATA[Drone score system]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110491#p110491"><![CDATA[
ah ok i guess i misunderstood thanks CC<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Nov 18, 2021 10:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-11-18T09:36:26-04:00</updated>

		<published>2021-11-18T09:36:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110490#p110490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110490#p110490"/>
		<title type="html"><![CDATA[Drone score system]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110490#p110490"><![CDATA[
BTW, here is the modification of my main procedure:<div class="codebox"><p>Code: </p><pre><code>proc check {ustring} {set score 0if { [string length $ustring]&lt;3 } { return 0 }set digits [llength [regexp -all -inline -- {[0-9]} $ustring]]set consonants [llength [regexp -all -inline -nocase -- {[bcdfghjklmnpqrstvwxz]} $ustring]]set vowels [llength [regexp -all -inline -nocase -- {[aeiuoy]} $ustring]]set others [llength [regexp -all -inline -- {[\{\}\[\]\-\_\^\`\|\\]} $ustring]]set caps [llength [regexp -all -inline -- {[A-Z]} $ustring]]if {$digits &gt;= 5 } { incr score $digits }if {$consonants &gt;= 4} { incr score $consonants }if {$vowels &gt;= 4} { incr score $vowels }if {$others &gt;= 5 } { incr score $others }if {$caps &gt;= 5 } { incr score $caps }putlog "DBG : $digits digits, $consonants consonants, $vowels vowels, $others others, $caps caps"set two [string range $ustring 0 1]if {[info exists ::antirand::triple($two)]} {foreach l [split [string range $ustring 2 end] {}] {if {[string first $l $::antirand::triple($two)]!=-1} { incr score }}}return $score}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Nov 18, 2021 9:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-11-18T09:22:02-04:00</updated>

		<published>2021-11-18T09:22:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110489#p110489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110489#p110489"/>
		<title type="html"><![CDATA[Drone score system]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110489#p110489"><![CDATA[
As I said, my script is just a proof of concept to do a tcl version of the unreal antirandom module.<br><br>you can add count for caps and other chars in my script if you want, and replace the bind pub with a bind join.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Nov 18, 2021 9:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-11-18T08:47:36-04:00</updated>

		<published>2021-11-18T08:47:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110487#p110487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110487#p110487"/>
		<title type="html"><![CDATA[Drone score system]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110487#p110487"><![CDATA[
thanks CC i checked it out but it doesnt seem to have a check for special chars like : <br><br>   set vowel "aeiouyxq"<br>   set other "{}\\\[\\\]-_^`|\\\\"<br>   set digit "0123456789"<br>   set caps "ABCDEFGHIJKLMNOPQRSTUVWXYZ"<br><br><br>as thats what we get most<br><br>it seems a pub command check while we wanted on join check<br>and we wanted to check nick only or check for a combi of nick and ident<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Nov 18, 2021 8:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-11-18T08:25:43-04:00</updated>

		<published>2021-11-18T08:25:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110486#p110486</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110486#p110486"/>
		<title type="html"><![CDATA[Drone score system]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110486#p110486"><![CDATA[
I made a small POC: an adaptation of unreal' antirandom module in tcl: <a href="https://scripts.eggdrop.fr/details-Antirandom-s260.html" class="postlink">https://scripts.eggdrop.fr/details-Antirandom-s260.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Nov 18, 2021 8:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-11-13T17:20:23-04:00</updated>

		<published>2021-11-13T17:20:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110472#p110472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110472#p110472"/>
		<title type="html"><![CDATA[Drone score system]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110472#p110472"><![CDATA[
oh yea true didnt see that thanks caesar<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Nov 13, 2021 5:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2021-11-13T15:55:22-04:00</updated>

		<published>2021-11-13T15:55:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110471#p110471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110471#p110471"/>
		<title type="html"><![CDATA[Drone score system]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110471#p110471"><![CDATA[
A bit of nitpicking:<br>1. don't use return in a loop. want to stop? just <em class="text-italics">break</em> it, I mean literally, use break not return.<div class="codebox"><p>Code: </p><pre><code>foreach phx $exchost {  if {[string match -nocase $phx $uhost]} {  return 0 }  } </code></pre></div>2. I would move this like:<div class="codebox"><p>Code: </p><pre><code>if [matchattr $hand of|of $chan] return </code></pre></div>somewhere higher like after <em class="text-italics">isbotnick</em> line.<div class="codebox"><p>Code: </p><pre><code>set chost [getchanhost $nick $chan]set bmask [maskhost "$nick!$chost" 2] </code></pre></div>3. you don't need first line cos you already got the result in <em class="text-italics">$uhost</em> variable, and you don't need the second line cos would return <em class="text-italics">*!ident@host</em> that you again got in <em class="text-italics">$uhost</em> variable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Nov 13, 2021 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-11-13T11:30:20-04:00</updated>

		<published>2021-11-13T11:30:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110470#p110470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110470#p110470"/>
		<title type="html"><![CDATA[Drone score system]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110470#p110470"><![CDATA[
hm ok thanks CC<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Nov 13, 2021 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-11-12T19:39:51-04:00</updated>

		<published>2021-11-12T19:39:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110469#p110469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110469#p110469"/>
		<title type="html"><![CDATA[Drone score system]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110469#p110469"><![CDATA[
Didn't fully look your script, and didn't read the referenced post, but first thing I can see is that all your counts using caps won't work, because you transform the input string to lowercase.<br><br>And you have two duplicate count: \[$caps$digit\]{2,} and \[$caps$other\]{2,}<br><br>Note that the count are done on minimum 2 consecutive matches (the {2,} in regexp). Here is, in usual language, what you really count with your example:<br>- number of successive caps (doesn't work, gives 0)<br>- number of successive vowel (gives 1, only "ia" matches)<br>- number of successive others chars (gives 0)<br>- number of successive digits (gives 0)<br>- number of successive caps and digits (see digits, gives 0)<br>- number of successive caps and others (see others, gives 0)<br>- number of successive vowel and others (may give 3: "ia", "on" "-a")<br>- (duplicate) number of successive caps and others (see others, gives 0)<br>- number of successive vowel and digits (may give 1: "ia")<br>- (duplicate) number of successive caps and digits (see digits, gives 0)<br>- number of successive other and digits (may give 1, "[3]")<br><br>Gives me a total of 5<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Nov 12, 2021 7:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-11-12T18:12:27-04:00</updated>

		<published>2021-11-12T18:12:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110468#p110468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110468#p110468"/>
		<title type="html"><![CDATA[Drone score system]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110468#p110468"><![CDATA[
i tried this but got weird outcomes :<br><br><div class="codebox"><p>Code: </p><pre><code> set exchost {     "*.irccloud.com" } set threshold 5bind nick - * nick:check_droneproc nick:check_drone {nick uhost hand chan newnick} {    check_drone $newnick $uhost $hand $chan}bind join - * check_drone proc check_drone {nick uhost hand chan} {  global exchost  if {[isbotnick $nick]} return  if {([regexp {^guest.+[0-9]{4}$} [string tolower $nick]])} { return }   foreach phx $exchost {  if {[string match -nocase $phx $uhost]} {  return 0 }  }       if [matchattr $hand of|of $chan] return       putserv "privmsg $chan :[sb:score $nick] - $nick"  if {[sb:score $nick] &gt;= $::threshold} {           set chost [getchanhost $nick $chan]        set bmask [maskhost "$nick!$chost" 2]        pushmode $chan +b $bmask   }}proc sb:score {str} {   set score 0   set vowel "aeiouyxq"   set other "{}\\\[\\\]-_^`|\\\\"   set digit "0123456789"   set caps "ABCDEFGHIJKLMNOPQRSTUVWXYZ"     set str [string tolower $str]   incr score [llength [regexp -all -inline \[$caps\]{2,} $str]]   incr score [llength [regexp -all -inline \[$vowel\]{2,} $str]]   incr score [llength [regexp -all -inline \[$other\]{2,} $str]]   incr score [llength [regexp -all -inline \[$digit\]{2,} $str]]   incr score [llength [regexp -all -inline \[$caps$digit\]{2,} $str]]   incr score [llength [regexp -all -inline \[$caps$other\]{2,} $str]]   incr score [llength [regexp -all -inline \[$vowel$other\]{2,} $str]]   incr score [llength [regexp -all -inline \[$caps$other\]{2,} $str]]   incr score [llength [regexp -all -inline \[$vowel$digit\]{2,} $str]]   incr score [llength [regexp -all -inline \[$caps$digit\]{2,} $str]]   incr score [llength [regexp -all -inline \[$other$digit\]{2,} $str]]  # incr score $score}</code></pre></div>for example this nick:  wlwiaC|on[3]D-axry shows a score of 4 wich is odd as it has lots of chars that should be counted<br><br>what we where looking for is :<br><br>aeiuo = 5 consonants counted<br>meaning ABCD = 4 CAPS counted<br>1234 = 4 digits counted <br>_|[] = 4 other chars counted<br><br>a total score of 17 counted<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Nov 12, 2021 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-11-12T18:02:12-04:00</updated>

		<published>2021-11-12T18:02:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110467#p110467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110467#p110467"/>
		<title type="html"><![CDATA[Drone score system]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110467#p110467"><![CDATA[
i was looking at this thread:<br><br><a href="http://forum.egghelp.org/viewtopic.php?t=9808&amp;postdays=0&amp;postorder=asc&amp;start=15" class="postlink">http://forum.egghelp.org/viewtopic.php? ... c&amp;start=15</a><br><br>and was wondering how the score actually gets counted i wanted to use it and count the actual chars used <br><br>like the amount of CAPS used <br>the  amount of digits used <br>the amount other chars used and get a total of all these combined<br>except it should count in nick only and disregard ident<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Nov 12, 2021 6:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
