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

	<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-01-09T16:05:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-01-09T16:05:12-04:00</updated>

		<published>2003-01-09T16:05:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15097#p15097</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15097#p15097"/>
		<title type="html"><![CDATA[My own Dal.net services need minor help ALMOST DONE!!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15097#p15097"><![CDATA[
hmm I tried adding a whole proc to ctcr, so ctcr, is just that the reply?<br><br>so life bind ctcr to my op command will make trigger the op command on the reply?<br><br>Ill give that a go.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Thu Jan 09, 2003 4:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-08T17:46:15-04:00</updated>

		<published>2003-01-08T17:46:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15036#p15036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15036#p15036"/>
		<title type="html"><![CDATA[My own Dal.net services need minor help ALMOST DONE!!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15036#p15036"><![CDATA[
<blockquote class="uncited"><div>bind ctcr - "PING" chanserv:returnping</div></blockquote>The best way to do things.<br><br>Setup a timer, that will activate after 30 seconds. The timer command returns a timer ID string, you will need to store this for simplicity.<br><br>Now, create a list, with all the lines you wish to send to the server, if chanserv is alive.<br><br>Place both the items above, in a global variable, so they can be read later.<br><br>If a ping is returned in under 30 seconds, the code that exacutes, should kill the timer, with the stored timer ID, and then send the details to the server.<br><br>If the ping times out, make the command the timer calls, delete the stored details, so that you are not sending stale messages later.<br><br>There are many ways to go abotu doing the various tasks, the one above, is the most versitile, as it can be used to send other information to chanserv, like invite requests, unban requests and so on, while checking to see if chanserv is there first.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Jan 08, 2003 5:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-08T17:29:05-04:00</updated>

		<published>2003-01-08T17:29:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15033#p15033</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15033#p15033"/>
		<title type="html"><![CDATA[My own Dal.net services need minor help ALMOST DONE!!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15033#p15033"><![CDATA[
bind ctcr - "*error*" services_op<br><br>^^ you tried that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jan 08, 2003 5:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-01-08T15:19:24-04:00</updated>

		<published>2003-01-08T15:19:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15026#p15026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15026#p15026"/>
		<title type="html"><![CDATA[My own Dal.net services need minor help ALMOST DONE!!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15026#p15026"><![CDATA[
So far I'v come to realize, the proc im using doesn't ask for a return value, so that's when I searched the forum for "ping". I found a script by PPSlim, that uses ctcr, which is the reply. I'v added onto the script to add public commands since the bot is +R if we can't dcc it and it needs a quick op to make it identify then op, thats about all. However im still using the "error" as the way since I can't return the ping. If you ping just "chanserv" instead of "<a href="mailto:chanserv@services.dal.net">chanserv@services.dal.net</a>" you get an error. I used that error to say chanserv is alive. I'd really like to remove this "duct tape" and make him op when a ping reply is returned.. Thats where I need the help on how to return a ping reply and if that ping reply then trigger the proc.. Here is the tcl as of now.<br><div class="codebox"><p>Code: </p><pre><code>set nickpass "mychan"set channame "mychan"set nickserv "nickserv@services.dal.net"set chanserv "chanserv@services.dal.net"set blah "!"set error "Error! /msg ChanServ is no longer supported. Use /msg chanserv@services.dal.net or /chanserv instead"bind notc - "*This nick is owned by someone else*" services_identbind notc - "*Password accepted*" services_pingbind notc - "*Error*" services_opbind notc - "*You do not have access to op people*" services_identbind time - "5 * *" services_checkbind time - "10 * *" services_checkbind time - "15 * *" services_checkbind time - "20 * *" services_checkbind time - "25 * *" services_checkbind time - "30 * *" services_checkbind time - "35 * *" services_checkbind time - "40 * *" services_checkbind time - "45 * *" services_checkbind time - "50 * *" services_checkbind time - "55 * *" services_checkbind time - "00 * *" services_checkbind pub n|n ${blah}identfiy pub:identbind pub n|n ${blah}op pub:opproc services_ident { nick uhost hand args } {global botnick nickpass nickservputlog "Services: Trying to identify with nickserv"putserv "PRIVMSG $nickserv :identify $nickpass"}proc services_ping {nick uhost hand args} {putlog "PING: Trying to ping chanserv"putserv "PRIVMSG chanserv :\001PING chanserv"}proc services_op {nick uhost hand args} {global botnick chanserv channameputlog "Trying to op myself"putserv "PRIVMSG $chanserv :OP $channame $botnick"}proc services_check {nick uhost hand chan args} {global botnick channame chanserv errorif {![botisop $channame] &amp;&amp; [putserv "PRIVMSG chanserv :\001PING chanserv"] == $error } {putlog "Lost ops trying to opmyself."putserv "PRIVMSG $chanserv :OP $channame $botnick" }}proc pub:ident {nick host hand chan text} {global botnick nickpass nickservputserv "PRIVMSG $nickserv :identify $nickpass"}proc pub:op {nick host hand chan text} {global botnick chanserv channameputserv "PRIVMSG $chanserv :OP $channame $botnick"}</code></pre></div>I have tried quite a few things but now im totally lost as to how to return that reply. If I could find an example of a script that pings someone then if the ping reply returns the script does "blah" then I'd be good to go..<br><br>Could really use some help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Wed Jan 08, 2003 3:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2002-12-24T05:35:39-04:00</updated>

		<published>2002-12-24T05:35:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14557#p14557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14557#p14557"/>
		<title type="html"><![CDATA[My own Dal.net services need minor help ALMOST DONE!!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14557#p14557"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set nickpass "pass"set channame "chan"set nickserv "nickserv@services.dal.net"set chanserv "chanserv@services.dal.net"bind notc - "*This nick is owned by someone else*" services_identbind notc - "*Password accepted*" services_pingbind notc - "*Error*" services_opbind time - "5 * *" services_checkbind time - "10 * *" services_checkbind time - "15 * *" services_checkbind time - "20 * *" services_checkbind time - "25 * *" services_checkbind time - "30 * *" services_checkbind time - "35 * *" services_checkbind time - "40 * *" services_checkbind time - "45 * *" services_checkbind time - "50 * *" services_checkbind time - "55 * *" services_checkbind time - "00 * *" services_checkproc services_ident { nick uhost hand args } { global botnick nickpass nickservputlog "Services: Trying to identify with nickserv"putserv "PRIVMSG $nickserv :identify $nickpass"}proc services_ping {nick uhost hand args} {putlog "PING: Trying to ping chanserv"putserv "PRIVMSG chanserv :\001PING chanserv"}proc services_op {nick uhost hand args} {global botnick chanserv channameputlog "Trying to op myself"putserv "PRIVMSG $chanserv :OP $channame $botnick"}proc services_check {nick uhost hand chan args} { global botnick chanserv channameputlog "Lost ops trying to opmyself."if {![botisop $channame] &amp;&amp; [putserv "PRIVMSG $chanserv :\001PING $nick"] == &lt; 25}  {putserv "PRIVMSG $chanserv :OP $channame $botnick" }}</code></pre></div>that one line where I ping chanserv <div class="codebox"><p>Code: </p><pre><code>if {![botisop $channame] &amp;&amp; [putserv "PRIVMSG $chanserv :\001PING $nick"] == &lt; 25}  {</code></pre></div>  <br>is a test to see if that works since I can't figure out how to make it finish the proc since I can't see that to == 1 <br><br><br>So any idea's of how to make the bot finish the proc if the ping returns??<br><br><br>The reply's I get from chanserv say its 5:00 I get <br><br>&lt;CustomerServ|ce&gt; [05:00] CTCP reply PING: 00 from ChanServ (<a href="mailto:service@dal.net">service@dal.net</a>) to CustomerServ|ce<br> if its 5:05 the reply will be 05 and so on<br><br>Ok well I seem to have fixed the reply. This is now the reply<br><br>&lt;CustomerServ|ce&gt; [06:20] CTCP reply PING: <a href="mailto:chanserv@services.dal.net">chanserv@services.dal.net</a> from ChanServ (<a href="mailto:service@dal.net">service@dal.net</a>) to CustomerServ|ce<br><br>How do I make that trigger the proc to go forward??<br><br>I have tried if {![botisop $channame] &amp;&amp; [putserv "PRIVMSG $chanserv :\001PING $nick"] == :\001PING} {<br>no go<br>if {![botisop $channame] &amp;&amp; [putserv "PRIVMSG $chanserv :\001PING $nick"] == PING} {<br>if {![botisop $channame] &amp;&amp; [putserv "PRIVMSG $chanserv :\001PING $nick"] == 1} {<br>still no go agh, im sooo close.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Tue Dec 24, 2002 5:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2002-12-24T04:29:33-04:00</updated>

		<published>2002-12-24T04:29:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14556#p14556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14556#p14556"/>
		<title type="html"><![CDATA[My own Dal.net services need minor help ALMOST DONE!!!!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14556#p14556"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set nickpass "password"set channame "#channel"set nickserv "nickserv@services.dal.net"set chanserv "chanserv@services.dal.net"bind time - "10 * *" services_checkbind notc - "*You do not have access to op people*" services_ident bind notc - "*Password accepted*" services_acceptproc services_check {nick uhost hand chan args} { global botnick chanserv channameif {![botisop $channame]} {putlog "Uhhhh im not oped trying to op"putserv "PRIVMSG $chanserv :OP $channame $botnick" }}proc services_ident { nick uhost hand args } { global botnick nickpass nickservputlog "Services: Trying to identify with nickserv"putserv "PRIVMSG $nickserv :identify $nickpass"proc services_accept { nick uhost hand args } { global botnick chanserv channameputlog "Trying to op myself"putserv "PRIVMSG $chanserv :OP $channame $botnick" } }putlog "DALnetServices Version 1.0 loaded by Kyle@DALnet &amp; ^JustinTime^@DALnet"</code></pre></div>The line where he idents to chanserv <blockquote class="uncited"><div>if {![botisop $channame]}</div></blockquote> <br><br>We want to make him ping chaserv and if chanserv returns with the message Error then to go ahead and send the command to op meaning chanserv isn't down/lagged. <br><br>The problem with other scripts is they don't check to see if chanserv is lagged and if its lagged the script hammers the hell out of chanserv.<br><br>Me and Kyle are new to tcl and we did this together, were sooo close to being finished. It works now as is, but I'd really like to add in those "protections".<br><br>I appreciate all help<br><br>I figured I should explain more hence this edit, when you ping just "chanserv" without the extension like "<a href="mailto:chanserv@services.dal.net">chanserv@services.dal.net</a>" you get an an error like ChanServ- Error! "/msg ChanServ" is no longer supported. Use "/msg <a href="mailto:chanserv@services.dal.net">chanserv@services.dal.net</a>" or "/chanserv" instead.<br><br>or I could actually ping <a href="mailto:chanserv@services.dal.net">chanserv@services.dal.net</a> and get a ping reply.<br><br>So either make him only execute the command to ophimself when you get that "error" or when you get an actual ping reply from chanserv, it doesnt matter each will say that chanserv is a alive and kicking. If he doesnt get that reply we would like him to just not do anything until the next time check, once were done he will check say every 10 mins.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Tue Dec 24, 2002 4:29 am</p><hr />
]]></content>
	</entry>
	</feed>
