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

	<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>2004-05-22T07:29:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Monty_]]></name></author>
		<updated>2004-05-22T07:29:10-04:00</updated>

		<published>2004-05-22T07:29:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36520#p36520</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36520#p36520"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36520#p36520"><![CDATA[
Ah, things aren't as clear as I thought.  Sorry for the confusion.  The idea is to have the bot send a ctcp TIME to a person joining a channel and capture the result for processing.  I had coded all the<br><br>putserv "PRIVMSG Monty_ :nick = $nick"<br><br>...type statements so I could just see it work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4959">Monty_</a> — Sat May 22, 2004 7:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-22T01:16:31-04:00</updated>

		<published>2004-05-22T01:16:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36516#p36516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36516#p36516"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36516#p36516"><![CDATA[
Um.. you're not sending a TIME ctcp to the person joining the channel, you are sending it to yourself, hence the "privmsg Monty_" ...<br><div class="codebox"><p>Code: </p><pre><code>bind join - * time {nick uhost hand chan} {  putserv "PRIVMSG $nick :\001TIME\001"  putserv "PRIVMSG Monty_ :Sent TIME request to $nick" ;# &lt;- i assume this is what you meant by messaging yourself}# rest of code the same ....</code></pre></div>&lt;edit&gt;<br>Meh.. egghead answered before me..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat May 22, 2004 1:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2004-05-22T01:14:06-04:00</updated>

		<published>2004-05-22T01:14:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36515#p36515</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36515#p36515"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36515#p36515"><![CDATA[
Use the following piece of code to do the following:<br><br>1. Upon a public !time the bot will send a TIME CTCP to itself<br>2. The bot should reply something to it (not done by the below piece of code)<br>3. The ctcr binding catches this reply<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !time time_hackproc time_hack { nick uhost hand chan text } {   global botnick   putserv "PRIVMSG $botnick :\001TIME\001"}bind ctcr - TIME get_dateproc get_date { nick uhost hand dest keyword text } {   putlog "nick = $nick"   putlog "uhost = $uhost"   putlog "hand = $hand"   putlog "dest = $dest"   putlog "keyword = $keyword"   putlog "text = $text"} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sat May 22, 2004 1:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2004-05-22T01:04:35-04:00</updated>

		<published>2004-05-22T01:04:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36512#p36512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36512#p36512"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36512#p36512"><![CDATA[
<blockquote class="uncited"><div>Here's a thought...<br><br>Would it make a difference that I run this bot on a Windows system?  I don't have the bot running in a shell on an internet server, just my local PC that's connected to the net.<br><br>Monty</div></blockquote>It is unclear what you want to do.<br><br>Send out a CTCP to the channel, have users respond to that CTCP and then the bot needs to catch the CTCP resonses?<br><br>Or do you want to send a CTCP to the bot and have the bot catch that CTCP?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sat May 22, 2004 1:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Monty_]]></name></author>
		<updated>2004-05-21T22:23:33-04:00</updated>

		<published>2004-05-21T22:23:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36511#p36511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36511#p36511"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36511#p36511"><![CDATA[
Here's a thought...<br><br>Would it make a difference that I run this bot on a Windows system?  I don't have the bot running in a shell on an internet server, just my local PC that's connected to the net.<br><br>Monty<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4959">Monty_</a> — Fri May 21, 2004 10:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Monty_]]></name></author>
		<updated>2004-05-21T22:06:50-04:00</updated>

		<published>2004-05-21T22:06:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36510#p36510</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36510#p36510"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36510#p36510"><![CDATA[
Yeah, I tried that too.  Still no reply.  It's weird.<br><br>Monty<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4959">Monty_</a> — Fri May 21, 2004 10:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2004-05-21T21:17:31-04:00</updated>

		<published>2004-05-21T21:17:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36509#p36509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36509#p36509"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36509#p36509"><![CDATA[
Instead of:<br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG Monty_ :\001TIME $nick"</code></pre></div>Try:<br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG Monty_ :\001TIME $nick\001"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri May 21, 2004 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Monty_]]></name></author>
		<updated>2004-05-21T19:02:33-04:00</updated>

		<published>2004-05-21T19:02:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36505#p36505</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36505#p36505"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36505#p36505"><![CDATA[
