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

	<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-01-23T17:36:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-01-23T17:36:09-04:00</updated>

		<published>2021-01-23T17:36:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109353#p109353</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109353#p109353"/>
		<title type="html"><![CDATA[Spam Question Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109353#p109353"><![CDATA[
That worked brilliant CrazyCat, thank you  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Sat Jan 23, 2021 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-01-23T12:40:32-04:00</updated>

		<published>2021-01-23T12:40:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109351#p109351</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109351#p109351"/>
		<title type="html"><![CDATA[Spam Question Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109351#p109351"><![CDATA[
Yeah, it was actually suppose to be a Spam Question security for a ZNC Request Eggdrop  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"> <br><br>But thank you CrazyCat for that code, i will try it right away  <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=12849">ComputerTech</a> — Sat Jan 23, 2021 12:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-01-23T12:39:07-04:00</updated>

		<published>2021-01-23T12:39:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109350#p109350</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109350#p109350"/>
		<title type="html"><![CDATA[Spam Question Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109350#p109350"><![CDATA[
<blockquote class="uncited"><div>i would simply use nickserv for that and set channel to +R</div></blockquote>ComputerTech never said it was to access a channel, he said the !code command must pass if codes match, and fail if not.<br>Nothing seems related to nickserv nor channel access.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Jan 23, 2021 12:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-01-23T11:15:10-04:00</updated>

		<published>2021-01-23T11:15:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109349#p109349</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109349#p109349"/>
		<title type="html"><![CDATA[Spam Question Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109349#p109349"><![CDATA[
i would simply use nickserv for that and set channel to +R<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Jan 23, 2021 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-01-23T05:19:15-04:00</updated>

		<published>2021-01-23T05:19:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109348#p109348</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109348#p109348"/>
		<title type="html"><![CDATA[Spam Question Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109348#p109348"><![CDATA[
You have the random generator @ <a href="http://forum.egghelp.org/viewtopic.php?t=20848" class="postlink">http://forum.egghelp.org/viewtopic.php?t=20848</a><br><br>just fill an array with it and wait for the answer:<br><div class="codebox"><p>Code: </p><pre><code>array set sentcode {}bind pub o|o "!gencode" gencodeproc gencode {nick uhost handle chan text} {   set args [split $text]   if {[llength $args]!=1} {      putserv "PRIVMSG $nick :usage is !gencode &lt;victim&gt;"      return 1   }   set victim [join [lindex $args 0]]   if {![onchan $victim]} {      putserv "PRIVMSG $nick :Can't find $victim"      return 1   }   set code [randString 8 8]   set ::sentcode([string tolower $victim]) $code   putserv "PRIVMSG $victim :your code is $code"}bind pub - "!code" getcodeproc getcode {nick uhost handle chan text} {   set args [split $text]   set victim [string tolower $nick]   if {[llength $args]!=1} {      putserv "PRIVMSG $nick :usage is !code &lt;your code&gt;"      return 1   }   if {![info exists ::sentcode($victim)]} {      putserv "PRIVMSG $nick :I'm not waiting a code from you"      return 1   }   set code [join [lindex $args 0]]   if {$::sentcode($victim) eq $code} {      putserv "PRIVMSG $nick :Ok"      unset ::sentcode($victim)   } else {      putserv "PRIVMSG $nick :Error with the code"      return 1   }}# usage : randString &lt;min&gt; &lt;max&gt;proc randString { {min 1} {max 8} } {   set chars "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"   set size [expr {int(rand()*($max-$min+1)+$min)}]   set range [string length $chars]   set txt ""   for {set i 0} {$i &lt; $size} {incr i} {      set pos [expr {int(rand()*$range)}]      append txt [string index $chars $pos]   }   return $txt}</code></pre></div>Feel free to adapt that (not tested, some errors can occure)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Jan 23, 2021 5:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-01-23T02:48:07-04:00</updated>

		<published>2021-01-23T02:48:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109347#p109347</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109347#p109347"/>
		<title type="html"><![CDATA[Spam Question Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109347#p109347"><![CDATA[
So looking for a script that will make the bot generate a random letter/number then ask like this via PM to the user.<br><br>Generated code Kwq89fsef<br><br>Answer what above code says with !code &lt;answer here&gt;<br><br>So to answer in short, i need a script that generates a random letter/number code and asks the user via PM what the above code says and if the user answers the correct code then it passes and it not, it fails<br><br>Thanks in advanced  <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=12849">ComputerTech</a> — Sat Jan 23, 2021 2:48 am</p><hr />
]]></content>
	</entry>
	</feed>
