This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

check if services are online

Old posts that have not been replied to for several years.
Locked
N
NoZparker
Voice
Posts: 34
Joined: Mon Feb 16, 2004 6:07 am

check if services are online

Post by NoZparker »

on unrealircd the command to see if services are on line is /ison chanserv
if true the result is <<notice>> chanserv
if false the result is <<notice>> blank

first how would i send that command in a tcl
would it be putserv "privmsg #chan :\001ISON chanserv"
if not what would the command be

second How would i trap the result
would it be bind notc * *whatever* proc_name

or is it a raw reply
i'm lost

please point me in the right direction
N
NoZparker
Voice
Posts: 34
Joined: Mon Feb 16, 2004 6:07 am

Post by NoZparker »

even if it's a guess .....HELP!!!!!!!!
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

you send with putserv, but just plain 'putserv "ISON chanserv"'.
for the other things you will probably a bind to the notc or raw, depending on what the server responds to you.
If you read TCL-Commands.doc it will enlighten you how to do all this stuff (like seeing raw log, defining a proc to bind notc/raw etc.).
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
N
NoZparker
Voice
Posts: 34
Joined: Mon Feb 16, 2004 6:07 am

Post by NoZparker »

yes i tried the 'putserv "ISON chanserv"' but with two unkowns it make it damn difficult

ie not knowing if the putserv was working

i'll try that now and let ya know
N
NoZparker
Voice
Posts: 34
Joined: Mon Feb 16, 2004 6:07 am

Post by NoZparker »

whoooo hoooo

De Kus you is da man

got it sorted
for the benifit of others here is the the test tcl

bind dcc +m test look_for_services
bind raw - 303 raw_answer

proc look_for_services {hand idx args} {
putserv "ison chanserv"
putlog "message sent"
}
proc raw_answer {from keyword text} {
putlog "yes services are running"
}

many thanks to you

oh and btw a temperary .console +rv certainly helped to see what's going on
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

NoZparker wrote:De Kus you is da man
Did you notice her avatar?

You didn't check the contents of the reply...the raw will be triggered even if the nick is not on...also keep in mind that the bot will use ISON while trying to regain its nick.
Have you ever read "The Manual"?
User avatar
Linux
Halfop
Posts: 71
Joined: Sun Apr 04, 2004 4:20 pm
Location: Under The Sky

Post by Linux »

user wrote:
NoZparker wrote:De Kus you is da man
Did you notice her avatar?
lol, you know... i was wondering for a long time and now i get the answer that why you always be punched (in your avatar). :lol:
I'm an idiot, At least this one [bug] took about 5 minutes to find...
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

yeah, he should check if [lindex [split $text :] 1] != "" or even better if it is == "chanserv", if this is the only service you need ^-^.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
N
NoZparker
Voice
Posts: 34
Joined: Mon Feb 16, 2004 6:07 am

Post by NoZparker »

yeah like i said De Kus is da wo .... man (i did wonder about the girllie pic)

and what am i ... He He He !!! or her?.. actually i'm all man ... a big fat one.

anyways to the subject ..
yes i will be using if [lindex [split $text :] 1] == "chanserv"
along with a heap of other stuff so the bot can carry out duties in the absence of services.

and again thanks for your help



it's times like this i wish i had listened to what my dad used to say ....what was that ....don't know i didn't listen
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

user wrote:
NoZparker wrote:De Kus you is da man
Did you notice her avatar?
NoZparker wrote:yeah like i said De Kus is da wo .... man (i did wonder about the girllie pic)

and what am i ... He He He !!! or her?.. actually i'm all man ... a big fat one.
I dislike to go on off topic, but maybe I should make 2 things clear ^-^.
1st: I am a man
2nd: the girly in the avatar is Naga from Slayers ( http://pixelscapes.com/slayers/characters.html ). I will probably switch to one from Lina, because I made that avatar before I watched any episode :D.

so do me a favor and quit this topic here, I have plenty of space in my PM and mail box ^^.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Locked