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

	<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>2020-06-11T12:46:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-06-11T12:46:28-04:00</updated>

		<published>2020-06-11T12:46:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108541#p108541</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108541#p108541"/>
		<title type="html"><![CDATA[Info Collector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108541#p108541"><![CDATA[
so just leave the email line out?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Thu Jun 11, 2020 12:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-06-11T10:54:11-04:00</updated>

		<published>2020-06-11T10:54:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108540#p108540</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108540#p108540"/>
		<title type="html"><![CDATA[Info Collector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108540#p108540"><![CDATA[
No problem.<br><br>The e-mail validator isn't quite <em class="text-italics">fool proof</em> cos has a problem with domain names, would be too much of a hassle to make it fully functional.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jun 11, 2020 10:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-06-11T09:18:07-04:00</updated>

		<published>2020-06-11T09:18:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108539#p108539</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108539#p108539"/>
		<title type="html"><![CDATA[Info Collector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108539#p108539"><![CDATA[
Oh and Hey there Operator873 welcome to the eggdrop forum, and thank you very much for your script i appreciate it. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> seems good to me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>and caesar your script worked awesome as usual your work never fails thanks again i'll post a final version of the script, with the valid email line <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Thu Jun 11, 2020 9:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-06-11T05:55:03-04:00</updated>

		<published>2020-06-11T05:55:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108538#p108538</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108538#p108538"/>
		<title type="html"><![CDATA[Info Collector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108538#p108538"><![CDATA[
Look's awesome will try it after lunch, thanks so much caesar your help is always appreciated <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> — Thu Jun 11, 2020 5:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-06-11T01:45:15-04:00</updated>

		<published>2020-06-11T01:45:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108537#p108537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108537#p108537"/>
		<title type="html"><![CDATA[Info Collector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108537#p108537"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc randPass {len {min 33} {max 125}} {return [subst [string repeat {[format %c  [expr int(rand()*($max-$min+1)) + $min]]} $len]]}bind pub -|- !request pub:requestproc pub:request {nick uhost hand chan text} {if {[scan $text {%s%s} user email] != 2} {putserv "NOTICE $nick :usage: !request user email"return}set pass [randPass 10]puthelp "NOTICE $nick :You have requested a Bnc/Znc with the info that you provided: username: $user, e-mail: $email. A random password \002$pass\002 was generated for you that you should change later." set fh [open "/home/computertech/tech/scripts/add.txt" "a+"]puts $fh "$user $email $pass"close $fh}</code></pre></div>This generates a password from the ASCII table from element 33 ("!" symbol) up to 125 ("}" symbol). You can change the range by telling <em class="text-italics">randPass</em> the min and the max it should grab and generate from the ASCII table.<br><br>If the file doesn't exist then it will be created (empty file) and the initial access position will be set to the end of the file.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jun 11, 2020 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Operator873]]></name></author>
		<updated>2020-06-11T00:11:29-04:00</updated>

		<published>2020-06-11T00:11:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108536#p108536</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108536#p108536"/>
		<title type="html"><![CDATA[Info Collector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108536#p108536"><![CDATA[
Hello ComputerTech.<br><br>I built this largely based on the scripts already written for you. It includes a random password generator. It looks like there is some of this conversation I can't see so I may be missing something.<br><br>Anyway, I tested it and it works well. I borrowed randomRangeString from the TCLers Wiki<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- "!request" pub:registerproc randomRangeString {length {chars "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"}} {    set range [expr {[string length $chars]-1}]    set txt ""    for {set i 0} {$i &lt; $length} {incr i} {       set pos [expr {int(rand()*$range)}]       append txt [string range $chars $pos $pos]    }    return $txt}proc pub:register {nick uhost hand chan text} {if {[scan $text {%s%s} user email] != 2} {putserv "NOTICE $nick :usage: !request user email"return}set newPass [randomRangeString 16]set newUser [lindex [split $text] 0]set newEmail [lindex [split $text] 1]puthelp "NOTICE $nick :You Have Requested A Bnc/Znc. Username is: $newUser / Your email is: $newEmail."puthelp "NOTICE $nick :Your temporary password is: $newPass"set outFile [open /home/computertech/tech/scripts/add.txt {RDWR CREAT APPEND}]puts $outFile "$newUser $newEmail $newPass"close $outFilereturn}</code></pre></div>Edit: changed my file location to yours<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12871">Operator873</a> — Thu Jun 11, 2020 12:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-06-10T13:37:53-04:00</updated>

		<published>2020-06-10T13:37:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108535#p108535</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108535#p108535"/>
		<title type="html"><![CDATA[Info Collector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108535#p108535"><![CDATA[
alright so i figured a random password script, now just need to add the valid email line <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>and this <br><br><blockquote class="uncited"><div>You need to alter the code so the '!request' part only sends out that private message to the person issuing the command on the channel and make a new function that would listen on a 'bind msg' to do the actual recording that is done at the moment inside the public !request one. </div></blockquote>but if course if you would like to add a password generator that would be awesome also, caesar. mine might not be that a good heh  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Wed Jun 10, 2020 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-06-10T07:02:42-04:00</updated>

		<published>2020-06-10T07:02:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108531#p108531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108531#p108531"/>
		<title type="html"><![CDATA[Info Collector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108531#p108531"><![CDATA[
Ah, i like both of your idea's,<br>the email one i will add right away.<br><br>the random password one, hmm not to sure how to do it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Wed Jun 10, 2020 7:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-06-10T01:07:57-04:00</updated>

		<published>2020-06-10T01:07:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108527#p108527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108527#p108527"/>
		<title type="html"><![CDATA[Info Collector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108527#p108527"><![CDATA[
The <em class="text-italics">putserv "notice $nick</em> part is responsible for where is the message going to be sent and in what format. In this given example it will be sent to $nick as a notice. If you want to make it a private message (PM) then change 'notice' into 'privmsg'.<br><br>You need to alter the code so the '!request' part only sends out that private message to the person issuing the command on the channel and make a new function that would listen on a 'bind msg' to do the actual recording that is done at the moment inside the public <em class="text-italics">!request</em> one.<br><br>I would honestly generate a random password and tell the user to change it after he/she connects to Bnc/Znc.<br><br>Instead of the double 'string to lower':<div class="codebox"><p>Code: </p><pre><code>if {[string tolower $chan] ne [string tolower $::eTxFile(chan)]} { return } </code></pre></div>why not go with <em class="text-italics">string equal</em> that's already built in:<div class="codebox"><p>Code: </p><pre><code>if {![string equal -nocase $chan $::eTxFile(chan)]} { return } </code></pre></div>Edit: If you want to somewhat validate the e-mails I'd use something like:<div class="codebox"><p>Code: </p><pre><code>regexp {[a-z0-9!#$%&amp;'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&amp;'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?} $mail</code></pre></div>that will return 0 for invalid and 1 for valid e-mail address.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 10, 2020 1:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-06-09T19:26:33-04:00</updated>

		<published>2020-06-09T19:26:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108525#p108525</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108525#p108525"/>
		<title type="html"><![CDATA[Info Collector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108525#p108525"><![CDATA[
so simo helped me with a nice script <br><div class="codebox"><p>Code: </p><pre><code>    set eTxFile(file) {/home/computertech/tech/scripts/add.txt}        bind pub -|- !request pub:register    proc pub:register {nick uhost hand chan text} {       if {[scan $text {%s%s%s} user password email] != 3} {          putserv "notice $nick :usage: !request user password email"          return       }    if {[string tolower $chan] ne [string tolower $::eTxFile(chan)]} { return }      set tf $::eTxFile(file)      if {![file exists $tf]} {        puthelp "notice $nick :Text file does not exist: $tf"        return      }      puthelp "notice $nick :You Have Requested A Bnc/Znc, This the info you provided $text "      set id [open $tf a]      puts $id $text      close $id      return     }</code></pre></div>so now all i need is this one thing<br>instead of users typing openly !request username password email<br><br>i would like them to type it into the private message of the bot<br>And Not /msg botnick username password email<br>but rather the bot will pm the user saying what to do then the user will type !request username password email <br><br>would bind msg do for this? because i tried it but it only seems to work when i did /msg botnick message <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Tue Jun 09, 2020 7:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-06-08T05:08:04-04:00</updated>

		<published>2020-06-08T05:08:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108511#p108511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108511#p108511"/>
		<title type="html"><![CDATA[Info Collector Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108511#p108511"><![CDATA[
Hey all so i am looking for a script that does the following<div class="codebox"><p>Code: </p><pre><code>guest types !requestbot pms user asking 3 questions  username,password,emailuser pms bot username,password,emailbot then saves that username,password,email into a text file</code></pre></div>and thats all  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>appreciate all who help <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> — Mon Jun 08, 2020 5:08 am</p><hr />
]]></content>
	</entry>
	</feed>
