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.

"am i online?" script for lide.cz webchat

Old posts that have not been replied to for several years.
Locked
L
Lolita
Voice
Posts: 13
Joined: Sun Jul 24, 2005 4:11 pm

"am i online?" script for lide.cz webchat

Post by Lolita »

can someone please write scirpt which send "/m evilloli a" (to channel ... something like

Code: Select all

PRIVMSG #686450 :/m evilloli a
) and if it doesn't receive

Code: Select all

NOTICE #686450 :System: Uživatel(ka) evilloli není v žádné místnosti
back in one one minute it makes bot reconnect? and do this every 30 minutes
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

i suppose you speak czech:

dej primou adresu, kde se jak se zjisti, jestli je uzivatel online (http://chat.lide.cz/neco.php?nick=evilloli) nebo neco na ten zpusob. napsat script, kterej to z toho dostane je hracka

in english:

gimme full url adress where to check if user is online or offline
L
Lolita
Voice
Posts: 13
Joined: Sun Jul 24, 2005 4:11 pm

Post by Lolita »

dwickie wrote:i suppose you speak czech:

dej primou adresu, kde se jak se zjisti, jestli je uzivatel online (http://chat.lide.cz/neco.php?nick=evilloli) nebo neco na ten zpusob. napsat script, kterej to z toho dostane je hracka

in english:

gimme full url adress where to check if user is online or offline
ja to prave potrebuju zistovat takhle pres irc jak sem napsal PRIVMSG #686450 :/m evilloli a

no a kdyz neni (jakoze mi to vrati odpoved ze neni) tak zustat pripojenej a kdyz to tomu nevrati zadnou odpoved do minuty tak se reconnectnout (mam totiz shitnou irc gateway na lide.cz a obcas se to odpojuje), tak tohle je IMO jedinej pouzitelnej zpusob jak zistit jesli sem online

----
nothing in english, sorry (:
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

tak to uz vubec nechapu :)

ty chces aby na kanal #686450 posilal pravidelne kazdou minutu "/m evilloli a" a pokud nedostane tu odpoved do minuty, tak to neco udela? s tim ti neporadi, v tehle timerovskejch zalezitostech se vzdy ztratim :) zkus jim to napsat jeste jednou a anglicky a trosku srozumitelneji :)

english: try explain better :)
L
Lolita
Voice
Posts: 13
Joined: Sun Jul 24, 2005 4:11 pm

Post by Lolita »

huh tak znova odzacatku to popisu teda
kazdych 30 minut (nebo nastavitelnej cas no, to bude lepsi (: ) to posle na kanal #686450

Code: Select all

/m evilloli a
a pokud nedostane do minuty odpoved tak se reconnectne, nebo odpoji a znova pripoji (neznam ty tcl prikazy tomu)

netusim uz jak anglicky srozumitelneji to napsat ):



-------------------------------------------------------------
IN ENGLISH: (im trying to better explain (: )
i want script which every 30 minutes (or this interval can be configured) send to channel #686450 (this probably also can be configured)

Code: Select all

/m evilloli a
and if it do NOT see

Code: Select all

NOTICE #686450 :System: Uživatel(ka) evilloli není v žádné místnosti
in next 60 seconds it makes bot reconnect
-------------------------------------------------------------



[kdyztak to zkus napsat nak lip anglicky napsat ty, jestli si teda uz pochopil o co mi de ((:]
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

totok zkus

Code: Select all

# v kazdych xx:00 a xx:30 provede proceduru "checker"
bind time - "00,30 * * * *" checker
bind notc - * notcchecker

proc notcchecker {nick host handle text dest} {
  putlog "checking notice: $text"
  # pokud prvni slovo z notice je "System:" (nejde cela,
  # ma to asi problemy s diakritikou"), tak nastavi ::replied na 1
  if { [lindex [split $text] 0] == "System:" } {
    set ::replied 1
  }
}

proc checker { min hour day month year } {
  set ::replied 0
  # posle msg na kanal
  putquick "PRIVMSG #686450 :/m evilloli a"
  # a nastavi minutu timer, pokud ::replied bude 0, jumpne servery
  utimer 60 [list if {$::replied == "0"} {putlog "jumping servers";jump}] 
}

putlog "script loaded"
L
Lolita
Voice
Posts: 13
Joined: Sun Jul 24, 2005 4:11 pm

Post by Lolita »

no zadnou chybu to nepsalo zatim, tak doufam ze to teda bude fungovat

btw moh bys este udelat at to na ten kanal posle kazdych 30 minut "." - no proste tecku?

akorat nevim teda ten jump ... dal sem do servru dva stejny zasebou tak snad to pude (ono je celkem blby ze se obvykle odpojil tak po dvou dnech, takze se tezko zistuje jestli to pude no (: )

a dik!
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

Lolita wrote:no zadnou chybu to nepsalo zatim, tak doufam ze to teda bude fungovat

btw moh bys este udelat at to na ten kanal posle kazdych 30 minut "." - no proste tecku?
no kazdych 30 minut to posila to "/m evilloli a" tak jestli chces aby to posilalo tohle a tecku za tim, tak za

Code: Select all

  putquick "PRIVMSG #686450 :/m evilloli a"
pridej putquick "PRIVMSG #686450 :."
L
Lolita
Voice
Posts: 13
Joined: Sun Jul 24, 2005 4:11 pm

Post by Lolita »

aha lol, uz mi to nemysli, me slo o to ze to kazdych 45 minut vyhodi, ale nedoslo mi, ze kdyz to posle v 00 a 30, tak vlastne to vzdycky do 45 minut stihne poslat taky
L
Lolita
Voice
Posts: 13
Joined: Sun Jul 24, 2005 4:11 pm

Post by Lolita »

hmmm tak sem to zkousel takhle upraveny

Code: Select all

proc checker { min hour day month year } {
  set ::replied 0
  # posle msg na kanal
  putquick "PRIVMSG #686450 :/m evilloli a"
  putquick "PRIVMSG #686450 :."
  # a nastavi minutu timer, pokud ::replied bude 0, jumpne servery
  utimer 60 [list if {$::replied == "0"} {putlog "jumping servers";jump}]
}
a tu tecku to tam neposle .... takze to asi ani nezistuje, netusim jak se dela ten timer, neni chyba treba tam, ze se to vubec nespusti nikdy ta procedura? (ale to netusim fakt jen hadam)
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

a to /m evilloli a tam posle?
L
Lolita
Voice
Posts: 13
Joined: Sun Jul 24, 2005 4:11 pm

Post by Lolita »

no to na tom kanalu neni videt vubec (lide.cz prote ty lomitkovy nezobrazuje), ale v konzoli taky nic takovyho neni, ani mu nepride ta notice s odpovedi a ani se nereconnectne protoze mu neprisla

ale ten soubor s tim skriptem se nacte
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

:shock:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
d
dwickie
Halfop
Posts: 76
Joined: Sat Aug 21, 2004 8:53 am
Location: /pub/beer

Post by dwickie »

i dont still understand, why lide.cz - it is webchat server, no irc
L
Lolita
Voice
Posts: 13
Joined: Sun Jul 24, 2005 4:11 pm

Post by Lolita »

dwickie wrote:i dont still understand, why lide.cz - it is webchat server, no irc
yes, but when i want ie generate pisg stats from it i need eggdrop here. and i need somehow make sure im still connected
Locked