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

	<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>2003-08-13T01:22:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-08-13T01:22:54-04:00</updated>

		<published>2003-08-13T01:22:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24805#p24805</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24805#p24805"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24805#p24805"><![CDATA[
oh ok sorry and tnx verry mutch <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>oh no its a non login telnet session its like a cat window <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> to test it you know, its a telnet session that opens up and closes down on disconnecting from it i just run it every time i disconnect so i can see what the bot is doing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>ima read up on it on what you sad vwait when i don't understand something ill let you know if you don't mind <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=3151">Ofloo</a> — Wed Aug 13, 2003 1:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-08-12T17:19:28-04:00</updated>

		<published>2003-08-12T17:19:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24792#p24792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24792#p24792"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24792#p24792"><![CDATA[
I just gave you that code to push you in the right direction, I never said it would work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>but... yes, it's supposed to be <strong class="text-strong">if {![eof $x]} {</strong> cause the proc is called once everytime the fileid becomes writeable... <br>if you connect to an external telenet from your bot, it will have to login. You need to add some checks in the second proc to see if it asks for login-name ....etc<br><br>also, add this line right below the first fileevent:<div class="codebox"><p>Code: </p><pre><code>fileveevnt $execute readable [list newproc $execute] </code></pre></div>also, if you intend to keep the connection open until you tell it to shutdown, you can add a <strong class="text-strong">vwait</strong> and make it wait forever (waiting for a varaible that'snever set)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Aug 12, 2003 5:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-08-12T10:24:12-04:00</updated>

		<published>2003-08-12T10:24:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24768#p24768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24768#p24768"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24768#p24768"><![CDATA[