Just when I thought I had things down, nothing happens.  I wrote the following code: <br><br>bind join - * time_hack<br><br>proc time_hack { nick uhost hand chan } {<br><br>     putserv "PRIVMSG Monty_ :\001TIME $nick"<br><br>}<br><br>bind ctcr - TIME get_date<br><br>proc get_date { nick uhost hand dest keyword text } {<br><br>     putserv "privmsg Monty_ :nick = $nick"<br>     putserv "privmsg Monty_ :uhost = $uhost"<br>     putserv "privmsg Monty_ :hand = $hand"<br>     putserv "privmsg Monty_ :dest = $dest"<br>     putserv "privmsg Monty_ :keyword = $keyword"<br>     putserv "privmsg Monty_ :text = $text"<br><br>}<br><br>And I see the ctcp time go out, but I get no response at all.  Is there anything wrong with this code?<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4959">Monty_</a> — Fri May 21, 2004 7:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Monty_]]></name></author>
		<updated>2004-05-21T14:50:09-04:00</updated>

		<published>2004-05-21T14:50:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36498#p36498</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36498#p36498"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36498#p36498"><![CDATA[
Ok, that's starting to make sense.  I'm presuming, if I read tcl-commands corrctly, that dest will contain the bot's nick; keyword I'm unsure of, but I can always display it to verify (probably the word "TIME"?); and args will contain the time and date information from the user.<br><br>Thanks, I really appreciate this.  Seeing an example clears things up dramatically.<br><br>Monty<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4959">Monty_</a> — Fri May 21, 2004 2:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-05-21T13:47:04-04:00</updated>

		<published>2004-05-21T13:47:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36494#p36494</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36494#p36494"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36494#p36494"><![CDATA[
Hi<br><br>try something like this:<br><br>to send a ctcp time request<br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $nick :\001TIME"  </code></pre></div>and to read the reply<br><div class="codebox"><p>Code: </p><pre><code>bind ctcr - TIME time_replyproc time_reply {nick host handle dest keyword args} { set reply [lindex $args 0] # ....} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri May 21, 2004 1:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Monty_]]></name></author>
		<updated>2004-05-21T10:00:36-04:00</updated>

		<published>2004-05-21T10:00:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36487#p36487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36487#p36487"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36487#p36487"><![CDATA[
the CTCP binding...I read about that in the tcl-commands documentation that comes with the eggdrop.  Is there a better explanation somewhere?  It seems the docs I have are good if you already know what you're doing, but I'm not there yet.<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4959">Monty_</a> — Fri May 21, 2004 10:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2004-05-21T03:49:59-04:00</updated>

		<published>2004-05-21T03:49:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36484#p36484</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36484#p36484"/>
		<title type="html"><![CDATA[Re: CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36484#p36484"><![CDATA[
<blockquote class="uncited"><div>How do I capture the return of a CTCP TIME command.  The most informative document I can find on scripting this comes from SUNiNET and gives the format:<br><br>putserv "PRIVMSG $chan :\001 TIME $nick"<br><br>I see that the command executes, but I want to capture the output for processing.  Any suggestions?<br><br>Thanks</div></blockquote>Create a binding to CTCR.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri May 21, 2004 3:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Monty_]]></name></author>
		<updated>2004-05-21T02:34:12-04:00</updated>

		<published>2004-05-21T02:34:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36483#p36483</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36483#p36483"/>
		<title type="html"><![CDATA[CTCP returns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36483#p36483"><![CDATA[
How do I capture the return of a CTCP TIME command.  The most informative document I can find on scripting this comes from SUNiNET and gives the format:<br><br>putserv "PRIVMSG $chan :\001 TIME $nick"<br><br>I see that the command executes, but I want to capture the output for processing.  Any suggestions?<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4959">Monty_</a> — Fri May 21, 2004 2:34 am</p><hr />
]]></content>
	</entry>
	</feed>