hmm well its not doing anything i do understand what you wrote and i must admit its nice didn't even know you could call a proc in an other proc and like you used args .. (x) didn't know that either so if i understand write $x = $execute but .. for instance this doesn't work either<br><br>also isn't this supposed to be while ? <br><blockquote class="uncited"><div>if {![eof $x]} {</div></blockquote>didn't change it while tho just not sur why its if<br><blockquote class="uncited"><div>proc test:pub {nick uhost hand chan arg} { <br>  set execute [socket localhost 5068] <br>  puts $execute "test.bat" <br>}</div></blockquote>and it should cause i open up a cat window to receive connections so i can see what its doing and if it would put test.bat as it should it would show on the session and it doesn't .. so is there an other way of putting stuff into the channel ... ? am i doing some thin wrong..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Aug 12, 2003 10:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-08-12T09:21:41-04:00</updated>

		<published>2003-08-12T09:21:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24762#p24762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24762#p24762"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24762#p24762"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind PUB n !test test:pub proc test:pub {nick uhost hand chan arg} {   set execute [socket localhost 5068]  fileveevnt $execute writeable [list newproc $execute]}proc newproc {x} {  fconfigure $x -blocking 0 -buffering line  if {![eof $x]} {    gets $x line    if {"$line" == "*Copyright*"} {       puts $execute "test.bat"     }  } else {    filevent $x writeable {}  }}</code></pre></div>this should give you some ideas<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Aug 12, 2003 9:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-08-12T09:03:30-04:00</updated>

		<published>2003-08-12T09:03:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24760#p24760</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24760#p24760"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24760#p24760"><![CDATA[
just test with this part <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> but there is something wrong .. <br><div class="codebox"><p>Code: </p><pre><code>bind PUB n !test test:pubproc test:pub {nick uhost hand chan arg} {  set execute [socket localhost 5068]  foreach line [split [read $execute] \n] {    if {"$line" == "*Copyright*"} {      puts $execute "test.bat"    }  }}</code></pre></div>it won't read it and if it doesn't read or send .. am i doing something wrong cause ive read socket like 20 times but can't see what it is i am missing ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Aug 12, 2003 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-08-07T15:24:21-04:00</updated>

		<published>2003-08-07T15:24:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24533#p24533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24533#p24533"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24533#p24533"><![CDATA[
It's automatically set based on the number of posts you have<br>1-49 = voice<br>50-99 = op<br>99-499 = master<br>&gt;500 = revered one<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Aug 07, 2003 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Carnage69]]></name></author>
		<updated>2003-08-06T17:07:00-04:00</updated>

		<published>2003-08-06T17:07:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24468#p24468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24468#p24468"/>
		<title type="html"><![CDATA[help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24468#p24468"><![CDATA[
what does this op crap mean i was a voice now i am a op??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3299">Carnage69</a> — Wed Aug 06, 2003 5:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-08-06T11:13:00-04:00</updated>

		<published>2003-08-06T11:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24457#p24457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24457#p24457"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24457#p24457"><![CDATA[
LOL np hehe just wanted to help out hehe<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Aug 06, 2003 11:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Carnage69]]></name></author>
		<updated>2003-08-06T01:23:10-04:00</updated>

		<published>2003-08-06T01:23:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24440#p24440</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24440#p24440"/>
		<title type="html"><![CDATA[i really dident read]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24440#p24440"><![CDATA[
i dident read it all i saw was telnet and i come running <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=3299">Carnage69</a> — Wed Aug 06, 2003 1:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-08-06T01:21:29-04:00</updated>

		<published>2003-08-06T01:21:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24439#p24439</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24439#p24439"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24439#p24439"><![CDATA[
i think you didn't read what i asked or didn't understand <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> its not about that kind of telnet session<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Aug 06, 2003 1:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Carnage69]]></name></author>
		<updated>2003-08-06T00:27:58-04:00</updated>

		<published>2003-08-06T00:27:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24436#p24436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24436#p24436"/>
		<title type="html"><![CDATA[really]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24436#p24436"><![CDATA[
i really dont telnet to my bot that mutch i know should more couse i have a roughter and i cant dcc chat so all i can do it make public commands it is dumb but o well...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3299">Carnage69</a> — Wed Aug 06, 2003 12:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-08-05T00:55:33-04:00</updated>

		<published>2003-08-05T00:55:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24391#p24391</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24391#p24391"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24391#p24391"><![CDATA[
could i read contents of telnet from an exe with socket ? nice ill give it a try tnx for the suggestion <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> ima get back to you on that once ive read on it hehe so i can ask more questions in case i have any <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=3151">Ofloo</a> — Tue Aug 05, 2003 12:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-08-04T12:16:35-04:00</updated>

		<published>2003-08-04T12:16:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24379#p24379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24379#p24379"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24379#p24379"><![CDATA[
why not use the <a href="http://tcl.activestate.com/man/tcl8.4/TclCmd/socket.htm" class="postlink">socket</a> command instead? I like it alot better, but that's my opinion <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>Just use <a href="http://tcl.activestate.com/man/tcl8.4/TclCmd/fileevent.htm" class="postlink">fileevent</a> readable/writeable to catch/put lines/commands<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon Aug 04, 2003 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-08-04T10:47:59-04:00</updated>

		<published>2003-08-04T10:47:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24374#p24374</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24374#p24374"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24374#p24374"><![CDATA[
ok how do i use this ? with binds and stuff there seems nothing on it in the help pages<blockquote class="uncited"><div>13. TCP connections<br><br>Eggdrop allows you to make two types of TCP ("telnet") connections: outgoing and incoming. For an outgoing connection, you specify the remote host and port to connect to. For an incoming connection, you specify a port to listen on.<br><br>All of the connections are *event driven*. This means that the bot will trigger your procs when something happens on the connection, and your proc is expected to return as soon as possible. Waiting in a proc for more input is a no-no.<br><br>To initiate an outgoing connection, use:<br><br>set idx [connect &lt;hostname&gt; &lt;port&gt;]<br><br>$idx now contains a new DCC entry for the outgoing connection.<br><br>All connections use non-blocking (commonly called "asynchronous", which is a misnomer) I/O. Without going into a big song and dance about asynchronous I/O, what this means to you is:<br><br>assume the connection succeeded immediately<br><br>if the connection failed, an EOF will arrive for that idx<br><br>The only time a 'connect' will return an error is if you give it a hostname that can't be resolved (this is considered a "DNS error"). Otherwise, it will appear to have succeeded. If the connection failed, you will immediately get an EOF.<br><br>Right after doing a 'connect' call, you should set up a 'control' for the new idx (see the section above). From then on, the connection will act just like a normal DCC connection that has been put under the control of a script. If you ever return "1" from the control proc (indicating that you want control to return to Eggdrop), the bot will just close the connection and dispose of it. Other commands that work on normal DCC connections, like 'killdcc' and 'putdcc', will work on this idx, too. The 'killdcc' command will fail with "invalid idx" if you attempt to use it on a closed socket.<br><br>To create a listen port, use:<br><br>listen &lt;port&gt; script &lt;proc&gt;<br><br>Procs should be declared as:<br><br>procname &lt;newidx&gt;<br><br>For example:<br><br>  listen 6687 script listen:grab<br><br>  proc listen:grab {newidx} {<br>    control $newidx listen:control<br>  }<br><br>When a new connection arrives in port 6687, Eggdrop will create a new idx for the connection. That idx is sent to 'listen:grab'. The proc immediately puts this idx under control. Once 'listen:grab' has been called, the idx behaves exactly like an outgoing connection would.<br><br>The best way to learn how to use these commands is to find a script that uses them and follow it carefully. However, hopefully this has given you a good start.<br><br>14. Match characters<br><br>Many of the bindings allow match characters in the arguments. Here are the four special characters:<br><br>?<br> matches any single character<br> <br>*<br> matches 0 or more characters of any type<br> <br>%<br> matches 0 or more non-space characters (can be used to match a single word)<br> <br>~<br> matches 1 or more space characters (can be used for whitespace between words)<br></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Aug 04, 2003 10:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-08-04T01:00:33-04:00</updated>

		<published>2003-08-04T01:00:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24358#p24358</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24358#p24358"/>
		<title type="html"><![CDATA[make bot answer on an external telnet session]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24358#p24358"><![CDATA[
i want to do this telnet into a shell, and on a event (text) that passes by i would like to put a command to that window like ... telnet into a shell or machine what ever and the session prompts for something to answer how could i make the bot answer this question ?<br><br>what command would i use ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Aug 04, 2003 1:00 am</p><hr />
]]></content>
	</entry>
	</feed>
