Лог от проведената Eggdrop/TCL лекция на 2002/10/12 от 16:00
Написана и проведена от: Юлиян Петров (rhodie) и Станислав Захариев (sofit)
Специални благодарности към:
edi - за предоставеният терен за провеждане на лекцията
Blady - за support-а по време на лекцията
|IP| - за предоставеният лог
--> ircnewbie (~[email protected]) has joined #irchelp
<D`AGOSTINO> >15:52:45< *** Quits: jashdjkajdas (~[email protected]) (jashdjkajdas has no reason)
<Johny^Bravo> i ko tolkova...?
<zod> aham:)
<zod> Johny^Bravo?
<-- [VIP]AzZaZeL ([email protected]) has left #irchelp
<Johny^Bravo> zod slysjam?
<-- zod has quit (irc.telecoms.bg irc.evko.com)
<Nudy[g0ne]> leskiqta koga hte zsapo4neee
--> zod ([email protected]) has joined #irchelp
--- ircnewbie is now known as rhodie_
--- rhodie_ is now known as rhodie
--- CS sets modes [#irchelp +o rhodie]
--- rhodie is now known as ircnewbie
--- ircnewbie sets modes [#irchelp +o Blady]
--- CS sets modes [#irchelp -o Blady]
--> deus ([email protected]) has joined #irchelp
--- CS sets modes [#irchelp +o Blady]
<deus> re
<-- zod has quit (Leavin)
--- deus is now known as zod_
--- ircnewbie sets modes [#irchelp +v ide]
<zod_> towa unibg golemi shmekerii prawi;p
<ircnewbie> mtaham ..
<ircnewbie> ;b
<ircnewbie> mi mislq da zapo4wame ?
<ircnewbie> na latinica shte se wodi lekciqta
<zod_> yup:>
<ircnewbie> nqkakwi wyzrajeniq ?
<Johny^Bravo> shto bre zod_ ko ti e naprailo
<zod_> ne
<Johny^Bravo>
<Johny^Bravo> adi pochvai...
<zod_> Johny^Bravo, warzwam se i to me ostawq na suho sled 1 minuta
--- Nudy[g0ne] is now known as Nudy
<Johny^Bravo> hihi
<Johny^Bravo> neka lekciqta zapochne
--- ircnewbie has changed the topic to: W momenta te4e lekciq na tema Eggdrop/TCL/Windrop... wsqkakwi wyprosi otnosno zadawaite na Blady
<Johny^Bravo> /whois ircnewbie ircnewbie
<shadowrider> sega
<ircnewbie> zadawaite wyprosite si na Blady tai kato shte ima +m
<ircnewbie> ako se smetne 4e sa seriozni i sa po temata shte im se otgowarq
<Nudy> aa da zadavam li vuprosi
<Johny^Bravo> okey
<ircnewbie> okay ?
<Johny^Bravo> okey
<Johny^Bravo> ;)
<zod_> yeah
<zod_>
<Nudy> ircnewbie moje li da zadavam vuprosi ?
<Blady> Nudy
<Johny^Bravo> slagaite moda;))
<Blady> 6te gi zadava6 na men
<Blady> na private
<ircnewbie> lockwam kanala we4e
--> Vizor\SAD ([email protected]) has joined #irchelp
--- ircnewbie sets modes [#irchelp +m]
<ircnewbie> Begin ...
--> Gilotin ([email protected]) has joined #irchelp
<ircnewbie> weroqtno powe4eto ot was znaqt kakwo e IRC i Eggdrop i kakwo mojete da prawite s tqh
<ircnewbie> no w pomosht na tezi koito neznaqt wse oshte shte naprawim kratko rezume predi da zapo4nem syshtinskata 4ast
<ircnewbie> IRC ozna4awa [Internet Relay Chat]
<ircnewbie> iRC mrejata e naprawena ot mnogobroini serveri swyrzani edin kym drug
<-- Gilotin ([email protected]) has left #irchelp
<-- shadowrider ([email protected]) has left #irchelp
<ircnewbie> w iRC imate kanali kolko zawisi ot mrejata na koqto ste ... ako ste symsem bosi w irc predlagame wi da pro4etete http://irchelp.unibg.org/irchelp/IRC/Do ... ew2irc.htm
<ircnewbie> weroqtno izpolzwate klient kato mIRC (http://www.mirc.com/) za win xchat (http://xchat.org/) za X11 ili BitchX (http://www.bitchx.com/) za *NIX
<ircnewbie> za da se swyrjete kum iRC server-a ... no kakwo to4no prawi tozi klient ?
<ircnewbie> tozi klient izprashta spec komandi do server-a
<ircnewbie> za da se uweri 4e towa pishete otiwa w prawilna posoka
<ircnewbie> ako trqbwa da prawite skript koito da izprashta inf kym nqkoi 4rez msg, notice, ctcp ili dr.
<-- Suzi_ has quit (Ping timeout: 180 seconds)
<ircnewbie> wie ne smao mojete da napawite neshto prosto kato [notice <nickname> <message>]
<ircnewbie> no mojete da izpratite i spec komandi kym server-a kakto mirc xchat i bx go prawqt ... taka 4e trqbwa da znaete malko powe4e kak iRC server-a raboti
<ircnewbie> s irc klientite ako iskate da osyshtestwite namislenoto
<ircnewbie> Bot e sakrashtenie ot robot. BOtowete sa dosta 4esto sreshtani na mnogo iRC mreji ..
<ircnewbie> syshto kakto robotite ot istinskiqt jiwot te otgowarqt na komandi i neshta na koito sa programirani da otgowarqt
<ircnewbie> nqkoi mogat da kajat 4e te prili4at na dobre obu4eni ku4eta
<ircnewbie> w iRC botowete 4esto se izpolzwat za da dyrjat kanalite ili da zabawlqwat kanal
<ircnewbie> moje bi e po to4no da se kaje 4e bota pozwolqwa na potrebitelite da se zabawlqwat
<ircnewbie> tei kato bota otgowarq na komandi koito potrebitelq e izpylnil botowete dosta 4esto se izpolzwat samo za da dyrjat operatorskite prawa w daden kanal
<ircnewbie> (ne i w UniBG tuk si ima CS)
<ircnewbie> Eggdrop e nai populqrniqt w sweta Open source bot napisan na C
<ircnewbie> syzdaden za gywkawost i lesno izpolzwane, negowata distribuciq e free pod GNU licenz
<ircnewbie> (GPL)
--> MASSTER ([email protected]) has joined #irchelp
<ircnewbie> ako neznaete kawko e IRC togawa eggdrop ne e za was ..
<ircnewbie> eggdrop e pona4alo napisan ot Robey Pointer
<ircnewbie> kakto i da e toi otdawna ne raboti po nego
--> Suzi_ ([email protected]) has joined #IRChelp
<ircnewbie> pyrwona4alno e syzdaden za IRC war, no sega toi moje da byde nai dobriqt iRC bot
<ircnewbie> izglejda kato normalen potrebitel samo 4e ima mnogo drugi func
<ircnewbie> kato naprimer wsi4ki potrebiteli koito imat prawa w bota mogat da wlqzat w DCC s nego i da prashtat syobshteniq na drugi potrebiteli
<ircnewbie> koito ne sa w momenta w IRC
<ircnewbie> syobshteniqta awtomati4no shte bydat zapazeni w bota i kogato potrebitelq wleze w kanala w koito e bota toi mu prashta syobshtenie
<ircnewbie> ako drugi potrebiteli sa w DCC s bota te shte imat wyzmojnosta da goworqt edin s drug w dcc chat prozoreca
<ircnewbie> taka kakto si goworqt w kanal
<ircnewbie> towa e adna ot nai zabelejitelnite func na eggdrop .. mislete za nego kato multy dcc hat ili kato malko IRC (s kanalite)
<ircnewbie> mojete da swyrjete drugi botowe i da oweli4ite BotNEt-a i dokato nakraq se polu4i neshto koeto naistina prili4a na iRC
<ircnewbie> eggdrop stoi w kanala i go pazi, zashtitawa go ot TO .. towa w nashi dni e po4ti newyzmojno tyi kato imame services
<ircnewbie> , da razpoznawa ban users i da gi punish
<ircnewbie> kakto i prewiligirowanite potrebiteli i da izpolzwat prawata si ... i t.n.
<ircnewbie> za da si naprawite bota po dobyr moje bi shte iskate da mu slojite opredeleni skriptowe
<ircnewbie> towa moje da ozna4awa wsi4ko
<ircnewbie> wklu4waiki igri, glasuwaniq, scriptowe za dawane na help i t.n
<-- Johny^Bravo has quit (adi do)
<ircnewbie> edin interesen skript moje da wi naprawi bota po takuw na4in 4e toi da gowori kato normalen potrebitel (po4ti kato nego)
<ircnewbie> na podobni neshta moje da se podlyje nqkoi nowak w irc
<ircnewbie> (like me )
<ircnewbie> posle shte zasegnem wyprosa za TCL skriptowete ;b
<ircnewbie> imashe dosta malko wersii na eggdrop botowe napraweni prez poslednite godini
<ircnewbie> nqkoi hora wse oshte izpolzwat 1.3.x wersii no ne i nie
<ircnewbie> dosta bugowe bqha opraweni ot togawa i dosta func bqha dobaweni
<ircnewbie> prepory4wame wi WINAGI da izpolzwate nai nowata egghead eggdrop 1.6.x wersiq
<ircnewbie> koqto se s4ita za nai stabilnata i nai poddyrjana
<ircnewbie> ako gledate uptime stranicata mojete da zabelejite nqkolko eggdrop 1.7.x bota koito sa pusnati
<ircnewbie> 1.7.x e wersiq samo za devel i nqma da byde pusnata za pub izpolzwane
<ircnewbie> shtom wednyj stane wersiqta shte se smeni na 1.8.x koeto shte e golqma kra4ka za eggdrop
--> XP`cnu (~[email protected]) has joined #irchelp
<ircnewbie> no wse oshte ne e napraweno, ima powe4e bugs otkolkoto nowosti
--- XP`cnu is now known as XP`
--> bocman__ ([email protected]) has joined #irchelp
<ircnewbie> drugo razklonenie na origin eggdrop ot robey e eggdrop Racbot
--> iNT04h ([email protected]) has joined #irchelp
<ircnewbie> razli4en e ot standartniq oshte nari4an Vanilla Eggdrop, egghead eggdrop koito e radko izpolzwan i nepoddyrjan ot powe4eto chans za eggdrop
<ircnewbie> kakwoto i da prawite ne izpolzwaite eggdrop 2.x koito e star zabrawen proekt w koito sa se opitali napulno da prenapishat eggdrop coda no ne sa uspeli
<ircnewbie> ako si goworim za windows izpolzwajte windrop ili si kompilirajte sobstwen bot izpolzwajki cygwin
<ircnewbie> razbirase ima i drugi irc botowe daje i mIRC scriptowe koito se opitwat da prili4at na tqh
--> F1l1pcho ([email protected]) has joined #irchelp
--> KontroL ([email protected]) has joined #irchelp
--> w0 (~[email protected]) has joined #Irchelp
<ircnewbie> eto malko imena:Blootbot, Darkbot, Eggdrop Racbot, Energymech, Infobot... razbirase ima i oshte mnogo
--> core-ix ([email protected]) has joined #irchelp
<ircnewbie> i samo wie mojete da si ogtoworite na wyprosa zashto da izpolzwam to4no eggdrop .. e nadqwam se da si otgoworite sled tazi lekciq
<ircnewbie> ;)
<ircnewbie> pyrwoto neshto predi da si wzemete eggy e da se popitate dali imate nujda ot nego
<ircnewbie> ako e da .. mojete da wzemete nai nowiqt egg ot http://www.geteggdrop.com ili ot ftp://ftp.eggheads.org/pub/eggdrop/source/1.6,
--- zod_ is now known as zod
<ircnewbie> http://irchelp.unibg.org razbirase mojete da go wzemete i ot na6ata stranica ;) staraem se winagi da bydem w krak s nowoizlezlite wersii.
<ircnewbie> mojete da namerite pomosht za eggdrop na slednite stranici http://egghelp.org, http://www.eggfaq.com, http://www.eggheads.org
<-- F1l1pcho ([email protected]) has left #irchelp
<ircnewbie> http://irchelp.unibg.org/irchelp/IRC/Eggdrop.htm (na bylgarski) ! ;b
<ircnewbie> mojete da potyrsite razli4ni stranici s google ili s lubimata si tarsa4ka
<-- w0 (~[email protected]) has left #Irchelp
--> main ([email protected]) has joined #irchelp
<ircnewbie> a w IRC mojete da potyrsite pomosht tyk (#IRCHelp) #eggdrop @undernet i #eggfaq @ircnet
<-- core-ix ([email protected]) has left #irchelp
<ircnewbie> trqbwa da planirate pone izpolzwaneto na pone 2 bota ot razli4ni shelowe
--> roam (~[email protected]) has joined #irchelp
<ircnewbie> pri4inata e 4e shelowete padat ot wreme na wreme.
<-- roam (~[email protected]) has left #irchelp
<ircnewbie> sled kato si izberete dobro mqsto kadeto da pusnete washiqt eggdrop mojete da prodyljite kym instalaciqta i konfiguraciqta mu
<ircnewbie> obiknoweno instalaciqta e lesna ako shelyt wi ima TCL instaliran wsi4ko shte mine dobre ( ako imate dostata4no space)
<-- KontroL ([email protected]) has left #irchelp
<ircnewbie> molq nezabrawqite 4e konfiguracioniqt fajl trqbwa da byde dobre pregledan
<ircnewbie> za da podkarate egg wi trqbwat nqkolko neshta:
--> RED_DEVIL ([email protected]) has joined #irchelp
<ircnewbie> nqkakyw unix account, nqma zna4enie dali shte e lokalen ili otdale4en stiga da wi dawa wyzmojnost da puskate eggdrop i da ostawa procesa wi pusnat sled kato izlezete
<ircnewbie> dosta dobri poznaniq za IRC
<ircnewbie> i UNIX kakto i da znaete kakwo e DCC chat.
<ircnewbie> okolo 500 kb space ili powe4e ot sistemata, na linux izpylnimite fajlowe zaemat okolo 400 kb
<-- RED_DEVIL ([email protected]) has left #irchelp
<ircnewbie> na RISC shte e dosta po golqm
<ircnewbie> TCL biblioteki (lib files) koito mogat da bydat namereni na http://www.linuxberg.com/
<ircnewbie> ako iskate botyt wi da byde pusnat 24/7 wi trqbwa shell acc
<ircnewbie> na pc koeto e 24/7 w Internet
<ircnewbie> oswen ako wie nqmate takyw komputer ... w tozi slu4ai trqbwa da ni predostawite shell acc bez nikakwi ograni4eniq ;bbbbbbbb
--> markos (~[email protected]) has joined #irchelp
<ircnewbie> mojete da polu4ite takyw shell acc ili kato si go kupite ili ako celunete administratora i da go nakarate da wi dade edin free
<ircnewbie> ;b
<-- D`AGOSTINO ([email protected]) has left #irchelp
<ircnewbie> (nito edin ot onezi bezplatni shell acc nqma da wi dade da si pusnete eggdrop zashtoto wednaga kato izlezete ot sistemata
<ircnewbie> washiqt proces shte byde sprq)
<ircnewbie> ima mnogo dobri shell provideri w posledno wreme
<ircnewbie> ako iskate bg shell upitaite registraciqta na http://aquila.online.bg, http://shells.go-link.net (super skapan)
--> attack ([email protected]) has joined #irchelp
<ircnewbie> pyk ako wi se zanimawa da tyrsite na http://www.bylur.net/free/ ima nqkolko bezplatni shell provider-a
<ircnewbie> sega 4esta s TCL
<ircnewbie> predi da kompilirate eggdrop wie trqbwa da imate instaliran TCL na sistemata
<ircnewbie> powe4eto sistemi trqbwa da si imat TCL
<ircnewbie> pusnete ./configure skripta za da go nameri wmesto was
--> KoNDoM (~[email protected]) has joined #irchelp
--> cstrike` ([email protected]) has joined #irchelp
<ircnewbie> ako towa se prowali moje bi bihte iskali da si go potyrsite sami
<ircnewbie> mojete da prowerite kato napishete 'tclsh'
<ircnewbie> ako raboti shte polu4ite w '%"
<ircnewbie> i prosto napishete exit za da izlezete .. towa ozna4awa 4e sistemata wi ima TCL install
<ircnewbie> ako tclsh ne raboti towa bi trqbwalo da zna4i 4e nqmate i shte trqbwa da si go izteglite i da go install
--> daLizard[N\A] (~[email protected]) has joined #irchelp
<ircnewbie> i ima oshte edin na4in .. dosta boleznen... za otkriwaneto na TCL
--> FireMaster ([email protected]) has joined #irchelp
<ircnewbie> bibliotekite se kazwat libtclX.X.so ili libtclX.X.a. Tezi "X.X" sa wersiqta na wa6ata biblioteka. Raz6ierenieto '.so' ozna4awa, 4e e "dinami4no zarejdasta se biblioteka"
<ircnewbie> a '.a'' ozna4awa, 4e ste e "stati4no swyrzana"
--> [TheSainT]JAY-D ([email protected]) has joined #irchelp
<ircnewbie> mojete da se opitate da go namerite taka:
<ircnewbie> find /usr -name "libtcl*" -print 4rez tazi komanda ste imate da si 4akate dosta wreme...
<ircnewbie> naprawete syshtoto i za header file-a
<ircnewbie> find /usr -name "tcl.h" -print
<ircnewbie> wednyj shtom ste gi namerili kajete ./configure skripta kade sa
<ircnewbie> towa trqbwa da se naprawi kato se definirat TCLLIB i TCLINC
<-- cstrike` ([email protected]) has left #irchelp
<ircnewbie> mojete da go naprawite po sledniqt na4in
<-- daLizard[N\A] (~[email protected]) has left #irchelp
<ircnewbie> Za sh/bash/ksh 6elowe:
<-- attack ([email protected]) has left #irchelp
<ircnewbie> TCLLIB=/directory/of/the/library
<ircnewbie> TCLINC=/directory/of/the/header
<ircnewbie> export TCLLIB TCLINC
<-- [TheSainT]JAY-D ([email protected]) has left #irchelp
<ircnewbie> Za csh/tcsh 6elowe:
<ircnewbie> setenv TCLLIB /directory/of/the/library
<ircnewbie> setenv TCLINC /directory/of/the/header
<ircnewbie> mojete da prowerite kakyw shell polzwate kato napishete echo $SHELL
<ircnewbie> ako towa ne proraboti napishete ps i wijte kakwi procesi ste pusnali
<ircnewbie> namerete tozi koito zapo4wa s tire (-), towa weroqtno e washiqt login shell
<ircnewbie> towa moje da e nqkoi ot slednite: sh, bash, ksh, csh ili tcsh (ili drugi...)
--> ^ICE-KING^ ([email protected]) has joined #irchelp
<ircnewbie> takam ..
--> lekoemze ([email protected]) has joined #irchelp
<ircnewbie> sled towa pusnete ./configure otnowo za da gi nameri
<ircnewbie> nai dobroto ftp ot koeto mojete da wzemete TCL e ftp://ftp.scriptics.com/pub/tcl
<ircnewbie> nai dobrata wersiq e 8.4 .. za sega
<ircnewbie> mojete da si kompilirate TCL 8.4 w washata HOME dir ako imate dostata4no space
<ircnewbie> ili da go kompilirate w /tmp tam shte imate dostata4no space
<ircnewbie> po sledniqt na4in
<ircnewbie> $ mkdir /tmp/tcl
<ircnewbie> $ cd /tmp/tcl
<ircnewbie> $ ftp ftp.scriptics.com
<-- ^ICE-KING^ ([email protected]) has left #irchelp
<ircnewbie> Login: ftp
<ircnewbie> Password: your@email
<ircnewbie> ftp> cd /pub/tcl/tcl8_4
<ircnewbie> ftp> bin
<ircnewbie> ftp> get tk8.4a3.tar.gz
<ircnewbie> ..4akajte da se iztegli fajla i quit
<ircnewbie> ftp> quit
<ircnewbie> $ gzip -dc tk8.4a3.tar.gz | tar xvf -
<ircnewbie> $ cd tcl8.4/unix
<ircnewbie> $ ./configure --prefix=/tmp/tcl --exec-prefix=/tmp/tcl --disable-shared
<ircnewbie> ..4akajte configure da si swyr6i rabotata...
<ircnewbie> % make (i 4akate...)
<ircnewbie> % make install (4akate oste...)
<ircnewbie> E we4e imate TCL bibliotekite w /tmp/tcl. Sega kajete na eggdrop kyde da gi nameri, kato naprawite slednite nastrojki
<ircnewbie> pak shte dadem primer za shelowete
<-- lekoemze ([email protected]) has left #irchelp
<ircnewbie> bash/sh/ksh
<ircnewbie> % TCLINC=/tmp/tcl/include
<ircnewbie> % TCLLIB=/tmp/tcl/lib
<ircnewbie> % export TCLINC TCLLIB
<ircnewbie> csh/tcsh
<ircnewbie> setenv TCLINC /tmp/tcl/include
<ircnewbie> setenv TCLLIB /tmp/tcl/lib
--> [CM]Executor (~[email protected]) has joined #irchelp
<ircnewbie> sled towa prosto pusnete eggdrop configure skripta i stiskaite palci da zase4e wersiqta
<ircnewbie> ako go naprawi i bi trqbwalo da go naprawi
<ircnewbie> ako spazihte stypkite, mojete da si kompilirate bota kakto obiknoweno
<ircnewbie> i toi shte ima TCL 8.4 libs
--- MASSTER is now known as typa_lekciq
<ircnewbie> sled kompiliraneto mojete prosto da iztriete wsi4ko
<ircnewbie> /tmp/tcl
<ircnewbie> tyi kato wsi4ko towa we4e e wklu4eno w bota wi
<ircnewbie> ili da si go ostawite tam ako adm ne go iztrie
--- CS sets modes [#irchelp +o edi]
<-- FireMaster has quit (Club Planet)
<ircnewbie> ako imate space mojete da naprawite wsi4ko towa w HOME dir-a si
--- typa_lekciq is now known as MASSTER
<ircnewbie> ako si kupite shell i znaete 4e wi dawa da si puskate bot . takawa wajna inf trqbwa da byde na saita
<ircnewbie> mojete ste 100% sigurni 4e shte imate TCL libs
<ircnewbie> mnogo hora puskat bota
<ircnewbie> samo kato igra4ki
<ircnewbie> ili za cel unishtojenie
<ircnewbie> goworeiki globalno botowete wi trqbwat ako kanala wi ima postoqno hora
<ircnewbie> 24/7
<ircnewbie> i nqma bots
<ircnewbie> ako kanala wi ima nqkolko bota predpolaga se 4e ne wi trqbwat powe4e .. mnogo botowe ne wyrshat po dobra rabota
<ircnewbie> botowete ne mogat da osigurqt pylna zashtite
<ircnewbie> _NISHTO_ ne moje
--- Vizor\SAD is now known as Vizor
--- Vizor is now known as Vizor\SAD
<ircnewbie> eggdrop shte se opita da naprawi towa kolkoto se moje po dobre no nqma garancii
<ircnewbie> mnogo hora ... myrzeli kato nas gi marzi postoqno da obnowqwat wersiqta si
<ircnewbie> kato smykwat nowiqt sorce i da prekompilirat . blah blah
<ircnewbie> zatowa horata sa izmislili patchowe s koito mojete da naprawite update .. malko po bezboleznen samo s precompile
<ircnewbie> za da si patchnete eggdrop source-a wi trqbwa programata patch
--> JRok ([email protected]) has joined #irchelp
<ircnewbie> i to pone wersiq 2.1 napishete
<-- [CM]Executor (~[email protected]) has left #irchelp
<ircnewbie> patch -v za da widite kakwa e
<-- XP` has quit (Ping timeout: 240 seconds)
<ircnewbie> ako nqmate otgowor za version to moje bi wie puskate file
<ircnewbie> drug file de ..
<ircnewbie> wiJte http://tick.informatik.uni-stuttgart.de ... drop/patch i si namerete to4niq 'patch' za wa6ata sistema
<ircnewbie> nai nowite patches se namirat na ftp://ftp.eggdrop.net/pub/eggdrop/unofficial/patches1.6 i ftp://ftp.sodre.net/pub/eggdrop/patches1.6
<ircnewbie> mojete da si patchnete bota po taka
<ircnewbie> ako toi zawyrshwa na .gz gzip -d patch-file
<ircnewbie> Wlezte w source direktoriqta na eggdrop bota wi patch -p1 < eggdrop1.6.12.patch
<ircnewbie> dali nesto ne e stanalo mojete da razberete s find . -name "*.rej" -print
<ircnewbie> Ako nesto se e poobyrkalo po sledniqt na4in mojete da iztriete rejected fajlowete i da opitate otnowo s drug pa4.
<ircnewbie> find . \( -iname "*.rej" -or -iname "*.orig" -or -iname "*~" \) -exec rm -f {} \;
<ircnewbie> ako programata patch wi popita "What file to patch"
--- Vizor\SAD is now known as Vizor
<ircnewbie> to sigurno nqmate tekushtata wersiq na programata .. ako q imate to sigurno ste obyrkali ver na bota
<ircnewbie> (pa4wate s patch za 1.3 eggdrop 1.6 primerno)
<ircnewbie> Ubedete se, 4e wersiqta na eggdrop bota i wersiqta na patch sywpadat
--> michael_owen ([email protected]) has joined #IRCHelp
<ircnewbie> sled koeto mojete da prekompilirate s 'make'
<ircnewbie> za da si pusnete bota s SSL support trqbwa da go patchnete po sledniqt na4in
<ircnewbie> cd eggdrop1.6.12
<ircnewbie> wget -c http://irchelp.unibg.org/Downloads/eggd ... .6.diff.gz
<ircnewbie> patch -p1 < eggdrop1.6.12-ssl-v1.6.diff.gz
<ircnewbie> ili da izteglite naprawo patchnat bot ot http://irchelp.unibg.org/Downloads/prec ... 12-ssl.tgz
<ircnewbie> we4e spokoino mojete da zapo4nete s instalaciqta
<ircnewbie> wlezte w direktoriqta si (cd)
<-- bocman__ has quit (Excess Flood)
<ircnewbie> kato za na4alo trqbwa da imate source code
<ircnewbie> mojete da go wzemete 4rez komandata wget
--> bocman__ ([email protected]) has joined #irchelp
<ircnewbie> wget -cb http://irchelp.unibg.org/irchelp/Downlo ... .12.tar.gz
<ircnewbie> Ako nqmate wget mojete da se zdobiete s arhiwa izpolzwaiki lynx ili drug podoben instrument.
<ircnewbie> lynx -source http://irchelp.unibg.org/irchelp/Downlo ... .12.tar.gz > eggdrop1.6.12.tar.gz
<ircnewbie> sled tow prosto razkompresiraite fajla i wlezte w nowosyzdadenata dir
<ircnewbie> mojete da iztriete kompresiraniq file
<ircnewbie> tar xzvf eggdrop1.6.12.tar.gz; rm -f eggdrop1.6.12.tar.gz; cd eggdrop1.6.12/
<ircnewbie> segam ..
<ircnewbie> neka da startirame configuracioniqt skript ( ne bi trqbwalo da izpiswa greshki)
<ircnewbie> btw izpiswa dosta msgs prosto ne im obryshtaite wnimanie ako nqma greshki
--> Dr_KuReTo ([email protected]) has joined #irchelp
<-- Dr_KuReTo ([email protected]) has left #irchelp
<ircnewbie> sled kato skripta nameri wsi4ko koeto mu e nujno za da prodylji (glawno TCL koito se iziskwa da se compile bota)
<ircnewbie> neka da pristypim kym kompiliraneto na egg-a
<ircnewbie> eto nqkoi neshta koito trqbwa da naprawite ako iskate eggdrop-a wi da postigne maksimuma na sposobnostite si
<ircnewbie> mcedit src/eggdrop.h
--> TheCr0w ([email protected]) has joined #irchelp
<ircnewbie> tuk mojete da redaktirate max dyljina na psewdonimite koito shte se dobawqt w bota
<ircnewbie> po na4alo tq e 6 dobre e da q naprawite 15 ili kolkoto e max na mrejata na koqto ste
<ircnewbie> #define HANDLEN 9 /* valid values 9->NICKMAX */
<ircnewbie> wnimanie !! towa e kolkoto hubawo tolkowa i losho
<-- DreamWave (~[email protected]) has left #irchelp
--> DreamWave (~[email protected]) has joined #irchelp
<ircnewbie> zashtoto moje da popre4i na linkwaneto wi kym bot compiliran s na4alna dyljina na psewdonima 9
<ircnewbie> pyrwo prowerete dali dyljinata na psewdonima sywpada na wsi4ki botowe ot botnet-a wi
<ircnewbie> i togawa naprawete promqnata
<ircnewbie> mojete sega da obyrnete wnimanie na nqkoi po spec nastroiki
--> AMERICAN-BOY ([email protected]) has joined #irchelp
<ircnewbie> na fajlowete w tazi direktoriq ili da gi ostawite za posle w slu4ai 4e se zblyskate s prob ot towa estestwo
<ircnewbie> w fajla src/mem.c
<ircnewbie> se namira opisanie na towa kolko golqma e memory tablicata na bota wi
<ircnewbie> kakwo wi kasae towa li ?
<-- MASSTER has quit ()
<ircnewbie> ako imate prekaleno mnogo potrebiteli bota wi shte po4ne da pada s quit msg "Memory table full"
--> `lider` ([email protected]) has joined #irchelp
<ircnewbie> trqbwa prosto da otworite s nqkakyw tekstow redaktor src/mem.c i da zamenite slednoto
<ircnewbie> #define MEMTBLSIZE 25000 /* yikes! */
<ircnewbie> s nqkakwa po golqma stoinost .. naprimer 5000
<ircnewbie> sled koeto prekompiliraite bota nanow
<ircnewbie> o
<ircnewbie> ako slojite limita na 75000 wsi4ko shte e OK
<ircnewbie> mojete da prowerite w momenta kolko izpolzwate kato napishete .status w bota
<ircnewbie> ako tq se napylni
--> Toshk0 ([email protected]) has joined #IRCHelp
<ircnewbie> mojete da sreshnete zatrudnenie s dobawqneto na nowi potrebiteli ili s restartiraneto na bota
<ircnewbie> drug file na koito mojete da obyrnete wnimanie e src/mod/server.mod/server.c kojto w posledstwie moje da wi donese glawoboliq
--- bocman__ is now known as o6te`mnogo`li`i
<ircnewbie> ako botyt wi po4ne da izliza s msg Excess flood to ne e ot drugo a zashtoto stoinostite na msgrate sa twyrde malki
--- o6te`mnogo`li`i is now known as bocman__
<ircnewbie> otworete fajla i potyrsete za sledniqt red #define msgrate 2
<ircnewbie> i go promenete na po wisoka stojnost #define msgrate 5
<ircnewbie> sled koeto prekompiliraite bota
<ircnewbie> osthe mnogo bocman__ ;bbb
--- bocman__ is now known as dobmre
--- dobmre is now known as dobre`de
<ircnewbie> tazi opciq kontrolira kolko byrzo bota izprashta msg kym syrwyra
--- dobre`de is now known as bocman__
<ircnewbie> takam .. ako slojite wisoka stoinost shansa bota wi da izleze po podoben na4in e minimalen
<ircnewbie> no ot druga strana bota wi stawa po bawen
<ircnewbie> towa e wsi4ko w tazi direktoriq
--> LuC1FeR ([email protected]) has joined #irchelp
<ircnewbie> aa dokato ste w src direktoriqta .. mojete da naprawite malko trikowe s uptime na bota si ;bb
<ircnewbie> dosta 4esto wijdame paranoici koito umirat za golqm uptime na bota si ;)
<ircnewbie> eto kak mojete da (si:)) go wdignete
<ircnewbie> mcedit src/chanprog.c
<ircnewbie> otidete na red 231 i se ogledajte za
<ircnewbie> malko paste ;bb
<ircnewbie> void tell_verbose_uptime(int idx)
<ircnewbie> {
<ircnewbie> char s[256], s1[121];
<ircnewbie> time_t now2, hr, min;
<ircnewbie> now2 = now - online_since;
<ircnewbie> s[0] = 0;
<ircnewbie> sled nego dobawete
<ircnewbie> now2 += (1 * 60 * 60 * 24);
<ircnewbie> pod nego trqbwa da ima
<ircnewbie> if (now2 > 86400) {
<ircnewbie> /* days */
<ircnewbie> slezte po nadolu kadeto zapo4wa
<ircnewbie> */
<ircnewbie> void tell_verbose_status(int idx)
<ircnewbie> {
<ircnewbie> towa e priblizitelno na red 296
<ircnewbie> now2 = now - online_since;
<ircnewbie> s[0] = 0;
<ircnewbie> dobawete now2 += (1 * 60 * 60 * 24);
--> D`AGOSTINO ([email protected]) has joined #irchelp
--- bocman__ is now known as golqm`flood`sta
<ircnewbie> tozi primer e za +1 den
--- golqm`flood`sta is now known as bocman__
<-- D`AGOSTINO ([email protected]) has left #irchelp
<ircnewbie> ako iskate da uweli4ite stoinosta promenete 1 naprimer na 2
<ircnewbie> now2 += (2 * 60 * 60 * 24);
<ircnewbie> towa e za 2 dena
<ircnewbie> i t.n. mojete da si go prawite kolkoto iskate
<ircnewbie> ... ako iskate da promenite nqkoi syobshtenie w bota si (kick msg i drug tekst)
<ircnewbie> trqbw da redaktirate lang file
<ircnewbie> mcedit language/core.english.lang
--> Em0 ([email protected]) has joined #iRcHeLp
<ircnewbie> tuk prosto trqbwa da zamenite teksta s sobstwen
<ircnewbie> sega e momenta predi da kompilirate bota da kompilirate dopylnitelni moduli
<ircnewbie> na http://irchelp.unibg.org/irchelp/IRC/Eggdrop.htm mojete da widite zawiden arhiw ot moduli
<-- Em0 ([email protected]) has left #iRcHeLp
<ircnewbie> pyrwo trqbwa da kompilirate dopylnitelni moduli na bota ako ste dobawili takiwa
<ircnewbie> modulite sa 4ast ot coda koito se zarejdat otdelno ot bota
<-- michael_owen has quit (UniBG script 9.0 www.mvpsoft.cjb.net - brb)
<ircnewbie> i dobawqt dopylnitelni funcii
<ircnewbie> naprimer s filesys modula dobawqte cqlata file sys sistema
<ircnewbie> # make config
<ircnewbie> sega we4e mojete da zapo4nete s glawnata kompilaciq - make
<ircnewbie> mojete da swyrjete modulite si stati4no ako izpolzwate make static
<ircnewbie> syshto taka mojete da se opitate da kompilirate dinami4ni moduli w/ stati4na sist
<ircnewbie> s make eggdrop
<ircnewbie> ako pri kompiliraneto polu4ite 'Makefile:3 :invalid operator' i podobni nesta kogato napi6ite 'make' izpolzwajte 'gmake'
<ircnewbie> druga 4esto sreshtana greshka pri compile e lipsata na pate4kite
<ircnewbie> w /etc/ld.conf i se polu4awa slednata greshka
<ircnewbie> <paste>
<ircnewbie> make[1]: Leaving directory `/usr/local/eggdrop1.6.12/src'
<ircnewbie> ./eggdrop: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory
<ircnewbie> make: *** [modegg] Error 127
<ircnewbie> </paste>
<ircnewbie> dawa gre6ka 4e ne namira dadeniqt fajl no pri tyrseneto mu toj e na mqstoto si
--- bocman__ is now known as bocman`sex
<ircnewbie> locate libtcl8.4.so i namira /usr/local/lib/libtcl8.4.so
--- bocman`sex is now known as bocman`pravi`se
<ircnewbie> problema idwa ot tam 4e pytqt /usr/local/lib go nqma w /etc/ld.conf
<ircnewbie> ops
--- bocman`pravi`se is now known as bocman`prai`sex
<ircnewbie> /etc/ld.so.conf
--> dlh[VegaFM] (~[email protected]) has joined #irchelp
<ircnewbie> ako ste root dobawete go w fajla sled koeto startiraite ldconfig
<ircnewbie> ako ste samo potrebitel predi da startirate configuracioniqt skript napishete export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ili kadeto e pytqt
--- bocman`prai`sex is now known as bocman__
<ircnewbie> sega prodyljawate s izpylnenieto na komandata make install koeto shte instalira bota wi w /home/user/eggdrop
<ircnewbie> ako jelaete da go instalirate na razli4no mqasto izpolzwaite make install DEST=<directory>
<ircnewbie> primer make install DEST=/home/Randal/eggdrop1
<ircnewbie> wnimawaite.. trqbwa da izpolzwate cqlata pate4ka
<ircnewbie> za byrz install izpolzwaite prosto make install
<ircnewbie> ako polu4ite msg ot roda na
<ircnewbie> You're trying to do a MODULE build of eggdrop when you've
<ircnewbie> already run make for a static build.
<ircnewbie> You must first type make clean before you can build
<ircnewbie> a module version.
<ircnewbie> make: *** [modtest] Error 1
<ircnewbie> towa e zashtoto make install e samo za dinami4no kompilirane
<-- dlh[VegaFM] (~[email protected]) has left #irchelp
<ircnewbie> napishete make static za stati4no
<ircnewbie> ooo dam .. we4e go install ;b
<ircnewbie> no towa ne e wsi4ko
<ircnewbie> sega trqbwa da izwyrshite dosta raboti po washiqt bot za da go naprawite rabotesht
--> AngelHell ([email protected]) has joined #irchelp
<ircnewbie> pyrwo ako ste install washiqt bot pod root trqbwa da izpylnite nqkoi prosti cmds za da dadete sposobnost na user-a
<ircnewbie> da go startira tyi kato bota ne moje da se run pod root
<ircnewbie> mojete da go startirate pod root no towa beshe pri starite wersii
<ircnewbie> cd /home/user; chown -R user.users *; cd eggdrop1.6.12/
--> [CM]Executor (~[email protected]) has joined #irchelp
<ircnewbie> ako ne iskate da se zanimawate s cqlata tazi anal istoriq mojete da izpolzwate precompile bot
<ircnewbie> takiwa mojete da namerite na nashiqt site
<ircnewbie> po4ti za wsqka OS
<ircnewbie> sega ste sposobni da redaktirate i save conf file-a
<ircnewbie> kompiraite eggdrop.complete.conf w nqkoi now file po princip s syshtoto ime kato towa na bota
<-- [CM]Executor (~[email protected]) has left #irchelp
<ircnewbie> towa e polezno i shte wleze w upotreba pri praweneto na crontab-a
<ircnewbie> sega da zapo4nem s redaktiraneto ...
<ircnewbie> reshihme da ne dawame primeren conf file a da spomenem opciite koito mojete da promenite
<ircnewbie> ako prekaleno mnogo se proto4i moje da go sakratim ..
<ircnewbie> Pyrwata liniq ot konfiguracionniq fajl za Eggdrop trqbwa da sydyrja pylniq pyt do izpylnimiqt fajl eggdrop
<ircnewbie> trqbwa da e napisan po na4ina po koito e daden primera ili katko se prawi da raboti shell script
<ircnewbie> slednite neshta mogat da bydat smeneni ... prepora4itelno e da se
<ircnewbie> set username "ext2s"
<ircnewbie> Tazi nastrojka definira potrebitelskoto ime, koeto bota izpolzwa w IRC .. nastroikata nqma efekt
<ircnewbie> kogato ima pusnat identd na mashinata
<ircnewbie> set admin "PurvoIme VtoroIme <email: [email protected]>"
<ircnewbie> tazi nastrojka definira, koj ste byde pokazan pri izpylnenie na komandite .status
<ircnewbie> set network "UniBG" tazi informaciq se izpolzwa samo pri share s drugite botowe ot botneta
<ircnewbie> slojete go na mrejata na koqto sedi bota wi
<ircnewbie> set timezone "EET" tazi nastroika definira zonata w koqto bota wi
--> aMeX ([email protected]) has joined #irchelp
<ircnewbie> e
<ircnewbie> izpolzwa se za wytreshni proceduri kakto i za wyrteneto na log failowe
<ircnewbie> i za pisaneto na scripts
<ircnewbie> wremewata zona e string, kojto opredelq imeto na zonata, w koqto ste i trqbwa da byde naj-malko tri ili powe4e simwola
<ircnewbie> naprimer (Centralna Ewropa) (UTC+1) trqbwa da e "CET"
<ircnewbie> set offset "2"
<ircnewbie> offset nastroikata definira wremeto koeto shte byde dobaweno do UTC aka GMT za da se polu4i mestonoto wi wreme
<ircnewbie> ofseta e polujitelen ako mestnoto wreme e na zapad ot glawniqt meridian
<ircnewbie> i otricatelno ako e na iztok
<ircnewbie> stoinosta( w 4asowe) trqbwa da e m/ -23 i +24
<ircnewbie> set env(TZ) "$timezone $offset" (izkliu4eno po podrazbirane)
<ircnewbie> ako ne iskate da se izpolzwa nastrojkata 4asowa zona samo ot skriptowete, a iskate da se izpolzwa nawsqkyde otkydeto e wyzmojno, izpolzwajte tazi nastrojka
<ircnewbie> set my-hostname "127.0.0.1" / set my-ip "127.0.0.1"
--- AMERICAN-BOY is now known as AMERICAN-ba4ka
<ircnewbie> ako izpolzwate virualen host (mashinata wi ima powe4e ot 1 ip),
<ircnewbie> mojebi iskate da izberete koe IP shte polzwate
<ircnewbie> mojete da go definirate ili po host ili po IP ..
<ircnewbie> mojete da iskate da go define ako bota wi ima problemi pri startiraneto
--> Joseph ([email protected]) has joined #irchelp
<ircnewbie> addlang "english" ako iskate eggdrop syobsteniqta da bydat pokazani na nqkoj drug ezik
<ircnewbie> eggdrop ima wyzmojnost da logwa nqkoi neshta
<ircnewbie> ot towa koeto se gowori w kanalite do partyline cmds
<ircnewbie> i file transfera
<ircnewbie> log failowete obiknoweno se pazqt za 24 4asa .. sled towa shte se preimenuwat na "(logfilename).yesterday"
<ircnewbie> sled 48 4asa te shte se prepokriqt s logs na sledwashtiqt den
<ircnewbie> set max-logs 5 towa e kolko naj-mnogo log fajlowe e razre6eno da se prawqt
<ircnewbie> set max-logsize 0 kolko naj-mnogo moje da byde golqm wa6iqt log fajl slojete go na 0 za da go izklu4ite
<ircnewbie> stoinosta e w kb
--- Joseph is now known as PyCaTa
<ircnewbie> set quick-logs 0 tazi opciq moje da se okaje dosta polezna, ako imate problemi s log fajlowete koito wi zapylwat quota na harddiska
<-- Nudy has quit (Connection reset by peer)
<ircnewbie> ili samiqt hard disk ili ako logwate +p
<ircnewbie> i gi publikuwate na web stranica i wi trqbwa po nowa inf
<ircnewbie> zabelejete 4e tazi opciq moje da uweli4i CPU usage no ot druga strana shte namali RAM usage
<ircnewbie> logfile <flagowe> <kanal> "logs/logfajl"
<ircnewbie> tazi nstraojka kazwa na bota wi kakwo da se logwa, ot kyde, i w kakyw fajl
<-- Vizor has quit (Read error: 104 (Connection reset by peer))
<-- `lider` has quit (http://rlan.org && http://free.rlan.org)
--- PyCaTa is now known as Joseph
<ircnewbie> set log-time 1 wkliu4ete tazi opciq i wa6ite log fajlowe ste se timestamp-wat
<ircnewbie> set keep-all-logs 0 ako iskate da pazite log fajlowete si zawinagi wkli4ete tazi opciq
<ircnewbie> wsi4ki log files shte imat okon4anie ".[den, 2 cifri][mesec, 3 cifri][godina, 4 cifri]"
<ircnewbie> set switch-logfiles-at 300 mojete da opredelite, koga eggdrop trqbwa da smenq log fajlowete i da zapo4ne da gi "oswejawa"
--> For_All_Time ([email protected]) has joined #irchelp
<ircnewbie> set quiet-save 0 tezi otwratitelni syobsteniq "Writing user file..." i "Writing channel file..." nqma da bydat pokazwani powe4e stom tazi opciq e wklu4
<ircnewbie> set console "mkcobxs"
<ircnewbie> towa sa konzolnite modowe po podrazbirane
--- main is now known as main[brb]
--- swatch_happyUFF is now known as swatch_happy
<ircnewbie> set userfile "JinJi.user" Zadawa imeto na fajla, pod koeto ste se zapazai wa6iqt potrebitelski fajl
<ircnewbie> set pidfile "pid.JinJi"
<ircnewbie> zadawa imeto na fajla, pod koeto ste se zapazi pid-a na kojto e pusnat bota
--> misery` ([email protected]) has joined #irchelp
<ircnewbie> set sort-users 0 ako iskate potrebitelskiq fajl da byde sortiran kogato se zapazwa wkliu4ete tazi opciq ... towa ste nakara bota da izpolzwa malko powe4e CPU, kogato zapazwa potrebitelskiq fajl
<ircnewbie> set help-path "help/" kade sa help files
<ircnewbie> set text-path "text/" zadawa kade eggyto shte tyrsi tekstowite si fajlowe
--- KoNDoM is now known as k|bbl
<ircnewbie> towa se izpolzwa ot nqkoi Tcl skriptowa i DCC komandi
<ircnewbie> set temp-path "/tmp" mqstoto kydeto ste se slagat temporary fajlowe
<ircnewbie> bla bla tuk shte propusna malko zashtoto sa shodni s predishnite
<ircnewbie> set botnet-nick "BabaMeca" ;b
<ircnewbie> ako iskate da izpolzwate drug psewdonim w botneta ot tozi kojto izpolzwate w IRC
<ircnewbie> listen <port> <opciq>
<ircnewbie> otwarq se telnet port kojto wie ili drugite botowe mogat da izpolzwa
<ircnewbie> za da se swyrjat s bota wi prez telnet
<ircnewbie> walidnite portowe sa mejdu 1025 i 65535
<ircnewbie> opciite koito mojete da izpolzwate sa all bots users
<ircnewbie> mojete da imate port za potrebiteli i za botowe ili edin za dwata slu4aq
<ircnewbie> ima i drugi opcii za listen komandata w doc/tcl-commands.doc
<ircnewbie> set remote-boots 2
<ircnewbie> tazi opciq ste zadade dali iskate ili ne horata ot drugite botowe na botneta da boot-wat potrebiteli ot wa6iq bot
<ircnewbie> opciite sa
<ircnewbie> 0 1 2
<ircnewbie> kato 0 ne pozwolqwa 1 samo na share bots i 2 ot wsi4ki
--> D`AGOSTINO ([email protected]) has joined #irchelp
<ircnewbie> set protect-telnet 0 tazi nastrojka ste othwyrli wryzki koito ne sywpadat s poznati hostowe
<ircnewbie> set ident-timeout 5 nastrojkata definira wremeto w sekundi w koeto bota trqbwa da 4aka predi da spre DCC Chat/Telnet ili relay wryzka
<-- aMeX has quit (***)
<ircnewbie> set require-p 0 definiraite dali potrebitelq koito ima +o trqbwa da ima+p z ada naprawi dcc
<ircnewbie> ops ...
<-- D`AGOSTINO ([email protected]) has left #irchelp
<ircnewbie> set open-telnets 0
<ircnewbie> ako iskate da pozwolite na horata da se dobawqt kym bota kogato napishat NEW pri telnet sesiq naprawete towa 1
--- swatch_happy is now known as swatch_happyUff
<ircnewbie> set connect-timeout 15 nastrojkata definira wremeto w sekundi predi da spre DCC Chat/Telnet ili relay wryzka
<ircnewbie> set dcc-flood-thr 3
<ircnewbie> zadawate kolko linii se pratqt na partyline predi potrebitelq da byde izhwyrlen
<ircnewbie> set resolve-timeout 15 slojete perioda w sekundi predi bota da se otkaje ot resolwaneto na hostname/adresa
<ircnewbie> (mojete da iskate da uweli4ite towa na bawni mreji)
<ircnewbie> set firewall "!sun-barr.ebay:3666"
<ircnewbie> slojete towa na washiqt socks host ako egg-a wi e zad firewall
<ircnewbie> ako izpolzwate SUN telnet passthru
<ircnewbie> predstawkata na host-a e s !
<ircnewbie> set nat-ip "127.0.0.1"
<ircnewbie> ako iamte NAT fw mashinata wi ima IP ot slednite klasowe
<-- AMERICAN-ba4ka has quit (Ping timeout: 180 seconds)
<ircnewbie> 192.168.0.0-192.168.255.255, 172.16.0.0-172.31.255.255, 10.0.0.0-10.255.255.255
<ircnewbie> i washiqt fw transparentno smenq adresa si na washata mashina na unikalen
<ircnewbie> ili imate IP masq
<-- iNT04h has quit (Ping timeout: 240 seconds)
<ircnewbie> m/ was i ostanalata 4ast ot sweta i DCC chat i CTCP chat ne rabotqt
--> iNT04h ([email protected]) has joined #irchelp
<ircnewbie> zadaite washiqt wynshen ip adres tuk
<ircnewbie> ne pishete nishto za my-ip ili my-hostname ako izpolzwate tazi nastrojka
<ircnewbie> set reserved-portrange 2010:2020
<ircnewbie> ako iskate wsi4ki DCC fajl transferi da izolzwat opredelen diapazon
<ircnewbie> op portowe
<ircnewbie> ili zastoto ste zad fw ili poradi security pri4ini nastrojte towa
<ircnewbie> set ignore-time 15
<ircnewbie> wremeto w minuti za koeto ste trae temp ignora
<ircnewbie> set owner "MrLame, MrsLame"
--> RACING ([email protected]) has joined #irchelp
<ircnewbie> tuk nastroiwate perm ownerite si
<ircnewbie> set default-flags "hp"
<ircnewbie> slojete flagowete koito now potrebitel polu4awa kogato byde dobawen
<ircnewbie> za powe4e info .help whois na partyline
<-- RACING ([email protected]) has left #irchelp
<ircnewbie> za da widite spisyk s flagowete i tqhnoto opisanie
<ircnewbie> shte gi spomenem po kysno
<ircnewbie> unbind dcc n tcl *dcc:tcl i unbind dcc n set *dcc:set
<ircnewbie> komentiraite tezi linii (s #) ako iskate da wklu4ite komandite .tcl i .set
<ircnewbie> ako podbirate ownerite si wnimatelno nqma da imate probs s tazi komanda
--- bocman__ is now known as ai`svar6vai
--> AMERICAN-BOY ([email protected]) has joined #irchelp
<ircnewbie> set must-be-owner 1 samo perm owneri shte mogat da izpozlwat .set i .tcl
--- ai`svar6vai is now known as bocman__
<ircnewbie> ako iskate i .dump da bude izpolzwan samo ot tqh
<-- AMERICAN-BOY has quit (Killed (NS (Nickname Enforcement)))
<ircnewbie> napraweto go 2
<ircnewbie> bocman__ az oshte zagrqwam ;b
<Blady>
<ircnewbie> sled glawnite nastroiki moje bi iskate da zaredite drugi moduli
<ircnewbie> modulite se zarejdat s komandata "loadmodule <module>"
--> AMERICAN-BOY ([email protected]) has joined #irchelp
<ircnewbie> eggdrop tyrsi modulite w dir koqto ste mu zadali 4rez nastroikata module-path
<ircnewbie> skriptowete trqbwa da bydat dobaweni w kraq na conf file-a
<ircnewbie> wsi4ki moduli trqbwa da bydat zaredeni i tehnite promenliwi da bydat slojeni
--> sairax ([email protected]) has joined #irchelp
<ircnewbie> source scripts/script.tcl
<ircnewbie> tazi liniq zarejda script.tcl ot scripts/ dir-a
<ircnewbie> wsi4ki scriptowe trqbwa da bydat slojeni tam
<ircnewbie> makar 4e mogad da bydat slojeni nawsqkade no trqbwa da zadadete cqlata pyte4ka
<ircnewbie> nqkoi osnowni skriptowe koito winagi se zarejdat sa alltools.tcl i action.fix.tcl
<ircnewbie> channel modula osigurqwa poddrujka na kanalite za bota
<ircnewbie> bez nego nqma da mojete da go nakarate da wleze w kanal ili da zapazite spec nastroiki zak anal
<ircnewbie> nastroikite koito wyrwqt kym modula sa
<ircnewbie> set chanfile "LamestBot.chan" failyt kadeto shte se pazqt nastroikite za chans
<ircnewbie> set ban-time 120 kolko wreme banowete shte stoqt w mins
<ircnewbie> ako slojite towa 0 bota nqma da gi premahwa
<ircnewbie> set exempt-time 60 kolko wreme exempts shte stoqt w mins pak
<ircnewbie> channel add #channel { SETTINGS }
<ircnewbie> dobawq stati4en kanal
<ircnewbie> ima mnogo razli4ni opcii koito mojete da dobawite
<ircnewbie> nqkoi ot tqh shte obqsnim
<ircnewbie> chanmode +/-<modes>
--> Vizor ([email protected]) has joined #irchelp
<ircnewbie> tazi nastroika shte pozwolqwa na bota da promenq mods w kanala
<ircnewbie> winagi shte dobawq + ili - modes
<-- bocman__ ([email protected]) has left #irchelp
<ircnewbie> ako kanala wi ima +k mojete da go slojite tuk za da moje bota da wleze
<ircnewbie> primer za towa e channel add #IRCHelp { chanmode "+k edi" }
--- k|bbl is now known as KoNDoM[mACh]
<ircnewbie> revenge-mode 1
<ircnewbie> nastroika koqto definira kak bota shte nakazwa bad users
<ircnewbie> ima 4 level-a
<-- Joseph has quit ()
<ircnewbie> 0 deop 1 deop +d za kanala 2 deop +d za kanala i kick
<ircnewbie> 3 deop +d za kanala sled koqto kick/ban
<ircnewbie> need-* sa sledwashtite
<ircnewbie> towa e koshmara za powe4eto users koito wlizat tuka ;bbb
<ircnewbie> need-op { putserv "PRIVMSG CS :op all" }
--- main[brb] is now known as main
<-- TOYO has quit (Connection reset by peer)
<ircnewbie> towa shte nakara bota da startira skripta w skobite ako nqma @
--> TOYO ([email protected]) has joined #irchelp
<-- sairax ([email protected]) has left #irchelp
<ircnewbie> skripta trqbwa da e po malak ot 120 simwola .. ako izpolzwate TCL skript kato getops.tcl ili botnetop.tcl ne bi trqbwalo da izpolzwate tezi nastrojki
<ircnewbie> za drugite need-* e identi4no
<ircnewbie> ako iskate po golqma efektiwnost mojete da zamenite putserv s putquick!
<ircnewbie> shte obqsnim po kysno w TCL prog 4asta zashto ;b
<ircnewbie> channel set <chan> +/-<setting>
<ircnewbie> ima mnogo razli4ni opcii za kanal koito mojete da definirate
<ircnewbie> mogat da bydat pusnati ili izkl. s + ili - pred tqh
<ircnewbie> enforcebans - izritwa hora koito imat ban w kanala
<ircnewbie> dynamicbans - ostawq samo aktiwnite banowe za kanala kogato sa nujni
<ircnewbie> userbans - pozwolqwa na drugi potrebiteli w kanala da slagat banowe
<ircnewbie> dynamicexempts - ostawq samo aktiwnite +e w kanala kogato ima nujda
<ircnewbie> userexempts - pozwolqwa da se slagat +e direktno
<ircnewbie> dynamicinvites i userinvites ni se struwat dosta typi nastroiki
<ircnewbie> autoop - awtomati4no dawa operatorski prawa na potrebiteli kogato wlqzat w kanala
<ircnewbie> bitch - samo potrebiteli s +o flag mogat da imat operatorski prawa w kanala
<ircnewbie> greet - kazwa infoto na potrebitelqt kogato wleze w kanala
<ircnewbie> protectops - dawa otnowo +o na potrebitel koito e bil deopnat
<ircnewbie> protectfriends - dawa otnowo operatorski prawa na +f potrebitel na koito sa bili otneti
<ircnewbie> dontkickops - nikoga ne rita +o potrebiteli
<ircnewbie> wasoptest - prawi wasop test za +stopnethack
<ircnewbie> inactive - nikoga ne wliza w tozi kanal
<ircnewbie> ili go napuska ako we4e e w nego polezno e kogato iskate da nakarte botyt da izlezeot kanalyt bez da gubite nastroikite mu
<ircnewbie> statuslog - zapiswa statusyt na kanala wseki 5 minuti
<ircnewbie> stopnethack - premahwa operatorskite prawa na wseki koito wleze w kanalyt s serverops (sled split)
<ircnewbie> cycle - cirkulira kanala kogato nqma operatorski prawa
<ircnewbie> revenge - predpriema deistwiq srestu wseki koito ritne, deopne +f potrebitel systo taka i kym sebe si
<ircnewbie> sectet - ne dawa informaciq za kanalyt w botnetyt
<ircnewbie> shared - podelq nastroikite na potrebitelite za kanalyt
<ircnewbie> autovoice - kara botyt da sledi za +v potrebiteli
<ircnewbie> modula dns osigurqwa asinhroniziranna dns poddryjka
<-- misery` ([email protected]) has left #irchelp
<ircnewbie> yy kak go napisah twa ;b
<-- aCiD_MaX has quit (Ping timeout: 180 seconds)
<ircnewbie> towa shte izbegne dylgite periodi kogato bota uwiswa 4akaiki resolv na hostname
--> aCiD_MaX ([email protected]) has joined #irchelp
<ircnewbie> drug modul e server.mod koito dabawq osnownata poddrujka za IRC
<ircnewbie> trqbwa da zaredite tozi modul ako iskate bota wi da wleze w IRC
--> bocman__ ([email protected]) has joined #irchelp
<ircnewbie> kato dobawite loadmodule dns w konf. fajla
--- bocman__ is now known as o6te`li`veee
<ircnewbie> dopylnitelnite nastroiki sa set net-type 0
<ircnewbie> towa e kakwa mreja izpolzwate
--- o6te`li`veee is now known as bocman__
<ircnewbie> w konfa sa pokazani primeri
<ircnewbie> set nick "LamestBot" psewdonimyt kojto botyt wi ste izpolzwa
<ircnewbie> set altnick "L?m?stB?t" alternatiwniqt psewdonim kojto botyt wi ste izpolzwa
<ircnewbie> ako izpolzwate ? bota shte generira slu4aen simwol
<ircnewbie> set realname "/msg LamestBot hello" ircname poleto na bota
<ircnewbie> set init-server { putserv "MODE $botnick +i-ws" }
<ircnewbie> komandata koqto pyrwa shte se startira kogato bota se wyrje kym irc
<ircnewbie> wnimanie !!!
<-- bocman__ ([email protected]) has left #irchelp
<ircnewbie> mnogo potrebiteli ot neznanie dobawqt red w koito bota im se id kym NS
<ircnewbie> NE GO PRAWETE !!!
<ircnewbie> towa e security hazard zashtoto pri .status all se wijdat tezi poleta
<ircnewbie> i nqkoi shantaf moje da wi spuka bota ot kill
<ircnewbie> ;vbb
<ircnewbie> set servers { irc.change.this:6667 irc.example.com}
<ircnewbie> syrwirite koito bota izpolzwa
<ircnewbie> set strict-host 0 promenete go na 1 ako ne iskate botyt wi da propuska '~' pred user@host
<ircnewbie> CTCP modulyt osigurqwa normalnite ctcp otgowori koito se o4akwat
<ircnewbie> bez nego CTCP Chat nqma da raboti
<ircnewbie> set ctcp-mode 0
<-- AMERICAN-BOY has quit ()
<ircnewbie> ima 3 level-a kotio nastroiwat kak ctcp modula
<ircnewbie> da otgowarq
<ircnewbie> 0 normalno 1 ignore wsi4ki ctcp oswen chat i ping
<ircnewbie> ot +o
--> jabeto__d^ge ([email protected]) has joined #irchelp
<-- jabeto__d^ge ([email protected]) has left #irchelp
<ircnewbie> 2 normalno no nqma da otgowarq na powe4e ot X ctcp za Y secs
<ircnewbie> definirano ot 'set flood-ctcp'
<ircnewbie> Ima o6e nqkolko promenliwi koito ste wi se storqt interesni ctcp-version, ctcp-finger, i ctcp-userinfo
<ircnewbie> nastroite gi po washe jelanie
<ircnewbie> drug modul e IRC .. toi kontrolira zaimodeistwieto na bots w IRC
<ircnewbie> pozwolqwa na bota da wliza w chans, zanimawa se s potrebitelskata lista na chans i t.n
<ircnewbie> dopylnitelnite nastroiki sa set max-modes 30
<-- iNT04h has quit (Read error: 104 (Connection reset by peer))
<ircnewbie> opredelq limita na glob +b +e modowe na server-a
<ircnewbie> set max-bans 20 max broi bans koito bota moje da sloji w kanala
--> iNT04h ([email protected]) has joined #irchelp
<-- For_All_Time has quit ()
<ircnewbie> drug security hint e da se unbind ident comandata
<ircnewbie> unbind msg - ident *msg:ident
<ircnewbie> taka mojete da predotwrateite mnogo opiti za TO poradi opiti da se poznae pass na potrebitel
<ircnewbie> set modes-per-line 3
<ircnewbie> kolko mod-a mogat da se prashtat kym server-a
<ircnewbie> w UnibG e 4
<ircnewbie> transfer modula osigurqwa poddryjka na dcc send/recv
<ircnewbie> i transfer na potrebitelskiqt file m/ share bots
<ircnewbie> ne iziskwa drugi moduli
<ircnewbie> share modula osigurqwa podelqne na potrebitelskiqt file m/ 2 direktorno swryzani bota
<ircnewbie> notes modula wi da wa wyzmojnost da zapazwate msg m/ potrebitelite si
<ircnewbie> set notefile "LamestBot.notes"
<ircnewbie> imeto kadeto shte se pazqt
<ircnewbie> interesna nastroika koqto wyrwi s nego e set allow-fwd 0
<ircnewbie> 0 za isklu4eno 1 za wklu4eno
<ircnewbie> console modula osigurqwa zapazwaneto na conzolnite nastroiki pri wlizaneto w bota
<ircnewbie> i izpylnenieto na console komandata
<ircnewbie> compress modula osigurqwa poddryjka na file kompresiq
<ircnewbie> izpolzwa se da se kompresirat file 4rez TCL ili da se predawa potrebitelskiqt file kompresiran pri shell za da se spesti skorost
<ircnewbie> Filesys osigurqwa zona w koqto potrebitelite mogat da zapazwat fajlowe
<ircnewbie> stozi modul botyt se izpolzwa kato file server
<ircnewbie> set files-path "/home/mydir/eggdrop/filesys" root direktoriqta na file sist
<ircnewbie> -a
<ircnewbie> set incoming-path "/home/mydir/eggdrop/filesys/incoming" kade shte se upload files
<ircnewbie> eggdrop moje da kriptira washiqt potrebitelski file taka 4e da imate zashtiteni paroli
<ircnewbie> zabelejete 4e ako posle si mahnete modula naprimer izpolzwate nqkoi drug modul kato md5
<ircnewbie> powe4e nqma da mojete da izpolzwate potrebitelskiqt si file
<ircnewbie> eggdrop nqma da startira bez kriptirasht modul
<ircnewbie> modula ne iziskwa nikoi drug da byde zareden
--> AMERICAN-BOY ([email protected]) has joined #irchelp
<ircnewbie> slojete liniqta checkmodule blowfish w conf file-a si za da go zaredite
<ircnewbie> towa e checkmodule zashtoto sled restart toi we4e shte byde zareden
<ircnewbie> seen modula osigurqwa mnogo prosti seen cmd prez msg w kanala ili dcc
<ircnewbie> uptime modula dokladwa uptime statistiki kym http://uptime.eggheads.org
<ircnewbie> assoc modula osigurqwa assoc poddryjka toest imenuwane na kanali w botnet-a
<ircnewbie> wire modula osigurqwa wsi4ki standartni wire cmds prez dcc
<ircnewbie> toi e kriptiran partyline komunikator sywmestim s wire.tcl
<ircnewbie> woobie modula e samo za demostratiwna cel
<ircnewbie> ako tyrsite na4alni to4ki w pisaneto na moduli woobie moje da wi swyrshi work
<-- Jimbo_ has quit (Ping timeout: 180 seconds)
<ircnewbie> sega we4e mojem da se wyrnem kym startiraneto na bota
<ircnewbie> ako nqkoi oshte go pomni kade e )
<ircnewbie> ako ste izpolzwali make install bez DIST opciq naprawete modules dir
--> Jimbo_ ([email protected]) has joined #irchelp
<ircnewbie> mkdir modules/ ; mv *.so modules/
<ircnewbie> ako ne prosto prodyljite s eggdrop Lamestbot.conf
<ircnewbie> Ako washiqt eggdrop ne poddarja ssl mojete da izpolzwate stunnel da go swyrjete kym ircs
<ircnewbie> wzemete stunnel ot http://irchelp.unibg.org/irchelp/Downlo ... .21.tar.gz
<-- AMERICAN-BOY has quit (Connection reset by peer)
<ircnewbie> $ stunnel -P ~/ -v2 -A ./server.pem -r ircs.server.com:994 -c -d 127.0.0.1:6667
<ircnewbie> towa e komandata s koqto da go startirate
<ircnewbie> ako polu4ite greshka "Error: * USER FILE NOT FOUND!" startirajte bota s '-m' opciq
<ircnewbie> ./eggdrop -m eggdrop.conf
--> AMERICAN-BOY ([email protected]) has joined #irchelp
<ircnewbie> ako ne iskate wseki put pri logwaneto da wlizate w direktoriqta da startirate bota mojete da si naprawite edin fajl (kojto primerno se namira w eggdrop direktoriqta wi)
<ircnewbie> malko paste...
<ircnewbie> cat > start
<ircnewbie> #!/bin/bash
<ircnewbie> /home/Randal/eggdrop1/eggdrop eggdrop.conf
<ircnewbie> zatworete go kato natisnete ctrl+c
<ircnewbie> chmod +x start
<ircnewbie> i mojete da go startirate prosto kato napishete start, stiga dir-a da e waw washiqt path
<ircnewbie> mojete da go dobawite po sledniq na4in
<ircnewbie> Ako 6elyt wi e csh/tcsh: setenv PATH ".:$PATH"
<-- Jimbo_ has quit (Ping timeout: 180 seconds)
<ircnewbie> Ako 6elyt wi e sh/bash/ksh: PATH=".:$PATH"
<ircnewbie> export PATH
<ircnewbie> ili da naprawite konf fajla eggdrop.conf i da napishete prosto ./eggdrop
--> NetherShadow (~[email protected]) has joined #irchelp
<ircnewbie> ako polu4ite slednata greshka "ld-elf.so.1: Shared object "libtcl80.so.1" not found" ili "eggdrop: error in loading shared libraries / libtcl8.4.so: cannot open shared object file: No such file or directory" prosto konf scripta tarsi na pogreshno mqsto TCL
<ircnewbie> izglejda e kompiliran s edna versiq na TCL a tarsi druga
<ircnewbie> moje bi sys adm. e upgrade na po-nowa i ne vi e saobstil
<ircnewbie> w tozi slu4aj trqbwa da precompile bota
<ircnewbie> moje bi admina pri upgrade e zabrawil da mahne starata wersiq i scripta tarsi za fajlowe w greshno mqsto ili greshna versiq na tcl.h
<ircnewbie> i libtcl*
<ircnewbie> warwete i go pre4ukajte i mu kajete da install TCL kato horata ;b
<-- AngelHell has quit (Read error: 104 (Connection reset by peer))
<ircnewbie> mojete da pitate i ./configure --with-tcllib=<pyt-do-tcl-lib> --with-tclinc=<pyt-do-tcl-h>
--- TheCr0w is now known as TheCr0w`tapnq
<-- iNT04h has quit (Read error: 104 (Connection reset by peer))
<ircnewbie> mojete da gi namerite po na4ina, kojto predi towa opisahme taka ste kajete na scripta kade da tarsi TCL fajlowete
--- Toshk0 is now known as DCC`help
<ircnewbie> ako polu4ite greshka ot vida "Unresolved symbol 'Tcl_AppendResult'" probwajte predniqt na4in. Ako ne se polu4i nisto i ima te root na ma6inata prekompilirajte TCL s slednite opcii './configure --enable-shared' i go prekompilirajte
--> Jimbo_ ([email protected]) has joined #irchelp
--> Nudy ([email protected]) has joined #irchelp
<ircnewbie> w protiwen slu4aj izpolzwajte make static i make install DEST="path"
<ircnewbie> eto nqkolko tipi4ni greshki pri startiranet na eggdrop
<ircnewbie> Error: Invalid command name "channel" ili Can't load modules channels: modules/channels.so
<ircnewbie> naj weroqtno se opitwate da startirate bota ot negowata src dir i ste zabrawili da startirate make install, drug reshenie na problema e da compile bota stati4no
<ircnewbie> make static vmesto make
<-- DreamWave has quit (Ping timeout: 180 seconds)
<ircnewbie> Error: Couldn't grab nearby port
<ircnewbie> tazi greshka ozna4awa 4e host-a kojto izpolzwate e neprawilen
--- DCC`help is now known as Toskh0
<ircnewbie> Towa NE zna4i 4e portyt kojto ste izbrali se izpolzwa we4e
--> DreamWave (~[email protected]) has joined #irchelp
<ircnewbie> nezawisimo kakwo ste wi kajat drugi, egg ne dawa greshka kogato porta we4e se izpolzwa toj prosto preminawa awtomati4no na drug
<ircnewbie> Error: Hostname self-lookup failed
<ircnewbie> tazi greshka se polu4awa ako host-a na mashinata wi e slojen za nesto koeto ne moje da se resolv
<ircnewbie> ako ste na shell trqbwa da se swyrjete s admina si no mojete i da se opitate da slojite
<ircnewbie> my-ip na 127.0.0.1
<ircnewbie> i za hostname localhost
<ircnewbie> ako ne smqtate da izpolzwate virt. host
<ircnewbie> Error: Please select an encryption module
<ircnewbie> towa ozna4awa 4e ne ste zaredili encr. modul prosto otworete konf fajla
--> iNT04h ([email protected]) has joined #irchelp
<ircnewbie> i mahnete # pred checkmodule blowfish
--- zod is now known as zod\away\
<ircnewbie> Error: * CAN'T WRITE TO TEMP DIR
<ircnewbie> naprawete dir tmp w $HOME direktoriqta si (mkdir ~/tmp)
<ircnewbie> sled koeto w konf fajla slojete set temp-path "/tmp", kato promenite pytqt na /home/foobar/tmp.
<ircnewbie> Ako wsi4ko e ok bota ste wleze w opisaniq kanal v konfa
<ircnewbie> slu4aj 4e ne wleze sigurno ste sbarkali nesto w konf-a ili 99% bota ima kline na servera
<ircnewbie> taka 4e smenete server-a
<-- aCiD_MaX has quit (Read error: 54 (Connection reset by peer))
<ircnewbie> ako iskate bota wi non-stop da e online, i ne iskate neprekysnato da se logwate na shell-a vi
<ircnewbie> vseki put stom go nqma i da go puskate nanowo
<ircnewbie> ste wi pokajem prost crontab
<ircnewbie> kojto ste prawi towa wmesto was
<-- ide ([email protected]) has left #irchelp
<ircnewbie> wlezte w dir-a na bota wi i naprawete slednoto
--> ide ([email protected]) has joined #irchelp
<ircnewbie> cat > crontab
--> aCiD_MaX ([email protected]) has joined #irchelp
--- Toskh0 is now known as Toshk0
<-- aCiD_MaX has quit (Read error: 54 (Connection reset by peer))
<ircnewbie> 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/user/eggdrop/botchk LameBot >/dev/null 2>&1
<-- AMERICAN-BOY has quit ()
<ircnewbie> i zatworete s CTRL+C
--> INT04h[OFF] ([email protected]) has joined #irchelp
<ircnewbie> crontaba ste prowerqwa na vseki 5 minuti dali bota e pusnat i ako ne ste go startira vednaga
<ircnewbie> neka hwurlim oko na botchk fajla
<-- iNT04h has quit (Ping timeout: 180 seconds)
<ircnewbie> crontab-a, kojto ste wi pokajem e naprawen samo za sledniq botchk fajl, ne nosim otgowornost ako ne ba4ka s drugi
--> LosH1a^ ([email protected]) has joined #irchelp
<ircnewbie> cd scripts/
<ircnewbie> cp botchk ..
<ircnewbie> mcedit ../botchk
<ircnewbie> promenete go kakto ste wi paste
<ircnewbie> (paste type = long)
<ircnewbie> botdir="/home/user/eggdrop1.6.12"
<ircnewbie> botscript="eggdrop $1.conf"
<ircnewbie> botname="$1"
<ircnewbie> userfile="$1.user"
<ircnewbie> cd $botdir
<-- NetherShadow has quit (Ping timeout: 444 seconds)
<ircnewbie> if test -r pid.$botname
<ircnewbie> then
<ircnewbie> botpid=`cat pid.$botname`
<ircnewbie> if `kill -CHLD $botpid >/dev/null 2>&1`
<ircnewbie> then
<ircnewbie> exit 0
--- Toshk0 is now known as Problem`DCC
<ircnewbie> fi
<ircnewbie> echo ""
<-- JRok has quit (Real programmers use: COPY CON PROGRAM.EXE)
<ircnewbie> echo "Stale pid.$botname file, erasing..."
<ircnewbie> rm -f pid.$botname
<ircnewbie> fi
<ircnewbie> if test -r CANTSTART.$botname
<ircnewbie> then
<ircnewbie> if test -r $userfile || test -r $userfile~new || test -r $userfile~bak
<ircnewbie> then
<-- LosH1a^ ([email protected]) has left #irchelp
<ircnewbie> echo ""
<ircnewbie> echo "Userfile found, removing check file 'CANTSTART.$botname'..."
<ircnewbie> rm -f CANTSTART.$botname
--> JRok ([email protected]) has joined #irchelp
<ircnewbie> fi
<ircnewbie> fi
<ircnewbie> if test ! -f CANTSTART.$botname
<ircnewbie> then
<ircnewbie> echo ""
<ircnewbie> echo "Couldn't find bot '$botname' running, reloading..."
<ircnewbie> echo ""
<ircnewbie> if test -r $userfile
<ircnewbie> then
<ircnewbie> ./$botscript
<ircnewbie> exit 0
<ircnewbie> else
<ircnewbie> if test -r $userfile~new
<ircnewbie> then
--> NetherShadow (~[email protected]) has joined #irchelp
<ircnewbie> echo "Userfile missing. Using last saved userfile..."
<ircnewbie> mv -f $userfile~new $userfile
<ircnewbie> ./$botscript
<ircnewbie> exit 0
<ircnewbie> else
<ircnewbie> if test -r $userfile~bak
<ircnewbie> then
<ircnewbie> # Userfile is missing, use backup userfile.
<ircnewbie> echo "Userfile missing. Using backup userfile..."
<ircnewbie> cp -f $userfile~bak $userfile
<ircnewbie> ./$botscript
<ircnewbie> exit 0
<ircnewbie> else
<ircnewbie> # Well, nothing to work with...
<ircnewbie> echo "No userfile. Could not reload the bot..."
<ircnewbie> echo "no userfile" > CANTSTART.$botname
<ircnewbie> exit 1
<ircnewbie> fi
<ircnewbie> fi
<ircnewbie> fi
<ircnewbie> fi
<ircnewbie> exit 0
<-- INT04h[OFF] has quit (Ping timeout: 180 seconds)
--> iNT04h ([email protected]) has joined #irchelp
<ircnewbie> sled kato go redaktirate i go save
<ircnewbie> cd ..
<ircnewbie> crontab crontab
<ircnewbie> za da widite dali crontab e zapomnil nstroikite wi napishete
<ircnewbie> crontab -l
<ircnewbie> ako bota wi prawi clone towa ozna4awa 4e scripta prowerqwash dali bota e pusnat
<ircnewbie> w washiqt crontab e neshto greshen
<ircnewbie> ne moje da zase4e dali bota e pusnat i winagi puska oshte edin
<ircnewbie> ima 2 pri4ini
<ircnewbie> 1st e 4e ne ste si config kato horata crontaba botchk ili confi fajla si
<ircnewbie> prowerete otnowo i oprawete greshkata ako ima
<ircnewbie> 2nd e 4e quote wi e prewishena, ako e taka dobre e da dobawite nqkolko linii w botchk
<-- Nudy has quit (Read error: 104 (Connection reset by peer))
<ircnewbie> ako sistemata wi ima cmd quota prowerete dali izkarwa neshto ot sorta na 'X days left', koeto ozna4awa, 4e quote-ta wi e prewi6ena i trqbwa da dobawite slednite linii kym skripta
<ircnewbie> paste ;b
<ircnewbie> if [ -n `quota -v | grep days` ]; then
<ircnewbie> echo Quota exceeded!
<ircnewbie> exit 0
<ircnewbie> fi
--> bocman__ ([email protected]) has joined #irchelp
<ircnewbie> sega egg-a syzdawa failowete w koito se zapiswat user i chans tezi files za zadaljitelni
<ircnewbie> edinpyt startiran bota wi s -m opciq
--- bocman__ is now known as o6te`li`bre
<ircnewbie> pri sledwashto puskane mojete da q propusnete
--- o6te`li`bre is now known as bocman__
--> TOYO_ ([email protected]) has joined #irchelp
<-- TOYO has quit (Read error: 104 (Connection reset by peer))
--- Problem`DCC is now known as Toshk0[work]
--- TheCr0w`tapnq is now known as TheCr0w
<ircnewbie> sled kato startirate bota trqbwa da wlezete w IRC i da izpratite msg kym bota za da wi razpoznae kato sobstwenik
<ircnewbie> mnogo potrebiteli sreshtat zatrudnenie da wlqzat w bota si sled kato sa smenili IP/HOST/ident ot tozi s kojto sa dobaweni w bazata danni na bota
<ircnewbie> resheniqta na tozi problem sa nqkolko i elementarno prilojimi
<-- bocman__ ([email protected]) has left #irchelp
<ircnewbie> nai lesnoto e prosto da se identnete w bota /msg %b ident password handle
<ircnewbie> sled koeto pratete dcc zaqwka za chat
<ircnewbie> /dcc chat %b ili /ctcp %b chat
<ircnewbie> nezabrawqite da prowerite dali nqmate +S flag zashtoto bota moje da ne se e ID w NS i da ne mojete da polu4ite otgowor
<ircnewbie> na zaqwkata si za chat
<ircnewbie> slu4wa se bota da e lagnat i ot prekalebno mnogo zaqwki da wi e ignore
<ircnewbie> ako nqmate +f
<ircnewbie> w tozi slu4ai izpolzwaite telnet bothost userport i voala ;b
<ircnewbie> ignore-a nqma da waji zashtoto host-a s koito wlizate pri telnet e -telnet!*@*
<ircnewbie> i towa ako ne pomogne i bota wi e swyrzan w nqkoi drug bot w koito imate prawa izpolzwaite relay komandata
<ircnewbie> za da relay kym bota si
<ircnewbie> ako pri relay kym drugiq bot po tymnite simwoli ne se pokazwat prawilno i zlizat w podoben wid Hey [1mNick![0m My name is [1mBot1.1[0m blah blah
<ircnewbie> ozna4awa 4e trqbwa da izpolzwate .fixcodes off
<ircnewbie> kato za na4alo trqbwa da znaete kak da spirate washiqt bot
<ircnewbie> ako iskate da go sprete ot unix prompta napishete kill -9 `cat pid.Botname` kato predi towa ste wlezli w direktoriqta na bota
<ircnewbie> zabelejete kawi4kite
<ircnewbie> smenete botname s imeto na washiqt bot ako towa ne pomogne i dade greshka ot wida
<ircnewbie> no such process
<ircnewbie> izpolzwaite ps za da widite kakwi procesi sa pusnati
<ircnewbie> sintaksisa se razli4awa ot unix do unix mojete da opitate nqkolko dokato namerite razboteshtiq za washeto OS
<ircnewbie> ps -axu | grep washiqtusername
<ircnewbie> ps -Af | grep washiqtusername
<ircnewbie> ps -ef | grep washiqtusername
<ircnewbie> towa shte pokaje wsi4ki procesi w koito se sadyrja washiqt username
<ircnewbie> namerete si egg-a i nomera na procesa obiknoweno nqkoi ot pyrwite 3 ili 4 cifri koito ps wi wryshta
<ircnewbie> sled towa prosto napishete kill -9 <nomera na procesa>
--- iNT04h is now known as iNT04h[away]
<ircnewbie> towa trqbwa da spre bota wi ..
<ircnewbie> ako wi se slu4i da widite msg "received terminate signal" to4no kogato botyt wi izliza ot IRC zna4i nakoj drug e izpolzwal tazi komanda sprqmo wa6iqt bot )
<ircnewbie> nai weroqtno adm ili nqkoi drug potrebitel polzwasht washeto potrebitelsko ime e killnal bota
<ircnewbie> ili prosto pc-to se e restart
<ircnewbie> ako imate startiran crontab bota awtomati4no shte se pusne kogato sistemata se wyrne obratno kogato se wyrne w e.net
<ircnewbie> ot komandniqt red mojete da restartirate bota kato zamenite -9 s -HUP
<ircnewbie> primer kill -HUP 666
<ircnewbie> (greetings to nik ;b)
--- NetherShadow is now known as Nik666
<ircnewbie> wsi4ki komandi mojete da widite na sledniq adres http://irchelp.unibg.org/irchelp/Articles/Egghelp.htm
--- ircnewbie sets modes [#irchelp +v Nik666]
<ircnewbie> kakto i obqsneniqta na whois flagowete
<ircnewbie> 4esto se slu4wa i na nas da ne haresame psewdonima na bota
<-- ide has quit (Ping timeout: 180 seconds)
<ircnewbie> i ni marzi da se ketrim po shella i zatow mojete da go smenite prez DCC kato napishete
--> ide ([email protected]) has joined #irchelp
<ircnewbie> .set set-nick "new"
<ircnewbie> no ne zabrawqite 4e w conf fajla nastroikata keep-nick trqbwa da e 0
<ircnewbie> mojete da go naprawite i s sledniqt skript http://irchelp.unibg.org/irchelp/Downlo ... OTNICK.TCL
<ircnewbie> shtqhme da spomenem kak da link && share bots no wremeto ni pritiska a oshte ne sme po4nali nai interesnata 4ast ( TCL )
<ircnewbie> zatowa mojete da pro4etete podrobno howto na http://irchelp.unibg.org/irchelp/Articles/botnet.htm
<ircnewbie> golemite kanali iziskwat seriozno administrirane na botowete i redowno po4istwane na potrebitelskata lista ot prepylwane
<ircnewbie> wijdali sme dosta botowe s stotici potrebiteli
<ircnewbie> koito samo zatormozqwat rabotata na bota ... ako iskate da se otyrwete ot potrebiteli i iskate da go naprawite po po bezboleznen na4in
<ircnewbie> izpolzwaite weed skripta koito wyrwi s distribuciqta wi
<ircnewbie> pri izpolzwane na eggy wseki adm se celi kym efektiwnost kakto na bota taka i na potrebitelite
<ircnewbie> mnogo ot administratorite pribqgwat kym pub komandi
<ircnewbie> (!op !devoice !ban) tezi komandi NE wyrwqt po princim kym sorsyt na botyt
--- TOYO_ is now known as TOYO
<ircnewbie> trqbwa wi da zaredite otdelen skript koito da bindwa tezi komandi
<ircnewbie> w tyrseneto si na dobri skriptowe mojete da poglednete nashite arhiwi
<ircnewbie> http://irchelp.unibg.org/irchelp/IRC/tcls.htm, http://mirror.krychma.net/ftp.eggheads. ... p/scripts/
<ircnewbie> ako ne namerite TCL skript NIKADE drugade mojete da ni pishete na [email protected]
<ircnewbie> s opisanie kakwo iskate da prawi i shte wi go napishem ;bb
<ircnewbie> druga sreshtana prishtqwka na bot ownerite e te da prawqt statistika za kanalite im
--> kfjf ([email protected]) has joined #irchelp
<ircnewbie> kato nai populqren i tabilen e izwestniqt stats.mod
<-- kfjf has quit (Read error: 104 (Connection reset by peer))
<ircnewbie> toi e mnogo po dobyr i nadejden ot tcl skriptowete koito izpylnqwat shodni procesi
<ircnewbie> modula wklu4wa w sebe si slednite komandi
<ircnewbie> !top10/!top20/!stat/!place/!ttop10/!ttop20/!tstat/!tplace/!wordstats/!topwords
<ircnewbie> ako iskate da dobawite i !seen cmd wi trqbwa ili modul ili skript koito da prawi towa
<ircnewbie> modulite sa po byrzi w towa otnoshenie no te trqbwa da se kompilirat na shella zaedno s bota
<ircnewbie> ako ste dobre zapoznat kak stawa towa mojete da install sledniq
<ircnewbie> http://irchelp.unibg.org/irchelp/Downlo ... 1.0.tar.gz, http://irchelp.unibg.org/irchelp/Downlo ... 3.1.tar.gz
<ircnewbie> 2nd e dobawka kym 1st ;b
<ircnewbie> koworeiki za statistiki mojete da dobawite statistika za potrebitelskata baza danni na bota
<ircnewbie> kakto i mngoo drugi statistiki prosto razgledaite stranicata ni ;b
<ircnewbie> (ehh 4e reklama )
<ircnewbie> powe4eto potrebiteli namirat za zabawno bota im da gi pozdrawqwa pri wlizaneto w kanala
<ircnewbie> no dosta sreshtat trudnost pri slaganeto na takiwa msgs
<ircnewbie>
<ircnewbie> problemite mogat da bydat nqkolko
<ircnewbie> 1st e ako ne ste slojili +greet za kanala w koito iskate da wi pozdrawqwa
<ircnewbie> ako ste sigurni 4e towa e nared togawa poglednete opciqta wait-time w conf file-a
<ircnewbie> po na4alo stoinosta i e 180 secs aka 3 mins
<ircnewbie> trqbwa da ste wyn ot kanala za 3 mins
<ircnewbie> ako prosto part/join nqma da swyrshi rabota
<ircnewbie> oswen ako ne go prawite za 3 mins )
<ircnewbie> ako iskate non stop da wi pozdrawqwa slojete go na 0 ili 1
<ircnewbie> drug sreshtan problem pri powe4eto potrebiteli koito puskat botowete si ot shelowe e mqstoto
--- iNT04h[away] is now known as iNT04h
<ircnewbie> a wi uwerqwame 4e edin bot moje da glytne dosta ako ne wnimawate kakwo prawite
<ircnewbie> mojete da mahnete logwaneto na serverskite disconnect/connect (+s ot logfile komandata)
<ircnewbie> ili prosto se molete towa da ne se slu4wa otnowo .. koeto i ne se slu4wa 4esto ;)
<ircnewbie> mojete da pregledate skriptowete si zashtoto moje i nqkoi ot tqh dap rawi tezi porazii
<ircnewbie> kato goworim za logowe da obyrnem wnimanie na paranoi4nite bot administratori koito iskat da znaqt kakwo non stop stawa s bota im
<ircnewbie> i iskat da izprashtat logs na maila si mogat da slojat 5 3 * * * mail [email protected] < /home/moquser/eggdrop/moqbot.log.yesterday w crontab file-a si
<ircnewbie> ima i razraboten log analizator no za nego nqma time ;b shte go postnem na site-a ot tam mojete da go widite
<ircnewbie> dosta cute e
--> Toshk0 ([email protected]) has joined #ircHelp
<ircnewbie> hmmm mislim 4e s towa poiz4erpahme temata za izpolzwaneto na eggdrop .. sega da pristypim kym TCL skriptinga
<ircnewbie> a da ne zabrawim i neshto dosta dosadno i banalno
<ircnewbie> 4esto wlizat hora w kanala moleiki nqkoi da im dade bot za kanala im ili podobni diwotii
<ircnewbie> ne iskame da sme grubi no taka samo stawate za smqh .. nikoi ne bi dal bota si da se polzwa ei taka
<ircnewbie> wmesto da se izlagate i da molite horata naprawete si go sami
<ircnewbie> fakt e 4e powe4eto potrebiteli polzwat windows sistemi i botowete im trqbwat samo dokato sa w iRC
<ircnewbie> prosto prishtqwki da imat bot w kanala poneje towa stana dosta populqrno poskoro
<ircnewbie> a i dori da ne ste na win prosto pro4etete slednite tutoriali i se nau4ete kak sami da si pusnete bot
<-- Suzi_ has quit (Success)
<ircnewbie> wse pak gospod wi e dal mishka s 2 butana monitor i internet
<ircnewbie> a 4i4o geits wirus ;b
<ircnewbie> taka 4e se porazmyrdaite
<Blady>
<ircnewbie> Za Win9x/NT: http://irchelp.unibg.org/irchelp/IRC/WEggtut.htm
<ircnewbie> Za *NIX Bazirani OS: http://irchelp.unibg.org/irchelp/IRC/Eggtut.htm
<ircnewbie> Eggdrop komandi: http://irchelp.unibg.org/irchelp/Articles/Egghelp.htm
<ircnewbie> eggdrop book-a shte go ka4im posle
<ircnewbie> Blady nqma li Q? ;b
<ircnewbie> po4wame sega TCL-a we4e
--> aCiD_MaX ([email protected]) has joined #irchelp
<ircnewbie> shte wi razqsnim kak da prawite skriptowe za eggdrop botowe
<ircnewbie> shte bydat izpolzwani primeri za da bydat obqsneni komandite i shte se opitame da naprawim wsi4ko wyzmojno
<ircnewbie> nai prosto za da go razberete
<ircnewbie> sled towa bi trqbwalo da znaete kak da pishete razli4ni widowe skriptowe .. shte razberete opisanoto w tcl-commands.doc i man stranicite
<ircnewbie> pone se nadqwame
<ircnewbie> predlagame wi da go pregledate sled kato swyrshi lekciqta zashtoto ako razberete wsi4ko za koeto se gowori tyk
<ircnewbie> i znaete powe4eto komandi i binds w tcl-commands shte bydete experti w pisaneto na scripts za eggys
<Nik666> ne pravite li pauza za vyprosi, komentari, masaj na prystite na lektora ? ;-)
<ircnewbie> TCL ezikyt ne idwa spec ot Eggdrop. towa e ezik izpolzwan ot egg
<ircnewbie> heheh ami popitah Blady toi nishto ne kaza
<Blady> ami
<Blady> kakvoto sa me pitali sym ask
<Blady> answer de
<Blady>
<Blady> ima edin vypros
<ircnewbie> ;) heheh
<ircnewbie> okay
<Blady> svyrzan s TCLs
<ircnewbie> da
<Blady> ama toi sled malko
<Blady>
<ircnewbie> e da iz4akat da swyrshi ;b
<ircnewbie> ili pone da stignem do 4asta w koqto e ;b
<Blady> to4no
<Blady> :>
<ircnewbie> a ima li wyprosi za eggdrop != TCL
<Blady> pri men ne
<ircnewbie> okay
<ircnewbie> ta tcl e s otworen kod
<ircnewbie> koeto ozna4awa 4e programata wi se puska kato izprashta source code-a (samiqt script) kym TCL programa koqto go obrabotwa
<ircnewbie> bez da go kompilira
<ircnewbie> kakto drugite ezici kato C
<-- Toshk0 ([email protected]) has left #ircHelp
<ircnewbie> towa ozna4awa 4e horata mogat winagi da poglednat w programata wi i da widqt kak e napisana
<ircnewbie> za towa shte imate po malko problemi s nesywmestimosta na razli4nite OS zashtoto TCL ezika e winagi edin i sysht nawsqkade
<ircnewbie> cmds w TCL skripta mogat da se razdelqt na 2 4asti
<ircnewbie> 1st e kogato startirate skripta a drugata kogato gi izwikate
<ircnewbie> cmd koito se startirat kogato startirate skritpa sa izwyn procedurite
<ircnewbie> po kysno shte obqsnim kak mojete da definirate proceduri
<ircnewbie> kakwo wsi4ki programni ezici trqbwa da slagate konkretni separatori m/ spec simwoli
<ircnewbie> za da znae ezika kakwo da prawi s tqh
<ircnewbie> TCL izpolzwa slednite simwoli za da definira sabitiqta
--- TheCr0w is now known as TheCr0w`zle
<ircnewbie> <> - po-golqm ot kolkoto i po-malko
<ircnewbie> tezi dwa znaka ne se izpolzwat w TCL sami, no se izpolzwat w dokumentaciqta za da indikirat kakwi parametri sa nujni ako iskate da izpylnite komanda
<ircnewbie> ""
<ircnewbie> Kawi4kite se izpolzwat za da markirat tekst
<ircnewbie> wsi4ko m/ "" se s4ita za tekst oswen ako ne e zaobgradeno s skobi ili markirano kato promenliwa
<ircnewbie> za tqh shte nau4ite po kysno
<ircnewbie> [ ] - skobi
--- main is now known as main[2-0]
<ircnewbie> skobite se izpolzwat za da se izpylne komanda
<-- markos (~[email protected]) has left #irchelp
<ircnewbie> pyrwata duma w skobite e komandata koqto iskate da izpylnite
<ircnewbie> a sledwashtite sa parametri na tazi komanda
<ircnewbie> syshto taka se izpolzwat w dokumentaciqta za da se indikira koi parametri sa optimalni i koi ne se iziskwat
<ircnewbie> za da se izpolzwa dadena komanda
<ircnewbie> { } skobi
<ircnewbie> izpolzwat se za da se pokaje koga neshto zapo4wa i spira
<ircnewbie> towa moje da byde 4ast ot skript ili komanda
--> Suzi_ ([email protected]) has joined #IRChelp
<ircnewbie> ( ) se izpolzwat za da definirat razli4ni nesta izpolzwat se systo da definirat 4e dadenata promenliwa e masiw
<ircnewbie> i 4e otdelnite 4asti na if komandata si prindalejat
<ircnewbie> primer za towa shte se dade posle
<ircnewbie> $ - promenliwa
<-- TheCr0w`zle has quit ()
<ircnewbie> towa definira 4e dumata koqto sledwa sled $ (bez prazni mesta w neq) e promenliwa
<ircnewbie> kazano nakratko
<ircnewbie> promenliwata e mqstoto kadeto wie zapazwate inf za po kysno izpolzwane
<ircnewbie> towa shte byde diskotirano po kysno i po obshirno
<ircnewbie> kogato TCL widi ; procedira s wsi4ko koeto e sled nego sqkash e now red
<ircnewbie> po takyw na4in mojete da slojite nqkolko cmds na edin red i da naprawite skripta si po kratyk
--> AMERICAN-BOY ([email protected]) has joined #irchelp
<ircnewbie> ako ne izpolzwate ; i slojite wtora liniq sled pyrwata TCL shte razbere towa kato parametyr kym pyrwata
<ircnewbie> (koqto e pred neq)
<ircnewbie> w powe4eto slu4ai shte dade greshka zashtoto komandata bi trqbwalo da nqma takyw parametyr
<ircnewbie> ili prawi skripta wi greshen
<ircnewbie> #
<ircnewbie> kogato tcl widi # w na4aloto na liniq toi smqta wsi4ko sled neq kato komentar
--- DreamWave is now known as DreamWave[CS]
<ircnewbie> i shte go ignore i shte presko4i na sledwashtata liniq
<ircnewbie> mnogo programni ezici kazwat ot kade zapo4wa komentara i kade swyrshwa kakto html definirate zapo4waneto na komentara
<ircnewbie> s <!--, a kydeto swyr6wa komentara pi6ete -->
<ircnewbie> ili w C kydeto komentara zapo4wa s /* i zawyr6wa s */
<ircnewbie> towa ne se otnasq za TCL
<ircnewbie> kogato ste slojili # w na4aloto wsi4ko sled tazi liniq
<ircnewbie> shte byde ignore
--> semkata ([email protected]) has joined #irchelp
<ircnewbie> zabelejete 4e ne mojete da slojite # posredata na liniq i da slojite komentar sled neq
<ircnewbie> zashtoto towa shte dade greshka
<ircnewbie> tcl nqma da widi komentara kato komentar
<ircnewbie> wmesto towa mojete da slojite ; pred # (;#) taka 4e TCL da interpretira neshtata
<ircnewbie> taka sqkash wsi4ko towa e bilo na now red i taka liniqta shte zapo4ne s #
<ircnewbie> malko e slojni4ko no taka e na4ina po koito raboti
<ircnewbie> i ne mislim 4e nqkoga shte se smeni
<ircnewbie> shte swiknete ;bb de shte idete
<ircnewbie> wednyj shtom razberete kak raboti shte widi 4e ne e tolkowa slojno
<ircnewbie> \ 4erta se izpolzwa za da nakara TCL da widi sledwashtiq simwol kato tekst
<ircnewbie> po na4alo kogato izpolzwate skoba w skripta si TCL trqbwa da q widi kato na4alo ili krai na komanda
<ircnewbie> no kogato izpolzwate \ pred neq tcl shte q widi kato obiknowen tekst i shte q preraboti
<ircnewbie> ima nqkolko izklu4eniq kym towa
<ircnewbie> ima nqkolko koda koito zapo4wat s \ posledwana s nomer ili bukwa za da syzdadat spec simwol
<ircnewbie> naprimer \0 towa e 4isloto 0 ne nishto drugo ;b
<ircnewbie> normalno tcl trqbwa da widi towa kato tekst (TCL wijda po princip 0 no naklonenata 4erta go izpylnqwa i towa ne e to4no primer za towa kak raboti)
<ircnewbie> no \037 ne ozna4awa 037 kato tekst a 4e sledwashtiqt tekst trqbwa da byde pod4ertan
<ircnewbie> towa moje da izglejda malko obyrkwashto
<ircnewbie> poneje tcl ne e neshto ot eggdrop ima dwa wida komandi
<ircnewbie> komandi ot samiq TCL koito mogat da rabotqt i s skriptowe izwyn eggdrop i komandi
<ircnewbie> koito sa dobaweni ot eggdrop
<ircnewbie> wsi4ki komandi koito egg dobawq kym tcl sa opisani w tcl-commands
<ircnewbie> mojete da polu4ite info za komandite w TCL ot man stranicite
<ircnewbie> mojete da gi widite kato napishete [man n <command>] na *nix kompiutyr
<ircnewbie> kojto ima tezi stranici instalirani ili da dostignete do tqh 4rez HTML wersiqta im na http://dev.scriptics.com/man/tcl8.0/TclCmd/contents.htm
<ircnewbie> brb 4e se zadawih
<ircnewbie> emr
<ircnewbie> sega shte obqsnim dwete osnowni komandi w tcl
<ircnewbie> bind i proc
<ircnewbie> tezi dwe komandi wi pozwolqwat da nakarate bota da izpylni deistwiq pri konkretno sabitie
<ircnewbie> s bind komandata mojete da nakarate bota da otwryshta na komandi syobshteniq ili ctcp
<ircnewbie> sintaksisa e [bind <type> <flags> <command> <procedure>]
<ircnewbie> shte obqsnim towa stypka po stypka kakto za wsi4ki komandi
<ircnewbie> <type> e na kakwo dejstwie da reagira bota
<ircnewbie> naprimer ctcp shte otgowarq na ctcp
<ircnewbie> a msg na syobshteniq
<ircnewbie> mojete da namerite wsi4ki wyzmojni widowe w tcl-commands.doc
<-- semkata has quit (Read error: 104 (Connection reset by peer))
<ircnewbie> s <flags> ste definirate kakwi flagowe trqbwa da ima potrebitelq wyw wa6iqt Eggdrop wyw wid <globalen flag|lokalen flag>
<ircnewbie> eto nqkolko primer-a za da obqsnim po byrzo i prosto
<ircnewbie> bind <type> - <command> <procedure> otgowarq na wsi4ki (wkliu4itelno i na tezi, koito ne sa adnati w bota)
<ircnewbie> bind <type> n <command> <procedure> samo na owners
<ircnewbie> ako iskate za o bind <type> o <command> <procedure>
<ircnewbie> bind <type> -|m <command> <procedure> samo na localnite NE na global masters
<ircnewbie> bind <type> m|m <command> <procedure> na wsi4ki masteri
<ircnewbie> bind <type> o|n <command> <procedure> za glob opers i local owneri
<ircnewbie> kato kaja opers imam predwid za bota
<ircnewbie> <command> e za kakyw parametyr da se sledi
<ircnewbie> ako iskate da sledi za wid msg parametyra trqbwa da e pyrwata duma ot msg-a
<ircnewbie> ili ako iskate da izpolzwate <type> dcc trqbwa da e nowa komanda koeto iskate da se syzdade na partyline
<ircnewbie> Naprimer [bind dcc <flags> test <procedure>] ste syzdade partyline komanda [test] ili
<ircnewbie> [bind msg <flags> hello <procedure>] ste nakara bota da otgowarq kogato polu4i syobstenie zapo4wasto s "hello"
<ircnewbie> <procedure> e procedurata
<ircnewbie> koqto bota trqbwa da starita kogato zase4e wida i komandata
<ircnewbie> procedurite ne sa nishto powe4e ot komandi
<ircnewbie> koito mojete da izwikate nawsqkade w TCL skripta
--> ReMoRsE (~[email protected]) has joined #IRCHelp
<ircnewbie> mojete da izwikate procedura kato napishete nqkade w skripta [<procedure> [parameters]]
<ircnewbie> naprimer procedura, nqkyde w skobite ili prosto w glawniq wi skript)
<ircnewbie> tezi proceduri izpylnqwat komandi koito mogat da wyrnat stoinost
<-- zod\away\ has quit (Ping timeout: 180 seconds)
<ircnewbie> sled kato prowerqt nqkolko faktora ili mogat da izpratqt neshto kym IRC server-a
<ircnewbie> mojete da sledite za wyrnati RAW numerics ot server-a kato na type slojite RAW
<ircnewbie> a za command numeric stoinosta
<ircnewbie> koiti server-a wi wryshta
--- vdix is now known as vdix[out]
<ircnewbie> obiknowno se slaga kraq na numeric-a i systinskata 4ast koqto wrysta
<ircnewbie> na http://irchelp.unibg.org/irchelp/IRC/Do ... eaders.htm mojete da gi widite
<ircnewbie> s proc komandata mojete da syzdawate proceduri
<ircnewbie> sintaksisa e [proc <name> { <parameters> } { <body> }]
<ircnewbie> <name> e imeto na procedurata
<ircnewbie> (logi4no nali ? ;)
<ircnewbie> towa moje da byde wsi4ko koeto da poiskate i trqbwa da izpolzwate towa ime kogato q izwikwate
<ircnewbie> prameters predstawlqwat stoinosti koito procedurata trqbwa da prieme
<ircnewbie> trqbwa da zadadete stoinosti za wseki parametry koito shte byde izpraten kym procedurata
<ircnewbie> wsi4ki stoinosti koito dadete trqbwa da bydat s prazno mqsto
<ircnewbie> naprimer ako imate liniqta [proc test { nick channel } { <body> }]
<ircnewbie> i nqkyde drugade wyw wa6iqt skript [test MyNick #test]
<ircnewbie> procedurata ste sloji "MyNick" w stojnostta "$nick" i "#test" w "$channel"
<ircnewbie> procedurata winagi iska da znae to4nata golemina na parametrite koito ste zadali
<ircnewbie> trqbwa da zadadete stojnosti za wseki parametyr kojto ste byde izpraten kym procedurata
<-- AMERICAN-BOY has quit (Dead socket)
--> juru_girl ([email protected]) has joined #irchelp
<ircnewbie> hmm leko se powtorihme
<ircnewbie> ta ako dadete na procedurata 4 stoinosti a tq iziskwa 5
--- vdix[out] is now known as vdix
<ircnewbie> eggdrop shte dade greshka podobna na 'proc called with too many arguments'
<ircnewbie> a ako q izwikate s 3 "no argument given for ..."
<ircnewbie> ima izklu4enie na towa prawilo , ako imenuwate poslednata stoinost
--- vdix is now known as vdix[out]
<-- juru_girl has quit (Killed (NS (Nickname Enforcement)))
<ircnewbie> na parameters s imeto args togwa mojete da q izwikate s powe4e parametri
<ircnewbie> ot kolkoto sa definirani
<ircnewbie> w tozi slu4ai wsi4ki parametri koito ste zadali na procedurata ot args natatak
<ircnewbie> shte se sydyrjat w $args
<ircnewbie> te se postawqt w $args sqkash e izpolzwana komandata list
<ircnewbie> shte nau4ite powe4e za neq, no we4e trqbwa da znaete razlikata m/ args i wsqko drugo ime
<ircnewbie> naprimer ako izwikate procedurata [proc test { nick channel args } { <body> }] s
--- DreamWave[CS] is now known as DreamWave[away]
<ircnewbie> [test $nick $channel $handle $host] ste sloji $nick w $nick
<ircnewbie> $channel w $channel
<ircnewbie> a $handle and $host w $args
<ircnewbie> no nie wi razubejdawam da izpolzwate komandata "args" kato parametyr pone dokato nau4ite kakwo prawi komandata list
<ircnewbie> <body> sa komandite koitoto iskate da procedirate
<ircnewbie> <body> sa komandite koitoto iskate procedurata da izpylnqwa
<-- vdix[out] has quit (BOG otpred, az otzad !)
<ircnewbie> body ne trqbwa da byde edna liniq za towa procedurata shte zapo4ne s edna otworena skoba
<ircnewbie> mojete da slojite otdelna komanda na now red i tq shte byde 4ast ot procedurata dokato ne zatworite
<ircnewbie> body s koba
<ircnewbie> oswen ako ne izwikwate procedurata ry4no w powe4eto slu4ai shte iskate da izpolzwate bind
<ircnewbie> bind komandata startira procedurata
<ircnewbie> kogato konkretnoto deistwie e zase4eno oswen za bind tcl-commands syshto taka wi dawa info
<ircnewbie> kakwi parametri sa nujni na procedirata
<ircnewbie> i inf za parametrite koito sydyrja
<ircnewbie> neka da razgledame bind msg obqsnenieto ot tcl-commands.doc
<ircnewbie> (1) MSG
<ircnewbie> bind msg <flags> <command> <proc>
<ircnewbie> procname <nick> <user@host> <handle> <arg>
<ircnewbie> wsi4ko sled procname sa parametri koito shte bydat izprateni kym procedirata
<ircnewbie> powe4eto proceduri za bind msg shte izglejdat podobno na [proc msg_test { nick host hand arg } { <body> }]
--- DreamWave[away] is now known as DreamWave
<ircnewbie> nakraq razbira se zatwarqte body procedurata s skoba
<ircnewbie> mojete da izpolzwate return komandata za da nakarate procedurata da swyrshi kadeto iskate ot body
<ircnewbie> sega procedurata shte zawyrshi zawiseiki ot towa kak ste izpolzwali return komandata
<ircnewbie> sintaksisa na return e [return <message>]
<ircnewbie> message e towa koeto procedurata trqbwa da izpishe
<ircnewbie> po princip zawyrshwate procedurata s 0 ili 1 kato msg
<-- Nik666 has quit (Ping timeout: 180 seconds)
<ircnewbie> w powe4eto slu4ai 0 kato msg shte posledwa kato otgowor pri koeto bota shte prodylji normalno sqkash bind-a ne syshtestwuwa
<ircnewbie> towa ozna4awa 4e nqma da logne nishto i nqma da prepokrie wgradeniete func
<ircnewbie> kato flood zashtitata naprimer
<ircnewbie> kogato wryshtate 1 bota obiknoweno gi logwa
<ircnewbie> ili izobshto ne reagira na deistwiqta ( kogato izpolzwate bind flood wryshtaiki 1 bota nqma da reagira na flood-a no shte pozwoli na tcl skripta da protiwodeistwa)
--> zod_ ([email protected]) has joined #irchelp
<ircnewbie> oswen 0 ili 1
--- ircnewbie sets modes [#irchelp +v zod_]
<ircnewbie> procedurata return moje da wryshta kakywto i da e tekst
<ircnewbie> koeto grubo kazano shte naprawi procedurata da deistwa kato interaktiwna promenliwa
<ircnewbie> wse oshte trqbwa da q izwikwate s [proc [parameters]], no ste wryja informaciqta kakto promenliwa ta bi naprawila towa
<ircnewbie> naprimer [proc test { nick } { return "Hello $nick." }] shte byde syshtoto kato
<ircnewbie> [set test "Hello $nick."]
--> Johny^Bravo ([email protected]) has joined #IrcHelp
<ircnewbie> samo 4e ste go izwikate po po-razli4en na4in i mojete da prowerite nqkoj nesta s procedurata
<ircnewbie> i ewentualno da izpi6e nesto razli4no ot whoda
--- zod_ is now known as webkid
<ircnewbie> no wse oste da dyrjite izhodnite kato promenliwa
<ircnewbie> we4e ste zblyskahte s termina promenliwa nqkolko pyti
<ircnewbie> no sega shte obqsnim kakwo to4no e towa
<ircnewbie> promenliwite se izpolzwat
<ircnewbie> w po4ti wsi4ki TCL skriptowe
<ircnewbie> za sega ne sme wijdali tcl script koito da ne gi polzwa
<ircnewbie> promenliwata e neshto w koeto mojete da dyrjite informaciq tazi informaciq moje da byde wsqkakwa
<ircnewbie> i e dinami4na
--> B_M_W_ (~[email protected]) has joined #irchelp
<ircnewbie> moje da byde razli4na wseki pyt
<ircnewbie> kogato wikate procedurata ili script-a
<ircnewbie> w mnogo programni ezici ima razli4ni tipowe promenliwi
<ircnewbie> trqbwa da obqwite wsqka promenliwa i syshto dali e nomer ili sydyrja bukwi
<ircnewbie> towa ne se otnasq za TCL w TCL wsqka promenliwa e taka nare4eniqt string
<ircnewbie> koeto zna4i 4e nqma zna4enie dali sydyrja 4isla ili bukwi moje da byde edno ot tqh ili dwete
<ircnewbie> towa ograni4awa malko neshtata koito mojete da prawite s tqh no prawi ezika dosta po lesen
<ircnewbie> sega shte razglejdame promenliwite kato string
<ircnewbie> stringowete mogat da bydat definirani i iztriti s set i unset komandata
--> AMERICAN-BOY ([email protected]) has joined #irchelp
<ircnewbie> sintaksisa na set e [set <string> <value>] a na unset komandata [unset <string>]
<ircnewbie> oswen set i unset syshtestwuwa i append
<ircnewbie> tazi komanda raboti po syshtiqt na4in kato set komandata
<ircnewbie> no razlikata e 4e tazi komanda dobawq neshto kym stringa bez da go promenq
<ircnewbie> append dobawq neshto direktno kym kraq na stringa
<ircnewbie> koeto e syshtoto kato [set <string> "$<string><value>"]
<ircnewbie> <string> e imeto na stringa kojto iskate da promenite
<ircnewbie> imeto trqbwa da sydyrja bukwi
<ircnewbie> tireta ili samo nomera
<ircnewbie> ako slojite nqkoi drug simwol w nego moje da dowede do greshki zashtoto skripta gi interpretira greshno
<ircnewbie> <value> sydyrja towa koeto iskate da ima w stringa
<ircnewbie> i towa koeto iskate da byde dobaweno kym stringa ako izpolzwate append
<ircnewbie> towa moje da e 4islo nqkakyw tekst wyrnata stoinost ot nqkakwa komanda ili wsi4ko koeto wi se struwa prawilno
<ircnewbie> za tazi cel
<ircnewbie>
<ircnewbie> towa koeto mojete da slojite w stringa ne se ograni4awa s nishto no nqkoi simwoli trqbwa da bydat izbegnati 4rez \
<ircnewbie> za da sme sigurni 4e TCL nqma da gi interpretira greshno
<ircnewbie> zabelejete syshto 4e ako iskate da slojite 4ast ot tekst
<ircnewbie> w string
<ircnewbie> mojete da go obgradite w ""
<ircnewbie> oswen da definirate string mojete i da go iztriete towa prosto shte naprawi stringa nesyshtestwuwash
<ircnewbie> otnowo kakto e bil predi da go syzdadete
<-- B_M_W_ has quit (Dead socket)
<ircnewbie> tcl shte wyrne greshka kogato se opitate da izpolzwate string koito ne syshtestwuwa
<ircnewbie> makar 4e stringa moje da syshtestwuwa kogato nqma nishto w nego [set test ""]
<ircnewbie> oswen normalnite stringowe ima i masiwi
<ircnewbie> masiwa e grupa ot stringowe swyrzani zaedno pod "edin pokriw"
<ircnewbie> mojete da izpolzwate tezi masiwi po syshtiqt na4in po koito i normalnite stringowe
--> B_M_W_ (~[email protected]) has joined #irchelp
<ircnewbie> nai golqmoto preimushtestwo na masiwite nad normalnite stringowe e towa 4e te sa pod
<ircnewbie> edin pokriw
<ircnewbie> i mogat da bydat dostignati wsi4kite nawednyj 4rez nqkoi komandi praweiki go po lesno
<ircnewbie> za was, ne e nujno da prowerqwate wsi4ki stringowe edin po edin
<-- AMERICAN-BOY has quit ()
<ircnewbie> tyi kato celiq masiw e we4e zareden
<ircnewbie> sintaksisa na masiwa e [$array(string)] kadeto [array] e imeto na masiwa i [string] e imeto na stringa w masiwa
<ircnewbie> wednyj syzdali masiw ne mojete da syzdadete string s syshtoto ime
<ircnewbie> naprimer ako imate $test(<string>) nqma da mojete da imate i $test
<ircnewbie> eto nqkolko primera
<ircnewbie> set test(what) "that" slagate dumata "that" w stringa [what] ot masiwa [test]
<ircnewbie> set test(when) "now" dumata "now" w stringa [when] ot masiwa [test]
<ircnewbie> set test "testing" ste izkara gre6ka poneje we4e ima masiw s imeto test!
<ircnewbie> set test_what "what" dumata "what" w stringa [test_what]
<ircnewbie> set test_when "now" dumata "now" w stringa [test_when]
<ircnewbie> wednyj shtom ste syzdali masiw moje bi shte iskate da wzemete spisyk s wsi4kite stringowe koito toi sydyrja
<ircnewbie> naprimer wzemane na spisyk ot masiwa $test()
<ircnewbie> komandata izpolzwana za tazi cel e [array names]
<ircnewbie> sintaksisa e [array names <array>]
<ircnewbie> malko pauza 4e imam pish
<ircnewbie> ako ima wyprosi dawaite
--- B_M_W_ is now known as [BoL]B_M_W_
<webkid> ;p
<-- JRok ([email protected]) has left #irchelp
<Blady> :>
--> `FuNNy_SpIrIt` ([email protected]) has joined #irchelp
<webkid> blady sloji i 2:0 che e ma4a:p
<Blady> tova se znae i bez da go slagam
<ircnewbie> takam da prodyljim s array
<webkid>
<ircnewbie> w tozi slu4ai array e imeto na masiwa ot koito iskate da wzemete imenata
<ircnewbie> naprimer "test" kakto e w na6iqt primer
<ircnewbie> sega ako slojim [array names test] w predniqt primer ste wyrne "what" i "when"
<ircnewbie> predpolaga se 4e towa nqma da wi potrqbwa no po kysno moje da wi se stori dosta polezno
<ircnewbie> ima 2 tipa stringowe
<ircnewbie> localni i globalni
<ircnewbie> ehh teq localni ;bbb
<ircnewbie> localniq string syshtestwuwa samo w procedurata w koqto e definiran a globalniq
--- [BoL]B_M_W_ is now known as EggDropHelper
<ircnewbie> prez cqloto wreme prez koeto bota e pusnat
<ircnewbie> wsi4ki stringowe syzdadeni izwyn procedurata awtomati4no stawat globalni ako se izpolzwa komandata global
<ircnewbie> globalnite i localnite rabotqt pri shoden na4in
<ircnewbie> edinstwenata razlika e kade i koga te syshtestwuwat
<ircnewbie> sintaksisa na komandata global e [global <strings>]
--- EggDropHelper is now known as HelPerNaMaiki
<-- webkid has quit (Leavin)
<ircnewbie> wseki string trqbwa da byde razdelen ot prazni mesta i ako iskate da imate globalen masiw
<ircnewbie> trqbwa prosto da dadete imeto na masiwa no ne i imeto na stringa ot masiwa
<-- `FuNNy_SpIrIt` ([email protected]) has left #irchelp
<-- BiGLaMeR has quit (irc.netel.bg irc.lt-tech.org)
<ircnewbie> systo i zastoto tazi komanda we4e znae kakwo dawate za whod kym stringa, wie ne trqbwa da slagate $ pred imeto na stringa wi
<ircnewbie> $ se izpolzwa za da se definira za da sae definira neshto kato string
<ircnewbie> i da se prepokrie 4asta s sydyrjanieto na stringa
--> BiGLaMeR ([email protected]) has joined #irchelp
<ircnewbie> kogato slojite $ shte se prepokrie cqloto ime na stringa zaedno s dolar4eto
<ircnewbie> sys sydyrjanieto na stringa
--- HelPerNaMaiki is now known as HelPerNa_f_4eta
<ircnewbie> naprimer ako $test sydyrja "hello" i wie napi6ete [global $test]
--- HelPerNa_f_4eta is now known as B_M_W_
--> bocman__ ([email protected]) has joined #irchelp
<-- ircnewbie has quit (Ping timeout: 180 seconds)
<-- ReMoRsE has quit (Ping timeout: 180 seconds)
<Blady> sega e momenta ako imate vaprosi
--- bocman__ is now known as svar6i`li
--- Blady sets modes [#irchelp -m]
--- svar6i`li is now known as bocman__
--> ReMoRsE (~[email protected]) has joined #IRCHelp
<B_M_W_> da
<Vizor> IMAMEEEEE AMA DE IZBQGA HELPERA
<bocman__> mai posle
<B_M_W_> Moje li da Si Naprava eggdrop kat sum lamer ?
<bocman__> B_M_W_
<bocman__> axaxax
<B_M_W_> da
<Blady> B_M_W_ ako be6e slu6al otna4alo 6te6e da znae6 4e moje6
<Vizor> gospodi ...
<LuC1FeR> ehhh
<B_M_W_> Mi sa Vlezoh
<Johny^Bravo> Blady shteshe da mi kazvash ot kade moga da si drapna primeren conf
<Johny^Bravo> ;)
<LuC1FeR> Blady mersi za infoto tazi vecher i leka i spokoina ..
<-- LuC1FeR ([email protected]) has left #irchelp
--> ircnewbie (~[email protected]) has joined #irchelp
<ircnewbie> grr
--- Blady sets modes [#irchelp +m]
--- Blady sets modes [#irchelp +o ircnewbie]
--- ircnewbie is now known as rhodie
--- CS sets modes [#irchelp -o rhodie]
--- CS sets modes [#irchelp +o rhodie]
--- rhodie is now known as ircnewbie
<ircnewbie> kakwo powe4e moga da kaja ... UniBG ;b
<ircnewbie> Blady do kade se widq napisanoto
<Blady> [19:30:00] <@ircnewbie> naprimer ako $test sydyrja "hello" i wie napi6ete [global $test]
<ircnewbie> nishto protiw da paste 10-na reda ?
<ircnewbie> <paste>
<ircnewbie> <ircnewbie> TCL ste go smetne za [global hello] a towa ne e towa koeto iskate w tozi slu4aj
<ircnewbie> <ircnewbie> mali ?
<ircnewbie> <ircnewbie> s/m/n
<ircnewbie> <ircnewbie> shte wzemem set komandata za primer
<ircnewbie> <ircnewbie> kadeto imame masiw test s stringowe "(when)" i "(what)"
<ircnewbie> <ircnewbie> syshto ne e nujno da izpolzwate komanda kato [global test(when) test(what)]
<ircnewbie> <ircnewbie> no mojete da izpolzwate [global test] koeto ste dade dostyp na globalnite stringowe "(what)" i "(when)"
<ircnewbie> <ircnewbie> do masiwa [test]
<ircnewbie> <ircnewbie> globalnata komanda prewryshta celiqt masiw ne samo indiwidualen string
<ircnewbie> <ircnewbie> za final komandata global obiknoweno se slaga na pyrwiqt red na procedurata
<ircnewbie> <ircnewbie> towa ne e zadyljitelno no e neshto kato nepisano prawilo
<ircnewbie> <ircnewbie> s komandata [incr] lesno dobawqte/izwajdate 4isla ot stringowe
<ircnewbie> <ircnewbie> sintaksisa i e [incr <string> [+/-][number]]
<ircnewbie> <ircnewbie> eto nqkolko byri i lesni primera koito q obqsnqwat
<ircnewbie> <ircnewbie> incr test
<ircnewbie> <ircnewbie> dobawq 1 kym stringa [test]
<ircnewbie> <ircnewbie> incr test 2 2 kym stringa [test]
<ircnewbie> <ircnewbie> incr test +3 .. dobawq 3 +-sa ne e zadyljitelen
<ircnewbie> <ircnewbie> incr test -4 izwajda 4 ot stringa [test]
<ircnewbie> <ircnewbie> tuk we4e - e zadyljitelen tyi kato e logi4eski znak
<ircnewbie> <ircnewbie> s komandata incr mojete samo da +/-
<ircnewbie> <ircnewbie> delenieto i umnojenieto i neshta kato tqh trqbwa da bydat napraweni s komandata expr
<ircnewbie> </paste>
<ircnewbie> sorry again ..
<ircnewbie> ta za komandata expr shte go ostawim za po kysno kato po4nem reg expr ;b
<ircnewbie> sega da obqsnim kak da izpiswate informaciq
<ircnewbie> ima mnogo komandi s koito mojete da naprawite towa
<ircnewbie> nqkoi ot tqh se izpolzwat za da sae izprashta informaciq kym razli4ni mesta a nqkoi da se izprashta po po razli4en na4in
<ircnewbie> ima 4 komandi s koito mojete da nakarate egg da logne neshto
<ircnewbie> te sa [putlog], [putcmdlog], [putxferlog] i [putloglev]
<ircnewbie> razlikata m/ tqh e 4e wsqka komanda izprashta log msg-a s razli4en log level
<ircnewbie> razli4nite log leveli sa opisani w conf file-a
<ircnewbie> [putlog] izprasta log sypbstenieto s lewel o
<ircnewbie> [putcmdlog] izprasta syobsteniqta s lewel c
<ircnewbie> [putxferlog] izprasta syobsteniqta s lewel h i [putloglev] izprasta syobsteniqta s lewel kojto zadadete
<ircnewbie> sintaksisa na komandite [putlog], [putcmdlog] i [putxferlog] e [putlog "<text>"]
<ircnewbie> za za komandata [putloglev] e [putloglev <level(s)> <channel> "<text>"]
<-- Vizor has quit (Read error: 104 (Connection reset by peer))
<ircnewbie> levels e s kakyw level iskate da pratite log msg-a
<ircnewbie> mojete da izpolzwate * za da pratie log msg-a za wsi4ki leveli
<ircnewbie> channel e za koi kanal stawa duma
<ircnewbie> izpolzwaite * za da go izpratite kym glawniqt log
<ircnewbie> text e msg-a koito iskate da byde lognat
<ircnewbie> konzolnite moduli po podrazbirane prawqt masterite i ownerite da wijdat wsi4ki msgs
<ircnewbie> s level o
<ircnewbie> w partyline
<ircnewbie> zashtoto putlog se izpolzwa glawno za logwane na cmds i mojete da bydete sigurni 4e towa koeto pratite
<ircnewbie> shte se pokaje na +m/n
<ircnewbie> koeto e dobre poneje po tozi na4in mojete da naprawite skripta wi da izprashta msgs ot sabitiq kym partyline
<ircnewbie> za washite masters i owners
<ircnewbie> mojete da go izpolzwate i za debugging
<ircnewbie> namiraiki kade neshto e greshno
<ircnewbie> slagaiki putlog komandata prez nqkolko reda da wi izprashta msgs kym partyline mnogo lesno mojete da razberete
<ircnewbie> kade skripta wi greshi kogato prawi neshto koeto wie ne iskate
--- Suzi_ is now known as Suzi`tv
<ircnewbie> bez tezi msgs mojete da wi otneme dosta dylgo wreme za da otkriete greshkata
--> MANEKENKA ([email protected]) has joined #IRCHelp
<ircnewbie> mojete da izpratite msg na partyline s putdcc
<ircnewbie> sintaksisa e [putdcc <idx> "<text>"]
<ircnewbie> <idx> so4i kym soketa kym kojto syobstenieto ste byde prateno
<ircnewbie> wsqko idwashto i izlizashto msg ot washjiqt bot si ima taka nare4en socket nomer
<ircnewbie> takawa wryzka moje da byde wryzata kym irc server-a kym koito e swyrzan bota
--- bocman__ is now known as palni`gluposti
<ircnewbie> kym swyrzan bot ili kym potrebitel koito e na dcc
--- palni`gluposti is now known as bocman__
--> JAC_ (~[email protected]) has joined #irchelp
<-- bocman__ ([email protected]) has left #irchelp
--> bocman__ ([email protected]) has joined #irchelp
<-- bocman__ ([email protected]) has left #irchelp
--> bocman__ ([email protected]) has joined #irchelp
<-- bocman__ ([email protected]) has left #irchelp
--> bocman__ ([email protected]) has joined #irchelp
<ircnewbie> mojete da widite socket nomerata na washiqt bot koito se izpolzwat w momenta kato izpolzwate .dccstat
<ircnewbie> w party line
<ircnewbie> nqkoi binds kato bind dcc izprashtat socket nomer-a na potrebitelq koito e izpylnil komandata kym procedurata
--> Vizor ([email protected]) has joined #irchelp
<ircnewbie> sled koeto wie mojete da izpolzwate socket nomer-a za da izpratite msg direktno kym nego
<ircnewbie> s komandata putdcc
<-- JAC_ (~[email protected]) has left #irchelp
<ircnewbie> <text> e syobstenieto
<ircnewbie> naprimer [putdcc $idx "Hello"] ste izprati "Hello" kym soket nomera kojto se sydyrja w $idx
--> AMERICAN-BOY ([email protected]) has joined #irchelp
<ircnewbie> ima 3 komandi s koito mojete da izpratite comanda kym irc server-a te sa [putserv], [puthelp] i [putquick]
<ircnewbie> wsi4ki tezi komandi prawqt absolutno edno i syshto no se razli4awat po towa kak go prawqt
<ircnewbie> (po priwilegiqta koqto polzwat)
<ircnewbie> [putquick] komandata ima naj-golqma priwilegiq i syobstenieto se izprasta wednaga kym syrwyryt
<ircnewbie> mojete da q izpolzwate w .chanset-a za need-*
<ircnewbie> [putserv] komandata izpolzwa normalni priwilegii i se izpolzwa za izprastaneto na komanda za koqto ne trqbwa da se byrza
<ircnewbie> [puthelp] komandata e s naj-malki priwilegii
<ircnewbie> izpolzwa se za prastane na syobsteniq i notisi kym drugi hora zastoto towa obiknoweno ima mnogo niski priwilegii
<ircnewbie> sintaksisyt na komandite [putquick], [putserv] i [puthelp] e [putserv <text> [options]]
<ircnewbie> <text> e komandata i parametrite koito iskate da pratite kym IRC syrwyryt
<ircnewbie> ako iskate da pratite msg kym nqkoi potrebitel ili kanal
<ircnewbie> sintaksisa trqbwa da byde ["PRIVMSG <nickname/channel> :<message>"] ili ako iskate da izpratite notice ["NOTICE <nickname/channel> :<message>"]
<ircnewbie> kadeto nickname/channel e psewdonima ili kanala kym koito e adresirano
<ircnewbie> options sa parametrite na komandata
<ircnewbie> w momenta ima samo 1 parametyr i toi e -next
<ircnewbie> towa shte predwiji washata komanda po napred i shte wi dade po golemi priwilegii i shte q izpratite po byrzo
<ircnewbie> powe4e info za comandite mojete da namerite na http://irchelp.unibg.org/irchelp/IRC/Do ... fc1459.txt
<ircnewbie> ima 2 komandi s koito mojete da pratite komandi kym drugi botowe
<ircnewbie> te sa [putbot] i [putallbots]
<ircnewbie> kakto we4e se doseshtatte putbot shte izprati cmd samo do opredelen bot
<ircnewbie> a putallbots kym wsi4ki
<ircnewbie> sintaksisa na komandata [putbot] e [putbot <botnet-nick> <command>] a na komandata [putallbots] - [putallbots <command>]
--- TOYO is now known as MAFIOTKATA
<ircnewbie> ima i 2 na4ina da promenite modowete w kanal
<ircnewbie> towa se prawi ry4no s cmd putserv ili prednazna4enata za tazi cel komanda pushmode
<ircnewbie> koqto e i po byrza
<ircnewbie> pushmode prowerqwa wsi4ki mode promeni dokato skripta ili procedurata swyrshi i sled towa se opita da izprati kolkoto se moje powe4e modowe kym server-a
<ircnewbie> sintaksisa e [pushmode <channel> <mode> [parameters]]
<ircnewbie> parameters sa parametrite nujni za promqnata na moda
<ircnewbie> mojete da naprawite smao edna promqna na mode 4rez komandata pushmode
<ircnewbie> taka 4e izpolzwajki -oooo za <mode> nqma da proraboti
<ircnewbie> ako iskate da izritate nqkoi ot kanala izpolzwaite putkick
<ircnewbie> [putkick <channel> <nickname(s)> [reason]]
<ircnewbie> sami razbirate kak raboti tazi komanda
<ircnewbie> neka da naprawim 5 mins po4iwka
<ircnewbie> Blady nqkakwi wyprosi ima li ?
<ircnewbie> oswen tozi ;koga shte swyrshi; ;b
<Blady> ami ni6to po temata...
<ircnewbie> okay
<Blady> fas pauza
<Blady> ;)
<ircnewbie> hehe trowete se ;b
<ircnewbie> nie sme na koli4ka ... ;b
<ircnewbie> a bwt nali nqkoi logwa ?;bbb
<Blady> az ;)
<ircnewbie> az trqbwa da si pusna counter kolko versiona mi napraiha ;b
<Blady> hahahah
--- bocman__ is now known as mahnete`moderat
--- ircnewbie sets modes [#irchelp -m]
--- mahnete`moderat is now known as bocman__
<ircnewbie> ide ?
<B_M_W_> counter kakvo 6te zna4i tva ?
<ide> brojach.
<ircnewbie> B_M_W_ da broi kolko pyti sa mi napraili version
<Vizor> yeee
<ide> bukwalno.
<ide> counter
<B_M_W_> ha
<B_M_W_> as sum misleh counterstrike
<B_M_W_> ta vikam 1v1 ;)
<bocman__> [19:56] [ircnewbie VERSION reply]: osiris-1c/bitchx-75p3 : Onoofius foobar
<ide> znachi i mjasto na koeto se broi. naj-weche tezgjah w banka ili podobno;)
<ide> bocman__ ndam, foobar e.
<bocman__> tova go vidqh
--- CS sets modes [#irchelp -ooo ircnewbie Blady edi]
<ide> taka e po-dobre.
--- iNT04h is now known as iNT04h[away]
<bocman__> i za6to ima6e +m
<ReMoRsE> ide
<ReMoRsE> kvi sa tiq promeni bre...
<ircnewbie> ide lockwam kanala ?
<ircnewbie> nai interesnoto idwa ;b
<bocman__> ircnewbie o6te li ima
<ide> ircnewbie ;) daj mallko poweche
<ide> bocman__ GRRR.
<bocman__> ?
<AMERICAN-BOY> are dai ne6to interesno
<bocman__> vii tuka dobre si lafite mi
<Vizor> dam
<ide> AMERICAN-BOY XXL?
<ide> ;P
<Vizor> do tuka nishtu sushtestveno
<ircnewbie> Vizor ? ;b
--- ircnewbie is now known as rhodie
<B_M_W_> nEKoi da mi help
<B_M_W_> kakvo e Freude am Fahren
<ide> Vizor ami ne znam, ako beshe go chel njamashe da pitash pone za 1st script.
--- CS sets modes [#irchelp +o rhodie]
<rhodie> lockwam go ;b
--- rhodie is now known as ircnewbie
<Vizor> ide: vidhq mnogo dobre ...
--> medjoudj (~[email protected]) has joined #irchelp
<Vizor> ide: razbrah veche dosta raboti koito mi pomognaha
<ircnewbie> B_M_W_: swoboda pri shofirane
<Vizor> ide: ama vse pak ...
--- ircnewbie sets modes [#irchelp +m]
<ircnewbie> sorry ;b
--- ircnewbie sets modes [#irchelp +o Blady]
--- CS sets modes [#irchelp -o Blady]
--- ircnewbie sets modes [#irchelp +v ide]
--- bocman__ is now known as pak`li`veee
--- ircnewbie sets modes [#irchelp +vv Blady edi]
<ircnewbie> ne pak otnowo
--- pak`li`veee is now known as iskam`i`as`op
--- iskam`i`as`op is now known as bocman__
<Blady> bocman stiga sa ligava
<Blady> *ligavi
<ircnewbie> sega shte se nau4ite kak da izpylnqwate komandi samo pri nqkakwi opredeleni uslowiq
--- bocman__ is now known as dovre
<ide> blady towa az trajwba da go kazha
<ircnewbie> towa syshto e edna ot nai wajnite 4asti
<ircnewbie> po4ti nqma skript ili programa koqto da ne izpolzwa towa
<ide> bocman letish na sledwashtijat red w kojto ti widja nicka na toja dzham.
<ircnewbie> s towa mojete da prowerite kakwo e zadal potrebitel da widite dali e walidno
--- You are now known as |IP|away
--- medjoudj is now known as dominik
<ircnewbie> ili da popitate kawko da sae naprawi
<-- MAFIOTKATA ([email protected]) has left #irchelp
<ircnewbie> s if komandata mojete da naprawite skripta wi da izpylnqwa dadena komanda samo kogato neshto koeto ste zadali
<ircnewbie> e edno i syshto ili razli4o s drugo
--- dovre is now known as bocman__
<ircnewbie> towa moje da e komanda koqto da byde izpylnena
<ircnewbie> w dwa stringa
<ircnewbie> napraktika wsi4ko
--> segv_ ([email protected]) has joined #irchelp
<ircnewbie> mnogo prosta komanda e shtom q razberete wednyj prosto shte wi kajem kak raboti i shte wi dadem nqkolko primera
<ircnewbie> za da q razberete po dobre
<ircnewbie> sintaksisa e [if { <action> <compare method> <action>} { <body> }]
--- dominik is now known as amour
<ircnewbie> dwete action kakwo komandata if trqbwa da srawni
<ircnewbie> towa moje da sa dwa stringa . komanda, ne zabrawqite da q obgradite w skobi
<ircnewbie> ili nqkakyw tekst zagraden w kawi4ki
--- CS sets modes [#irchelp +o ide]
--- amour is now known as arrab
<ircnewbie> ili wsi4ko drugo koeto moje da se izpolzwa za srawnenie
--- ide sets modes [#irchelp +b *!*@BatNinja.iradeum.com]
<-- ide has kicked bocman__ from #irchelp (ide)
--- ide sets modes [#irchelp -o ide]
<ircnewbie> <compare method> kazwa na if komandata kak da srawni dwete actions
<ircnewbie> twa moje da byde dwe neshta, po to4no == za rawno na ili != za razli4no ot
<-- AMERICAN-BOY has quit (#american_boys)
<ircnewbie> kogato edna ot action ne e 4islo, ako i dwete actions sa 4isla mojete da izpolzwate i 'po-golqmo ot' (>) i 'po-malko ot' (<) znaci
--- arrab is now known as tahar
<-- B_M_W_ has quit (are CS malko ))))))))))
<ircnewbie> da widite dali neshto e po golqmo ot drugo, mojete da izpolzwate za primer komanda koqto smqta kolko simwola
<ircnewbie> ima w actions i wryshta 4islowa stoinost koqto se srawnqwa s wtoriq action
<ircnewbie> nakraq no ne i na posledno mqsto kogato slojite 'e' (=) znaka sled 'e po-golqmo ot' ili
<ircnewbie> 'e po-malko ot' mojete da polu4ite 'e po-golqmo/po-malko ili rawno na'
<ircnewbie> body e osnownata komanda koqto shte byde izpylnena ako if komandata spolu4i
<ircnewbie> body ne trqbwa da e edna liniq
<ircnewbie> eto zashto if komandata zapo4wa s otworena kydrawa skoba {
<-- tahar has quit (http://www.petq-nikolaeva.net - I wanna be erotic model)
<ircnewbie> mojete da slojite nowa komanda na wseki red i tq wse oshte shte e 4ast ot if
<ircnewbie> dokato zatworite body-to s }
<ircnewbie> ponqkoga mojete da poiskate da prowerite dali neshto e prawilno ili greshno
<ircnewbie> za komputernata programa 0 e winagi greshno
<ircnewbie> 1 e prawilno
<ircnewbie> mojete da naprawite [if {$one == 1} { <body> }]
<ircnewbie> no ima i drug na4in da naprawite towa
<ircnewbie> za da widite dali nesto e prawilno mojete prosto da naprawite [if {$one} { <body> }] i wmesto [if {$one == 0} { <body> }]
<ircnewbie> mojete da izpolzwate [if {!$one} { <body> }]
<ircnewbie> stringa moje da byde zamenen s komanda ili s kakwoto i da e drugo
<-- ReMoRsE has quit (Remote closed the connection)
<ircnewbie> slagaiki samo edin action na if bez compare method kara tcl da proweri dali towa e wqrno
<-- MANEKENKA ([email protected]) has left #IRCHelp
<ircnewbie> kato se dobawi ! pred action bez da se dawa parametyr za compare method
<ircnewbie> i za wtori acrion kara tcl da proweri tcl dali towa e greshno
<ircnewbie> zabelejete 4e w tozi slu4aj 'wqrno' e ekwiwalentno na wsqko 4islo ot 0, ne samo na 1
<ircnewbie> za matchwane na edno ili dwe neshta
<ircnewbie> mojete da imate nqkolko uslowiq, sled wtoriq action moje da se dobawi && za 'i' ili || za 'ili' i da slojite oste edna prowerka
--> chiko83 ([email protected]) has joined #irchelp
<ircnewbie> sled towa mojete da naprwite nqkoi neshta otnowo i otnowo no towa ne ozna4awa 4e shte raboti kogato izpolzwate i dwete
<ircnewbie> || i &&
<ircnewbie> za da predotwratite if komandata da prawi greshki kogato widi || i && w edna i syshta if komanda
<ircnewbie> mojete da ograni4ite 4astite w koito iskate && i || da deistwat kato gi zagradite w ()
<ircnewbie> ne mojem da kajem towa po po lesen na4in zatowa shte dadem primer
--> MASSTER ([email protected]) has joined #irchelp
<ircnewbie> kogato imate [if {$test(start) == $test(stop) && $test(when) != "" || $test(what) != ""} { <body> }]
--> ayeu_cbM ([email protected]) has joined #irchelp
<ircnewbie> i iskate [if] komandata da raboti samo kogato [ $test(start) == $test(stop) ] i [ $test(when) != "" || $test(what) != "" ]
<-- Vizor has quit (Read error: 113 (No route to host))
<ircnewbie> towa weroqtno nqma da raboti
--- ayeu_cbM is now known as Vizor
<ircnewbie> if komandata weroqtno shte widi towa kato [ $test(start) == $test(stop) && $test(when) != "" ] ili [ $test(what) != "" ]
<ircnewbie> towa shte se oprawi kato slojite poslednata 4ast m/ skobite koeto shte go naprawi da izglejda kato
<ircnewbie> [if {$test(start) == $test(stop) && ($test(when) != "" || $test(what) != "")} { <body> }]
<ircnewbie> eksperimentiraiki s towa shte e nai dobriqt na4in da razberete kak raboti
<ircnewbie> wyzmojno e da slojite wtora if komanda sled pyrwata
<ircnewbie> towa moje da se izpolzwa ako isakte pyrwo da se proweri string i ako toi ne otgowarq na uslowieto
<ircnewbie> da se proweri drug string
<ircnewbie> na4inat po koito moje da se naprawi towa e da se sloji elseif
<ircnewbie> sled zatwarqshtata skoba, wsi4ko koeto idwa sled elseif raboti po syshtiqt na4in kakto i if
<ircnewbie> malyk primer
<ircnewbie> if {$nick == "edi"} {
<ircnewbie> <first body>
<ircnewbie> } elseif {$chan == "#IRCHelp"} {
<ircnewbie> <second body>
<ircnewbie> }
<ircnewbie> w tozi slu4ai ako $nick sywpadne s "edi" <first body> ste se izpylni
<ircnewbie> komandite w <second body> shte bydat ignorirani daje i ako $chan sywpadne s irchelp
<ircnewbie> kakto i da e ... ako $nick e razli4o ot edi no $chan sywpadne s irchelp togawa <second body> shte se izpylni
<-- MASSTER ([email protected]) has left #irchelp
<ircnewbie> ako nito edno ot stringowete ne sywpadne nito edno ot dwete shte se izpylni i skripta shte prodylji
<ircnewbie> mojete da slojite kolkoto iskate elseif komandi, sled pyrwata moje da byde slojena 2nd i taka nataak
<ircnewbie> oswen elseif mojete da polzwate i else
<ircnewbie> body w else shte byde izpylneno sled kato wsi4ki if i elseif prowerki se prowalqt
<ircnewbie> mojete da izpolzwate else bez dori da imate elseif w washiqt if
<ircnewbie> eto 2 malki primera
<ircnewbie> if {$nick=="edi"} {
<ircnewbie> (...)
<ircnewbie> } elseif {$chan=="#IRCHelp"} {
<ircnewbie> (...)
<ircnewbie> } elseif {$host != "*![email protected]"} {
<ircnewbie> (...)
<ircnewbie> } else {
<ircnewbie> (...)
<ircnewbie> }
<ircnewbie> 2nd
<ircnewbie> if {$enabled} {
<ircnewbie> (...)
<ircnewbie> } else {
<ircnewbie> (...)
<ircnewbie> }
<ircnewbie> za razlika ot elseif [else] moje da se izpolzwa samo wednyj pri [if] komandata
<ircnewbie> sega da obyrnem wnimanie kak se raboti s lists i kak da gi razbiem an 4asti
<ircnewbie> list e prosto kazano nabor ot obekti
<ircnewbie> za razlika ot stringowete koito sa nabor ot simwoli
<-- segv_ has quit (Remote closed the connection)
<ircnewbie> obekta sam po sebe si moje da byde string ili drug list s now na bor ot obekti
<ircnewbie> tezi obekti sa obiknowno razdeleni s prazni mesta no te mogat da sydyrjat i prazni mesta w sebe si
<ircnewbie> kade obekta w list zapo4wa i kade swyrshwa moje da byde definirano s otwarqshta i zatwarqshta skoba
<ircnewbie> komandite koito shte bydat diskotirani se otnasqt kym towa koeto polu4awat za whod kato lsit
<ircnewbie> list de
--> Joseph ([email protected]) has joined #irchelp
<ircnewbie> towa ozna4awa 4e ako whodyt e neshto koeto ima w sebe si skobi toi sshte byde tretiran kato na4alo i krai na obekt w list
<ircnewbie> primerno ako imahte list "test {foo bar} temp"
<-- ide has quit ()
<ircnewbie> togawa pyrwiqt obekt ot list-a ste byde "test" wtoriq "foo bar"
<ircnewbie> (a ne "{foo" i "bar}"
<ircnewbie> zastoto skobite ste indikirat na4aloto i kraq na obekta) i tretiqt "temp"
<ircnewbie> kakto beshe kazano obekta moje da sydyrja i now list
<ircnewbie> s obekti
<ircnewbie> towa moje da wi se stori stranno no shte dadem primer
<ircnewbie> ako imahte list "test {foo {foo bar}} temp" togawa "foo {foo bar}" ste byde wtoriqt obekt
<ircnewbie> ako iskate da go razbiete na 4asti otnowo togawa pyrwiqt obekt shte byde 'foo' a wtoriqt 'foo bar' i taka natatak
<ircnewbie> mislete za nego sqkash e golqma kutiq s malki kutiiki wytre
<ircnewbie> koito w tqh oshte po malki ;b
<ircnewbie> lists mogat da se sydyrjat w stringowe no te mogat da bydat i izhoda na komanda
<ircnewbie> nai wajnoto neshto e da wnimawate s komandata koqto izpolzwate
<ircnewbie> i da znaete dali te procedirat s towa koeto im pratite kato list ili kato string
--> vdix ([email protected]) has joined #irchelp
<ircnewbie> i dali te wryshtat list ili string zashtoto ako o4akwat list trqbwa da se uwerite 4e obektite
<ircnewbie> wytre sa w reda w koito gi iskate i nqmat zabraweni skobi ili prazni mesta koito shte obyrkat cqlata rabota
<ircnewbie> mojete da syzdadete list s komandi
<ircnewbie> s komandata [list [object(s)]]
<-- Joseph has quit (Dead socket)
--> Josif (~[email protected]) has joined #irchelp
<ircnewbie> objects sa obektite koito iskate da ima list
<ircnewbie> trqbwa da razdelite wseki edin obekt s prazno mqsto i mojete da opredelite to4no kade obekta zapo4wa i kade zawyrshwa s skobi
<ircnewbie> to4no kakto spomenahme
<ircnewbie> list komandata wryshta list s obekti koito sa mu bili dadeni
<ircnewbie> naprimer [list "test" {foo bar} "temp"] ste wyrne list w kojto pyrwiqt obekt e 'test'
<ircnewbie> wtoriqt 'foo bar' a tretiqt 'temp'
<ircnewbie> wzemaneto na obekti ot list e dosta lesno, komandata za towa e lindex
--- Josif is now known as Joseph
<ircnewbie> sintaksisyt e [lindex <list> <number>]
<ircnewbie> <number> e nomera na obekta kojto iskate da dostignete
<ircnewbie> wseki obekt w list ima swoi nomer
<ircnewbie> te zapo4wat ot 0 a wtoriqt 1 i t.n
<ircnewbie> malko e stranno, no ako programirate shte wi se stori poznato
<ircnewbie> malyk primer [lindex $test 5] wrysta 6estiqt obekt kojto se namira w $test
--- Vizor is now known as Vizor\SAD
<ircnewbie> lindex komandata wryshta string koito sydyrja samo obekta bez otwarqshti i zatwarqshti skobi
<ircnewbie> koito da markirat na4aloto i kraq
<ircnewbie> kogato iskate da wzemete powe4e ot 1 obekt, izpolzwaite lrange
<ircnewbie> sintaksisyt e [lrange <list> <start number> <end number>]
<ircnewbie> <start number> ne moje da e po golqmo ot <end number>
<ircnewbie> naprimer [lrange $test 3 7] wrysta obektite ot 4 do 8 ot list kojto se namira w $test ili [lrange $test 4 end] ste wyrne ot 5-q obekt do kraq na list w $test
<ircnewbie> [lrange] komandata wrysta now list ot obekti koito ste izbrali
<ircnewbie> kato wsqka otwarqshta i zatwarqshta skoba koqto markira na4aloto i kraq
<ircnewbie> se dobawq w list-a syshto ako e nujno
<ircnewbie> towa moje da se naprawi s [llength] komandata
<ircnewbie> sintaksisyt e [llength <list>]
<ircnewbie> tazi komanda wryshta string koito sydyrja nomer koito e rawen na broq na obektite koito list sydyrja
<ircnewbie> kato se zapo4ne ot 1 a 0 shte byde wyrnata stoinost ako list e prazen
<ircnewbie> mojete da prepokriete obekti ot list, za towa shte izpolzwame [lreplace]
<ircnewbie> sintaksisyt e [lreplace <list> <start number> <end number> [object(s)]]
<ircnewbie> [object(s)] e towa s koeto iskate komandata da prepokrie dadenite obekti
<ircnewbie> ako ne zadadete nishto kato obekt
<ircnewbie> dadeniqt obekt shte byde iztrit ot listata
--- KoNDoM[mACh] is now known as KoNDoM
<ircnewbie> perimer [lreplace $test 3 7 "foo" "bar"] wrysta list s obekti ot 4 do 8 prepokriti s obektite 'foo' i 'bar' ili [lreplace $test 4 end] ste wyrne list s obektite ot 5 do kraq na list iztriti
<ircnewbie> lreplace komandata wryshta now kompiliran list s prepokritite obekti
<-- chiko83 has quit (aide koi ot det e)
<ircnewbie> koito wie ste mu zadali
<ircnewbie> ostawqiki otwarqshtite i zatwarqshtite skobi
<ircnewbie> mojete da prewyrnete string w list, kato izpolzwate split
<ircnewbie> [split <string> [character]]
--> swatch_happy ([email protected]) has joined #irchelp
<ircnewbie> [character] e simwolyt kojto ste byde izpolzwan za razdelqneto na stringa na obekti
<ircnewbie> kogato split sreshne dadeniqt simwol toi shte go widi kato markirowka
<ircnewbie> za kraq na obekta i na4aloto na now
<-- Vizor\SAD has quit (Read error: 113 (No route to host))
<ircnewbie> ako ne se zadade simwol, simwola po podrazbirane shte stane praznoto mqsto
--> Vizor ([email protected]) has joined #irchelp
<ircnewbie> split komandata wryshta now list w koito pyrwiqt obekt e wsi4ko w string do character
<ircnewbie> wtoriqt obekt e wsi4ko m/ 2-q i 3-q character
<ircnewbie> i t.n
<ircnewbie> primer [split "test {foo bar} temp"] ste wyrne list w kojto pyrwiqt obekt e 'test'
<ircnewbie> wtoriqt "{foo", a tretiqt "bar}" i 4etwyrtiqt 'temp'
<ircnewbie> systoto nesto ste wyrne i [split "test.{foo.bar}.temp" .]
<ircnewbie> sega shte se nau4im da razdelqmi stringowete na 4asti
<ircnewbie> tazi komanda raboti po absolutno syshtiqt na4in kato komandata lindex samo 4e e malko po razli4na
<ircnewbie> za da wzemem simwolite ot string shte izpolzwame komandata [string index <string> <number>]
<ircnewbie> <number> e nomeryt ot simwoli kojto iskate da polu4ite kydeto 0 e pyrwiqt simwol 1 e wtoriqt, 2 e tretiqt i t.n.
--- Vizor is now known as Vizor\SAD
<ircnewbie> [string index] komandata wrysta string kojto sydyrja simwolite koito wie ste zadali
<ircnewbie> ako dadete list koito sydyrja obekt w skobite
<ircnewbie> skobite shte se tretirat kato simwoli w stringa
<ircnewbie> a ne kato simwoli za zapo4wane ili zawyrshwane na obekta
<ircnewbie> naprimer [string index "test {foo bar} temp" 5] ste wyrne "{" a ne "f" ili "foo bar"
<ircnewbie> za da polu4ite nqkolko simwola ot string izpolzwaite [string length <string>]
<ircnewbie> string length komandat obryshta stringa koito sydyrja nomer rawenm na broq na simwolite koito stringa sydyrja
<-- swatch_happy has quit (Ping timeout: 180 seconds)
<ircnewbie> ako zadadete list koito syrydja obekti w skobi, skobite shte bydat tretirani kato simwoli w string, a ne kato spec simwoli
<ircnewbie> za na4alo i kraq na obekta
<ircnewbie> naprimer [string length "test {foo bar} temp"] 6e wyrne 19 + skobite a ne 17
<ircnewbie> w nqkoi slu4ai shte iskate da widite dali 4ast ot teksta se sydyrja w string
<ircnewbie> mojete da widite towa s komandata [string match <pattern> <string>]
<ircnewbie> <pattern> e towa za koeto iskate da byde tyrseno
<ircnewbie> oswen normalnite simwoli mojete da slojite * ili ? znak
<ircnewbie> * - wsi4ko shte sywpadne
<-- Vizor\SAD has quit ()
<ircnewbie> a ? - smao 1 simwol
<ircnewbie> ako naprimer imate "*foo*" za <pattern> [string match] ste nameri sywpadenie w "foo" nawsqkade w stringa
<ircnewbie> taka 4e ako tyrsim "*foo*" w "test foobar" ste imame sywpadenie
<ircnewbie> ako tuk izpolzwate "?foo*" ste nameri sywpadenie samo ako stringa ima simwolite 'foo'
<ircnewbie> ot wtoroto mqsto do petoto nezawisimo ot nastawkite
<ircnewbie> taka 4e ako tyrsim "?foo*" w "test foobar" nqma da imame sywpadenie no "*foobar" ste sywpadne
<ircnewbie> [string match] wrysta 1 ako nameri sywpadenie i 0 ako ne nameri
--- KoNDoM is now known as KoNDoM|eAt
<ircnewbie> mnogo neshta w TCL prawqt razlika m/ malki i golemi bukwi
--> bLAck_SeA ([email protected]) has joined #irchelp
<-- Joseph (~[email protected]) has left #irchelp
<ircnewbie> naprimer w mnogo slu4ai
<ircnewbie> 'FOO' nqma da e syshtoto kato 'foo'
<ircnewbie> taka 4e w nqkoj slu4ai ste byde po dobre da prewyrnete wsi4ko w malki ili w golemi bukwi predi da go izpolzwate
<ircnewbie> towa moje da byde napraweno s komandite [string tolower] i [string toupper]
<ircnewbie> sintaksisyt e [string <tolower/toupper> <string>]
<ircnewbie> <tolower/toupper> e w kakwo iskate da prewyrnete stringa
<ircnewbie> [tolower] 6e go naprawi na malki a [toupper] na golemi
<ircnewbie> <string> e stringa kojto iskate da prewyrnete
<ircnewbie> towa moje da byde wsi4ko ot promenliwa do komanda koqto wrysta string
<ircnewbie> [string <tolower/toupper>] komandata wrysta string w kojto wsi4ki simwoli sa samo malki ili golemi bukwi
<ircnewbie> ako zadadete list
<ircnewbie> koito sydyrja obekti w koito ima skobi
<ircnewbie> te syshto shte bydat smetnati za simwoli w string a ne kato spec simwoli
<ircnewbie> naprimer [string tolower "test {foo BAR} temp"] ste wyrne "test {foo bar} temp" a ne "test foo bar temp"
<ircnewbie> mojete da prewyrnete list w string s komandata join
<ircnewbie> sintaksisyt e [join <list> [character]]
<ircnewbie> [character] e simwolyt kojto ste byde slojen m/u obektite ot list w nowiqt string
<ircnewbie> ako ne ste zadali simwol shte byde izpolzwano prazno mqsto
<ircnewbie> join komandata wryshta string s wsi4ko obekti ot list
<ircnewbie> razdeleni s charecter
<ircnewbie> wsqka skoba w list nqma da byde wklu4ena w nowiqt string, samo obektite shte bydat slojeni w stringa
<ircnewbie> naprimer [join [list "test" {foo bar} "temp"]] ste wyrne string sydyrjast "test foo bar temp" a [join [list "test" {foo bar} "temp"] .]
<ircnewbie> shte wyrne "test.foo bar.temp"
--- bLAck_SeA has changed the topic to: W momenta te4e lekciq na tema Eggdrop/TCL/Windrop (mmno interesna);) .... wsqkakwi wyprosi otnosno zadawaite na Blady
<ircnewbie> (zabelejete 4e praznoto mqsto na 'foo bar' NE e prepokrito s . ot komandata join zastoto tq swyrzwa _obektite_ ot list a ne dumite!
--- ircnewbie sets modes [#irchelp +t]
--- CS sets modes [#irchelp -t]
<ircnewbie> ahh edi .. im gonna fsck ya ;b
<ircnewbie> sega da nau4im razli4nite widowe cikli (loops)
<ircnewbie> pri powe4eto slu4ai, moje da wi se stori dosta polezno da nakarate skripta si da pofwotri nqkoi komandi
<ircnewbie> nqkolko pyti zashtoto 4esto nqmate kontrol nad towa kolko golemi sa neshtata i poradi tazi pri4ina edna komanda trqbwa da byde powtorena
<ircnewbie> nai prostiqt cikyl e while
<ircnewbie> towa shte prodylji dokato dadeno deistwie e wqrno
<ircnewbie> while si prili4a s if, sintaksisa e [while { <check> } { <body> }]
<-- main[2-0] has quit (Ping timeout: 180 seconds)
<ircnewbie> <check> raboti po absoliutno systiqt na4in kato if
--> main[2-0] ([email protected]) has joined #irchelp
<ircnewbie> wyzmojno e da zamenite while s if i da nakarate skripta da zawyrshi komandata samo wednyj
<ircnewbie> bez da se natykne na nqkakwi greshki oswen tezi koito idwat ot washiqt skript
<ircnewbie> no ne i ot while komandata
<ircnewbie> perimer
<ircnewbie> <paste>
<ircnewbie> set test "[chanlist #IRCHelp]"
<ircnewbie> set ops 0
<ircnewbie> while {$test != ""} {
<ircnewbie> if {[isop [lindex $test 0] #IRCHelp]} {
<ircnewbie> incr ops
<ircnewbie> }
<ircnewbie> set test "[lreplace $test 0 0]"
<ircnewbie> }
<ircnewbie> puthelp "PRIVMSG #IRCHelp : There are currently $ops people opped in #IRCHelp."
<ircnewbie> drug cikal e foreach
<-- bLAck_SeA ([email protected]) has left #irchelp
--- KoNDoM|eAt is now known as KoNDoM
<ircnewbie> w tozi cikyl slagate edin ili powe4e lists i sled towa komandite koito shte bydat izpolzwani za wseki obekt ot list
<ircnewbie> sintaksisa e [foreach <string> <list> [<second string> <second list> ...] { <body> }]
<ircnewbie> primer kak raboti foreach
<ircnewbie> set ops 0
<ircnewbie> foreach nickname [chanlist #IRCHelp] {
<ircnewbie> if {[isop $nickname #IRCHelp]} {
<ircnewbie> incr ops
<ircnewbie> }
<ircnewbie> }
<ircnewbie> puthelp "PRIVMSG #IRCHelp :There are currently $ops people opped in #IRCHelp."
<ircnewbie> tretiqt i posleden cikyl e for
<ircnewbie> [for { <start> } { <check> } { <loop> } { <body> }]
<ircnewbie> <start> e komandata koqto ste byde izpylnena predi cikylyt da se startira
<ircnewbie> towa moje da e definirane na string na 0
<ircnewbie> <check> e prowerkata koqto ste byde naprawena dokato cikylyt wyrwi i raboti po systiqt na4in po kojto raboti i [while]
--> bLAck_SeA ([email protected]) has joined #irchelp
<ircnewbie> <loop> e komandata koqto iskate da byde izpylnena wseki pyt kogato cikylyt swyr6i
<ircnewbie> towa moje da byde oweli4awane na string s 1
<ircnewbie> primer
<ircnewbie> set test "[chanlist #IRCHelp]"
<ircnewbie> set ops 0
<ircnewbie> for { set number 0 } { $number < [llength $test] } { incr number } {
<ircnewbie> if {[isop [lindex $test $number] #IRCHelp]} {
<ircnewbie> incr ops
<ircnewbie> }
<ircnewbie> puthelp "PRIVMSG #IRCHelp :There are currently $ops people opped in #IRCHelp."
--> Mr_Psycho (~[email protected]) has joined #IRCHelp
<ircnewbie> sega malko po4iwka i shte zapo4nem nai interesnata 4ast
<ircnewbie> pone za nas ;) reg expr
<ircnewbie> (regularni izrazi)
<ircnewbie> ako ima nqkakwi Q? Blady ?
<Blady> ni6to interesno
<ircnewbie> jalko 4e go nqma nik ;b
<-- Mr_Psycho (~[email protected]) has left #IRCHelp
<ircnewbie> 4udi li li ste se nqkoga kakwo zna4at tezi stranni simwoli ((?:[a-fA-F0-9]{2}:){5}[a-fA-F0-9]{2}) ?
<ircnewbie> towa sa prosto regularni izrazi
<ircnewbie> i ne sa nikak slojni stigfa da gi razberete
<ircnewbie> komanda s koqto mojete da izpolzwate regularnite izrazi za da namerite sywpadenie w string e reg expr
<ircnewbie> ops regexp
<ircnewbie> glawniqt sintaksis na komandata e [regexp <regularen izraz> string]
<ircnewbie> ako imame sywpadenie shte wyrne 1
<ircnewbie> w protiwen slu4aj 0
<ircnewbie> ako ste zadali -inline opciqta (predi regularniqt izraz) shte se wyrne sywpadenieto
<ircnewbie> samite regularni izrazi shte obqsnim malko po kysno
<ircnewbie> sega da pogoworim malko za samata komanda
<ircnewbie> ako se zadadat dopylnitelni argumenti sled stringa to togawa w pyrwiqt ot tqh shte se sydyrja wsi4kite simwoli ot stringa
<ircnewbie> koito sa sywpadnali s regularniqt izraz
<ircnewbie> a sledwashtite elementi shte sydyrjat pyrwiqt posle 2nd i t.n
<-- main[2-0] has quit (Ping timeout: 180 seconds)
<ircnewbie> mogat da se zadadat kakto spomenahme za -inline dopylnitelni opcii predi regularniqt izraz
<ircnewbie> sega shte spomenem samo nai wajnite
<ircnewbie> -about
<ircnewbie> wmesto da se prawi sywpadenie s regularniqt izraz ste wyrne list kojto sydyrja informaciq za regularniqt izraz
--> Mr_Psycho (~[email protected]) has joined #IRCHelp
<ircnewbie> izpolzwa se za debug za powe4e informaciq wijte man stranicata
<ircnewbie> -expanded izpolzwane na rez6irenite regularni izrazi kadeto praznite mesta
<ircnewbie> i komentarite se ignorirat
--> Joseph ([email protected]) has joined #irchelp
<ircnewbie> systoto kato (?x) i kakto /x pri perl ;)
--- Mr_Psycho has changed the topic to: zashto ne mahnete +m ot kanala
<ircnewbie> -indices wmesto da se slaga w wtorite
<ircnewbie> tretite i t.n. argimenti sled stringa sywpadeniqta ste se prawi list sydyrjast dwa elementa koito ste sa indeksite kadeto ima sywpadenie
--- ircnewbie has changed the topic to: W momenta te4e lekciq na tema Eggdrop/TCL/Windrop molq zadawite wyprosite si kym Blady
<ircnewbie> molq nepipaite topic-a
<ircnewbie> bydete korektni
<ircnewbie> -line wkliu4wa praweneto na razlika na simwola za now red (\n)
<-- Mr_Psycho (~[email protected]) has left #IRCHelp
<ircnewbie> po princip nowata liniq e sywsem normalen simwol bez specialno zna4enie
<-- Joseph ([email protected]) has left #irchelp
<ircnewbie> s flaga, `[^` i '.' nikoga nqma da imate sywpadenie s towa
<ircnewbie> `^` sywpada s prazen string sled nowa liniq w dopylnenie na normalnata mu funkciq
<ircnewbie> i '$'
--> ivo-malkiq (~[email protected]) has joined #irchelp
<ircnewbie> sywpada s prazen simwol w dopylnenie na normalnata mu funkciq
<-- ivo-malkiq has quit ()
<ircnewbie> tozi flag e ekwiwalenten na dwete funkcii -linestop i -lineanchor, ili na opciqta (?n)
<ircnewbie> -linestop promenq dyrjanieto na `[^` i '.' taka 4e te da spirat na nowata liniq systoto kato (?p)
<ircnewbie> -lineanchor promenq dyrjanieto na `^` i '$' (kotwata) taka 4e te da ozna4awat na4aloto i kraq na liniqta
<-- bLAck_SeA ([email protected]) has left #irchelp
<ircnewbie> -nocase prawi golemite bukwi w stringa na malki dokato se tyrsi sywpadenie
<ircnewbie> -all prawi taka 4e regularniqt izraz da sywpadne kolkoto se moje powe4e pyti w stringa
<ircnewbie> kato wryshta celiqt broj na sywpadeniqta
<ircnewbie> -inline za towa mojem da dadem edin primer
<ircnewbie> <paste>
<ircnewbie> regexp -inline -- {\w(\w)} " inlined "
<ircnewbie> => {in n}
<ircnewbie> regexp -all -inline -- {\w(\w)} "
<ircnewbie> inlined "
<ircnewbie> => {in n li i ne e}
<ircnewbie> </paste>
<ircnewbie> -start index opredelq se ot kade da zapo4ne tyrseneto izpolzwajki `^`,nqma da ima sywpadeniq s na4aloto na liniqta no \A wse oste ste se izpolzwa za na4aloto na stringa
<ircnewbie> --
<ircnewbie> indikira kraq na opciite
<ircnewbie> wsi4ko sled towa ste byde tretirano kato regularen izraz nisto 4e zapo4wa s tirence
<ircnewbie> ako zadadete powe4e stringowe za da widite sywpadeniqta
<ircnewbie> te prosto shte bydat napylneni s -1 ako ste zadali -indicies ili ste bydat prazni
<ircnewbie> sega doide wremeto za syshtinstakat 4ast
<ircnewbie> regularnite izrazi w TCL sa napisani ot Henri Spensyr i sa bazirani na _perl5_
<ircnewbie> ;b
<ircnewbie> primerno ako iskate da widite dali ima simwol M w stringa se pishe M na mqstoto na regularniqt izraz ;)
<ircnewbie> ako iskate da widite dali ima 2 sywpadeniq mojete da izpozlwate MM
<ircnewbie> koeto shte podrazni razbira4ite na reg expr koito biha go napisali M{2} taka izglejda dosta po dobre nali ?
<ircnewbie> ako iskate da sledite za primerno 3 ili powe4e (powe4eto mogat da wi trqbwa da ako izpolzwate -inline ili po nqkakyw na4in wkarwate sywpadenieto w string za po kysno obrabotwane)
<ircnewbie> izpozlwaite M{3,}
<ircnewbie> ako sled zapetajkata napi6ete 4islo po golqmo (TRQBWA da e po golqmo ot predhojdastoto go 4islo)
<ircnewbie> to togawa
<ircnewbie> bylgarski towa bi prozwu4alo taka
<ircnewbie> 'Iskam 3 sywpadeniq ili powe4e nenadhwyrlqjki X kadeto X e 4isloto za koeto stawa6e duma.'
<ircnewbie> primer
<ircnewbie> M{0,1} towa ste sywpadne s 0 ili 1 sywpadeniq
<ircnewbie> koeto e absolutno syshtoto s ?
<ircnewbie> toest M?
<ircnewbie> eto oshte nqkolko definirani za nashe ulesnenie podobna grupa ot simwoli: * - {0,} sywpada s 0 ili s mnogo simwoli; + - {1,) sywpada s 1 ili powe4e simwoli
<ircnewbie> tezi sywpadeniq se prawqt samo za 1 simwol, ako iskate da bydat napraweni za powe4e ot 1 trqbwa da gi zagradite w skobi
<ircnewbie> primer: (qwerty)+
<ircnewbie> shte wzeme kolkoto se moje powe4e sywpadeniq s qwerty koito sledwat edin sled drug
<ircnewbie> toest, qwertyqwertyqwerty123787324qwerty ste sywpadne s pyrwite 3 qwerty-ta i posle s poslednoto
<ircnewbie> shtom grupa ot simwoli se zagradqt w skobi te biwat wyrnati kato sywpadenie
<ircnewbie> w protiwen slu4ai nqma da bydat wyrnati
<ircnewbie> ako iskate prosto da imate grupirane bez towa grupirane da ase wyrne kato sywpadenie izpolzwaite (?:chars)
<ircnewbie> grupa ot simwoli zagradeni w [ ] shte se smqtat kato edin simwol
<ircnewbie> koito moje da byde edno ot tezi neshta w skobite
<ircnewbie> tezi simwoli mogat da obhwashtat diapazon ot simwoli (A-Z - ABCD...Z ,a-z - abcd...z ,0-9 - 0123456789 (call me;))
<-- JIaMaPuHa-kyxee has quit (Ping timeout: 444 seconds)
<ircnewbie> ako skobite zapo4wat s ^ to togawa ne trqbwa da e slagate w na4aloto
<ircnewbie> na wsqko drugo mqsto no ne i tam
<ircnewbie> !
<ircnewbie> ne mojete da si prawite nesyshtestwuwashti diapazoni, ako iskate da imate sywoadenie s - mojete da go slojite w na4aloto
<ircnewbie> ili w kraq na skobite
--> G-3 (~[email protected]) has joined #irchelp
<ircnewbie> ne mojee da prawite nqkolko diapazona slepeni A-B-G no mojete da naprawite A-Za-z
<ircnewbie> ako skobite zapo4wat i zawyrshwat s to4ka (.), togawa towa koeto e w tqh
--> JIaMaPuHa-kyxee (~[email protected]) has joined #irchelp
<ircnewbie> nqma da se s4ita kato poredica ot simwoli
<ircnewbie> a kato edin obsht simwol primerno [.ab.] ste sywpadne s ab no ne i s a
<ircnewbie> to4kata (.) <- shte sywpadne s wseki simwol no ne i s nowiqt red
<ircnewbie> primerno f.*bar w foobar ste sywpadne s dwete o-ta
<ircnewbie> mo ako imame perlprexer i napi6em p.*e ste sywpadne s erlprex a ne s erlpr zastoto * e lakoma kakto kazahme po-gore
<ircnewbie> ako iskate da imate sywpadenie w na4aloto na reda izpolzwaite ^
<ircnewbie> a za ograni4itel na kraq na reda $
<ircnewbie> pozitiwnoto gledane napred se prawi 4rez (?=char)
<ircnewbie> a negatiwno (?!char) eto nqkolko primera za da wi stane qsno:
<ircnewbie> imate foobar i izkate da ima sywpadenie s foo posledwan ot bar izpolzwajte foo(?=bar)
<ircnewbie> ako iamte IRCGame i iskate da imate sywpadenie s IRC
<ircnewbie> koeto ne e polsedwano ot Help togawa izpolzwajte IRC(?!Help)
<ircnewbie> i w dwata primera ste ima sywpadeniq
<ircnewbie> regularnite izrazi ne mogat da zawyrshwat s naklonena 4erta \
<ircnewbie> ima nqkolko spec simwola w reg expr koito mogat da sae izpolzwat nagotowo
<ircnewbie> te grupirat nqkolko simwola, sega shte dadem golqma 4ast ot tqh
<ircnewbie> te se izpolzwat kato nai normalni simwoli w regularniqt izraz
<ircnewbie> \a simwolyt kambanka kakto w C
<ircnewbie> \b edno nazad (dwe napred - just kidding kiddies) backspace, kakto w C
<ircnewbie> \e `ESC', ili oktalnata stojnost 033
<ircnewbie> \f formfeed, kakto w Perl
<ircnewbie> \n newline, kakto pri Perl
<ircnewbie> \r carriage return, kakto pri Perl
<ircnewbie> \t horizontal tab, kakto pri Perl
<ircnewbie> \uwxyz
<ircnewbie> kadeto wxyz sa to4no 4etori hexadecimal cifri
<ircnewbie> towa e e Unicode simwola U+wxyz
<ircnewbie> \Ustuvwxyz zapazeni za nqkakwi hipoteti4ni Unicode ekstenzii za 32 bita
<ircnewbie> \v vertical tab, kakto nawsqkade
<ircnewbie> \0 simwola koqto stojnost e 0
<ircnewbie> \xyz (kydeto xyz e to4no 3 oktalni cifri) simwolite 4iito oktalna stojnost e 0xyz
<ircnewbie> Hexadecimal cifri sa `0'-`9', `a'-`f', i `A'-`F'
<ircnewbie> a octal cifri sa `0'-`7'
<ircnewbie> *Malko sykrasteniq za myrzelite*
<ircnewbie> \d - poredica ot wsi4ki cifri - [0-9]
<ircnewbie> \s - znak za interwal - tabulaciq, interwal nowred ili wrystane - [ \t\n\r]
<-- G-3 has quit (-_-)
<ircnewbie> \w - znak za duma - [A-Za-z_]
<ircnewbie> \D - obratnoto na \d - [^0-9]
<ircnewbie> \S - obratnoto na \s - [^ \t\n\r]
<ircnewbie> \W - obratnoto na \w - [^A-Za-z_]
<ircnewbie> zabelejete 4e tezi simwoli mogat da se izpolzwat i w [ ]
<ircnewbie> \A sywpadenie samo w na4aloto na stringa
<ircnewbie> \m samo w na4aloto na dumata
<ircnewbie> \M samo w kraq na dumata
<ircnewbie> \y w na4aloto ili w kraq na dumata
<ircnewbie> \Y da ne e na4aloto ili kraq na dumata
<ircnewbie> \Z sywpadenie samo w kraq na stringa
--> f1r3-b0y ([email protected]) has joined #irchelp
<ircnewbie> \m (kydeto m e cifra) ste spomenem sled malko
<-- f1r3-b0y ([email protected]) has left #irchelp
<ircnewbie> \m shte sywpadne s syshtoto koeto e sywpadnalo pri matchwaneto na string koeto e zagradeno w skobi
<ircnewbie> malko slojni4ko zatowa edin primer shte wi doide dobre ...
<ircnewbie> ([abc])\1 towa ste sywpadne s dwa ednakwi simwola ili aa ili bb ili cc
<ircnewbie> (ako imate takiwa mojete da prashtate spokoino
<ircnewbie> ne se pritesnqwame ot spam ;b
<ircnewbie> w dopylnenie na glawniqt sintaksis ima nqkolko spec formi
<ircnewbie> primerno ako se zapo4ne s poredica (?xyz) kadeto xyz sa edna ili powe4e bukweni simwoli dawa opredeleni ukazaniq na regularniqt izraz
<ircnewbie> sega nqkoi ot tqh
<ircnewbie> (ako ima wse oshte nqkoi koito gleda!!!)
<ircnewbie> c - razlika m/u malki i golemi bukwi (po-princip e wkliu4.)
<ircnewbie> i - prawi razlika m/u malki i golemi bukwi
<ircnewbie> m - iztori4eski simwol za n
<ircnewbie> n - prawi razlika za now red
<ircnewbie> p - 4asti4na razlika za now red
<ircnewbie> s - nikakwa razlika za now red
<ircnewbie> t - malyk sintaksis
<ircnewbie> po princip
<ircnewbie> x - uweli4in sintaksis
<ircnewbie> kogato izpolzwate uweli4eniqt sintaksis praznite mesta i komentarite shte bydat ignorirani
<ircnewbie> towa we4e be kazano
<ircnewbie> mojete da izbegnete towa kato postawite \ pred tqh
<ircnewbie> mojete da imate nqkolko regularni izraza razdeleni s /
<ircnewbie> s | de
<ircnewbie> kato wseki regularen izraz e ograden w () ili w (?:)
<ircnewbie> druga komanda koqto izpolzwa regularnite izrazi e regsub
<ircnewbie> tq prawi zamestwane na 4ast ot stringa s neshto drugo
--- iNT04h[away] is now known as iNT04h
<ircnewbie> sintaksisa e [regsub regexp string substspec varName]
<ircnewbie> prawi se sywpadenie na regularniqt izraz w stringa
<ircnewbie> zamestwaiki sywpadenieto s substspec
<ircnewbie> i kopiraiki nowiqt string w varName
<ircnewbie> ako substspec sydyrja '&' ili '\0' togawa towa ste byde zamesteno s sywpadnalata 4ast ot regularniqt izraz
<ircnewbie> ako 'substspec' ima '\n' kadeto n e cifra m/u 1 i 9
<ircnewbie> togawa towa ste byde zameneno s n sywpadenieto ogradeno w skobi
--- Blady is now known as Blady\brb
<ircnewbie> mojete da slojite dopylnitelni nakloneni 4erti \
<ircnewbie> za da gi izbegnete, dopylnitelni opcii mogat da bydat zadadeni kakto pri regularnite izrazi
<ircnewbie> te sa:
<ircnewbie> -all wsi4ki sywpadeniq w stringa se zamestwat ina4e samo pyrwoto sywpadenie ste byde zameseno
<ircnewbie> -expanded mojete da izpolzwate raz6ireni regularni izrazi
<ircnewbie> -line prawi razlika m/u nowata liniq
<ircnewbie> -linestop smenq dyrjanieto na '[^' i '.'
<ircnewbie> -lineanchor smenq dyrjanieto na `^' i `$'
<ircnewbie> -nocase golemite bukwi ste bydat napraweni na malki
<ircnewbie> -start index opredelq se ot kade da zapo4ne tyrseneto
<ircnewbie> izpolzwajki `^`
<ircnewbie> nqma da ima sywpadeniq s na4aloto na liniqta no \A wse oste ste se izpolzwa za na4aloto na stringa
<ircnewbie> -- indikira kraq na opciite
<ircnewbie> komandata wryshta kolko pyti sa bili napraweni zamestwaniqta
<ircnewbie> ima nqkolko na4ina koito se izpolzwat za da se izbegnat problemite
<ircnewbie> s spec simwoli w TCL
<ircnewbie> po to4no nqkoi skriptowe filtrirat whoda s neshto kato:
<ircnewbie> <paste>
<ircnewbie> proc filt {data} {
<ircnewbie> regsub -all -- \\\\ $data \\\\\\\\ data
<ircnewbie> regsub -all -- \\\[ $data \\\\\[ data
<ircnewbie> regsub -all -- \\\] $data \\\\\] data
<ircnewbie> regsub -all -- \\\} $data \\\\\} data
<ircnewbie> regsub -all -- \\\{ $data \\\\\{ data
<ircnewbie> regsub -all -- \\\" $data \\\\\" data
<ircnewbie> return $data
<ircnewbie> }
<ircnewbie> </paste>
<ircnewbie> takyw skript moje da premahne problemite s spec simwoli
<ircnewbie> koito mogat da se polu4at pri zle napisani skriptowe no dali shte go naprawi
<ircnewbie> ili ne zawisi ot detailite na skritpa
<ircnewbie> moje da ne wi reshi problema ili da go reshi samo 4asti4no
<ircnewbie> stringa w koito iskate da bydat izbegnati spec simwoli trqbwa da bydat manipulirani taka
<ircnewbie> set string [filt $string]
<ircnewbie> sega e wreme da zasegmenm i rabotata s failowe
<ircnewbie> towa shte e malko po trudno ... no sstqh shte mojete da zapazite informaciqta si daje sled restartiraneto na bota
--> Crow4o (~[email protected]) has joined #irchelp
<ircnewbie> predi da izpolzwate file trqbwa da go otworite s [open <filename> [access]]
<ircnewbie> [access] e kakwo iskate da naprawite s fajla
<ircnewbie> eto spisyk s razli4nite access tipowe spored man stranicata
<ircnewbie> r - otwarq fajl samo za 4etene
<ircnewbie> fajlyt trqbwa da systestwuwa
<ircnewbie> towa e stojnosta po podrazbirane ako ne se zadade takawa
<ircnewbie> r+ - oOtwarq fajl za 4etene i pisane file otnowo trqbwa da syshtestwuwa
<ircnewbie> w - otwarq fajl samo za pisane ako file ne syshtestwuwa shte se syzdade
<ircnewbie> w protiwen slu4aj iztriwa wsi4ko koeto ima w nego
<ircnewbie> w+ - otwarq fajl za pisane i 4etene
--> `TITAN` ([email protected]) has joined #irchelp
<ircnewbie> syzdawa go ako ne systestwuwa w protiwen slu4aj iztriwa wsi4ko koeto ima w nego
<ircnewbie> a - otwarq fajl samo za pisane
<ircnewbie> fajlyt trqbwa da systestwuwa i informaciqta se pi6e w kraq na fajla
<ircnewbie> a+ otwarq fajl za za4etene i pisane ako fajlyt ne systestwuwa toj prosto se syzdawa
<ircnewbie> [open] komandata wrysta taka nare4eniqt kanal
<ircnewbie> tozi kanal shte wi trqbwa ako siakte da naprawite neshto s kanala
<ircnewbie> taka 4e trqbwa da hwanete tozi kanal
<ircnewbie> towa moje da byde napaweno kato kanala otide w string
<ircnewbie> primer za towa e sledniqt code w koito kanala na otworeniqt file shte se zapazi w $fs
<ircnewbie> set fs [open $file r]
<ircnewbie> sled kato swyrshite rabotata s faila trqbwa da go zatworite
<ircnewbie> zatwarqneto e to4no sled pisaneto i 4eteneto
<ircnewbie> za towa shte dadem po pylni i qsni primeri po kysno
<ircnewbie> wse pak kakyw e smisala da otworim i zatworim file bez da sme na prawili nishto s nego
<ircnewbie> nali ?!
<ircnewbie> mojete da zatworite kanal s [close <channel>]
<ircnewbie> sled kato ste zatworili file-a trqbwa da go otworite nanowo za da mojete da 4etete i pishete ot nego
<ircnewbie> mojete da 4etete w fajla ili liniq po liniq ili par4e po par4e
<ircnewbie> s gets komandata mojete da 4etete faila liniq po liniq
<ircnewbie> sintaksisa e [gets <channel> [string]]
<ircnewbie> primer
--> main[2-0] ([email protected]) has joined #irchelp
<ircnewbie> set fs [open $file r]
<ircnewbie> gets $fs line(first)
<ircnewbie> gets $fs line(second)
<ircnewbie> close $fs
<ircnewbie> towa shte sloji pyrwata liniq ot $fs w $line(first)
--- main[2-0] is now known as main[away]
<ircnewbie> a wtorata ot $fs w $line(second)
<ircnewbie> mojete da pro4etete izhoda na komanda izpolzwaiki pipe
<ircnewbie> i komandata open, towa stawa po dolu gore sledniqt na4in
<ircnewbie> set fs [open "| nslookup" r]
<ircnewbie> puts $fs "irchelp.unibg.org"
<ircnewbie> close $fs
<ircnewbie> ako iskate da pi6ete kym nqkakwa komanda mojete da izpolzwate otnowo pipe
<ircnewbie> set fs [open "|cat >> file" w]
<ircnewbie> puts $fs "one line"
<ircnewbie> puts $fs "two lines"
<ircnewbie> puts $fs "three lines"
<ircnewbie> close $fs
<ircnewbie> mojete da 4etete ot file par4e po par4e s komandata [read <channel> [bytes]]
<ircnewbie> [bytes] sa nomerata w bajtowe koito iskate da pro4etete ot fajl
<ircnewbie> ako ne zadadete nomer w baitowe celiqt file shte byde pro4ten
<ircnewbie> primer za owa
<ircnewbie> set fs [open $file r]
<ircnewbie> set info [read $fs 10]
<ircnewbie> close $fs
<ircnewbie> towa shte sloji pyrwite 10 baita ot $fs w $info
<ircnewbie> mojete da pishete w failowe s komandata puts
--> ^MILLENIUM^ ([email protected]) has joined #irchelp
<ircnewbie> sintaksisa e [puts <channel> <text>]
<ircnewbie> primer za da go razberete po dobre
<ircnewbie> set fs [open $file w]
<ircnewbie> puts $fs "$nick"
<ircnewbie> close $fs
<ircnewbie> towa shte napishe $nick w $file
<ircnewbie> w nqkoi slu4ai moje da ne znaete kolko e golqm file-a i zaradi towa da ne znaete do kade da 4etete ot file-a
<ircnewbie> s eof komandata mojete da razberete dali towa e kraq na file
<ircnewbie> [eof <channel>]
<ircnewbie> eof wrastha 1 ako poslednata komanda koqto e rabotila s kanala e wyrnala edn of file i 0 ako ne e
<ircnewbie> edin ot na4inite da izpolzwate [eof] komandata e w [while] cikyl
<ircnewbie> <paste>
<ircnewbie> set found 0
<ircnewbie> set fs [open $file r]
<ircnewbie> while {![eof $fs]} {
<ircnewbie> gets $fs line
<ircnewbie> if {$line == $nick} { set found 1 }
<ircnewbie> }
<ircnewbie> close $fs
<ircnewbie> if {$found} {
<ircnewbie> putdcc $idx "$nick was found!"
<ircnewbie> } else {
<ircnewbie> putdcc $idx "$nick was not found."
<ircnewbie> }
<ircnewbie> </paste>
<ircnewbie> towa shte proweri wsqka liniq ot $file i shte wi kaje tazi liniq dali e ekwiwalentna na $nick
<ircnewbie> ako rabotite s failowe trqbwa da znaete kak da prowerqwate dali syshtestwuwat
<ircnewbie> ina4e ste trqbwa da syzdawate now fajl wseki pyt kogato startirate TCL skripta si
<ircnewbie> zashtoto w protiwen slu4ai
<ircnewbie> skripta wi shte wi dade greshka
<ircnewbie> ako se opitwate da otworite nesyshtestwuwash file
<ircnewbie> towa moje da byde napraweno s komandata [file exists <filename>].
<ircnewbie> zabelejete 4e pate4kata w koqto wsi4ki komandi ili files se izpylnqwat e kadeto e binary-to na bota
<ircnewbie> taka 4e ako reshite da pishete izwyn eggdrop direktoriqta trqbwa da zadadete celiqt pyt w filename
<ircnewbie> file exists wryshta 1 ako file-a syshtestwuwa i 0 ako ne
<ircnewbie> malko po4iwka
<ircnewbie> ako ima wyprosi deistwaite
--- ircnewbie sets modes [#irchelp -m]
--- ircnewbie sets modes [#irchelp -m]
<`TITAN`> bax mamamu
<^MILLENIUM^> hi all
<^MILLENIUM^> kak e
<^MILLENIUM^> nqkoi ot kade moje da si isteglq nqkoi script
<`TITAN`> to ne be6e lekciq to ne be6e 4udo
<`TITAN`> !!!!!!
<ircnewbie> ^MILLENIUM^ http://irchelp.unibg.org/IRC/tcls.htm
<ircnewbie> ^MILLENIUM^ http://irchelp.unibg.org/irchelp/IRC/tcls.htm
<ircnewbie> wtoroto
--- Blady\brb is now known as Blady
<Blady> er
<`TITAN`> ot kade moga da si drapna tcl za akicka na bot`s
<`TITAN`> ako nqkoi bann 2 pati bot`s bota avtomati4no d ago vkara v akicka na channela
<ircnewbie> `TITAN` 193.68.27.9:8080/kbakick.tcl
<^MILLENIUM^> nqkoi ot kade moje da si isteglq nqkoi script
<^MILLENIUM^> eho
<ircnewbie> ^MILLENIUM^: ti slqp li si ? otgoworihme ti http://irchelp.unibg.org/irchelp/IRC/tcls.htm
<ircnewbie> `TITAN`: skripta ti beshe gotow otdawna no nqmah time da ti go send
<`TITAN`> axa
<`TITAN`> ama kak da go vzema
<`TITAN`> ot de d ago drapna
<`TITAN`> ?
<ircnewbie> `TITAN`: az li ne pisha kato horata ili ? http://193.68.27.9:8080/kbakick.tcl
--- main[away] is now known as main
<Blady> hehe
<Blady> :>
<ircnewbie> syjalqwam trqbwa da prodyljim .. malko ostana .. socket|httpd i tips && tricks
<`TITAN`> ircnewbie
<`TITAN`> misi
<`TITAN`> kat go izdarpam go slagam v ppaka skripts nali
--- ircnewbie sets modes [#irchelp +m]
--- CS sets modes [#irchelp +o Blady]
--- Blady sets modes [#irchelp +m]
<ircnewbie> da
<ircnewbie> ta ako neznaete kakwo e socket mojete da si po4inete oshte malko
<ircnewbie> warwete piite 1 kafe dokato swyrshim s sockets
<ircnewbie> zarejdaneto na modul e nenujno izpolzwa se [socket options host port] komandata.
<ircnewbie> tq wryshta socket koito moje da se ipolzwa az po kysno
<ircnewbie> sega da obqsnim malko opciite
<-- ^MILLENIUM^ has quit ()
<ircnewbie> nai lesnoto e set sock [socket 127.0.0.1 21]
<ircnewbie> koeto prawi kanal sock
<ircnewbie> ako iskate da asinhronizirate wryzkata izpolzwaite -async
--> MASSTER ([email protected]) has joined #irchelp
<ircnewbie> towa ozna4awa 4e socketa shte se naprawi wednaga no nqma da se swyrje wednaga kym server-a
<ircnewbie> towa ne se prepory4wa pri pisaneto na TCLs za egg
<ircnewbie> set sock [socket -async 127.0.0.1 21]
<ircnewbie> w slu4ai 4e iskate da izpolzwate za wryzka ne localniqt si adres a drug ot washata mashina
<ircnewbie> probwaite -myaddr
<ircnewbie> set sock [socket -myaddr 12.35.61.1 127.0.0.1 21]
<ircnewbie> za da pishete kym socket-a se izpolzwa poznatata funkciq puts channel msg
<ircnewbie> puts $sock "user edi"
<ircnewbie> flush $sock
<ircnewbie> puts $sock "pass edolino"
<ircnewbie> flush $sock
<ircnewbie> puts $sock "QUIT"
<ircnewbie> flush $sock
<ircnewbie> taka shte se lognete na server-a i shte izlezete ot nego s user edi i pass edolino
<ircnewbie> flush se izpolzwa za da se flushne wsqka buferirana output informaciq
<ircnewbie> wsqka inf koqto e swyrzana se pishe w sock, za da q izwle4ete izpolzwaite gets channel
<ircnewbie> set line [gets $sock]
<-- MASSTER ([email protected]) has left #irchelp
<ircnewbie> $line ste sydyrja pyrwata liniq wyrnata ot soketa
<ircnewbie> obiknoweno 220 ProFTPD 1.2.5 Server (ProFTPD Default Installation) [irchelp.unibg.org]
<ircnewbie> za 4etene samo na 4ast ot inf
<ircnewbie> izpolzwaite [read chan numchars]
<ircnewbie> naprimer set first20chars [read $sock 20]
--> aaaaaaaaaaaaaa ([email protected]) has joined #irchelp
<ircnewbie> towa shte wzeme pyrwite 20 simwola wyrnati ot sock
<ircnewbie> za da zatworite kanala izpolzwaite close $sock
<ircnewbie> mojete da izpolzwate i fconfigure za da se nastroi soket kanala wyrnat ot socket komandata
<-- aaaaaaaaaaaaaa has quit (Dead socket)
<ircnewbie> fconfigure s -error shte wyrne greshka pri wryzkata s socketa
<ircnewbie> hubawo e da polzwate towa kogato izpolzwate -async za da razberete dali ima uspeh
<ircnewbie> set returned [fconfigure $sock -error]
<ircnewbie> towa shte wryne "" ako wsi4ko e OK
<ircnewbie> ina4e greshka
--> Priqtel ([email protected]) has joined #irchelp
<ircnewbie> set arr [fconfigure $sock -sockname]
<ircnewbie> shte wyrne spisyk s 3 elementa (adresa na soket-a, host-a na soket-a i port-a na soketa)
<ircnewbie> ako hostname-a ne moje da se resolv
<ircnewbie> shte se wyrne syshtoto kato adresa
<ircnewbie> set arr [fconfigure $sock -peername]
<ircnewbie> pak wryhsta 3 elemetna no samo za client socket
<ircnewbie> -> address, host i port kym kojto soketa se e wyrzal
<ircnewbie> otnowo ako host name-a ne moje da se resolv ste se wyrne systoto kato adresa
<ircnewbie> ima i server wryzka
<ircnewbie> ako wi interesuwa, powe4e po wyprosa `man n socket` ;bb
<ircnewbie> sega shte zasegnem malko temata za wryzka s http serveri
<ircnewbie> mislq 4e vizor pitashe za takaw tcl ...
<ircnewbie> reshihme da kajem samo osnownoto
<ircnewbie> a po kysno we4e mojete da usywyrshenstwate nau4enoto
<ircnewbie> nai wajnoto neshto e da imate http modula na TCL mojete da go wzemete ot http://irchelp.unibg.org/irchelp/Downlo ... tpd.tcl.gz
<ircnewbie> sled towa pyrwiqt red WINAGI trqbwa da e package require http
<ircnewbie> koeto ozna4awa 4e se iziskwa http modula
<ircnewbie> http::config -accept "image/gif, "image/jpeg, text/*" s tazi opciq mojete da zadadete kakwi failowe mogat da bydat prieti
<ircnewbie> po princip se priemat */*
<ircnewbie> tazi opciq na dali bi wi pomognala mnogo ;b
<ircnewbie> http::config -proxyhost "proxy.beem.com" -proxyport 8080
<ircnewbie> s towa mojete da minete prez proxy server
<ircnewbie> koi accesswa saita wi moje da se zadade s http::config -useragent "Mozilla/5.0"
<ircnewbie> w tozi slu4ai mozilla 5.0
<ircnewbie> po princip towa e "Tcl http client package 2.2."
<ircnewbie> za da se smykne file prosto izpolzwaite set token [http::geturl http://127.0.0.1/manual/index.html]
<-- Priqtel ([email protected]) has left #irchelp
<ircnewbie> set var [http::data $token]
<ircnewbie> koeto shte smyken ot http://127.0.0.1/manual/ fajla index.html
<ircnewbie> i shte go postawi w $var, pyrwo se slaga w spec promenliwa
<ircnewbie> za modula i posle se prerabotwa w 4etim wid 4rez http::data
<ircnewbie> ako iskate da swalite fajla w bin mode po princip towa se detectwa po podrazbirane
<ircnewbie> izpolzwaite set token [http::geturl http://127.0.0.1/manual/index.html -binary 1]
<ircnewbie> ako iskate da dobawite dopylnitelen header - set token [http::geturl http://127.0.0.1/manual/index.html -headers "My Header here!"]
<ircnewbie> za da izpylnite POST query
--- Johny^Bravo is now known as Johny^B|HaHka
<ircnewbie> set token [http::geturl http://127.0.0.1/manual/index.html -query query]
<ircnewbie> timeout se opredelq ot set token [http::geturl http://127.0.0.1/manual/index.html -timeout 100]
<ircnewbie> token-a biwa resetnat 4rez http::reset token
<ircnewbie> kakto be kazano http::data token wryshta 4etimata inf ot http::geturl
<ircnewbie> izpolzwaite ::http::status token
<ircnewbie> za da widite efekta ot izpolzwaneto na token-a
<ircnewbie> za https izpolzwaite ili http::register ili LibCurl kojto wyrwi otedelno ot TCL
<ircnewbie> zatowa ne mislim da goworim za nego
<ircnewbie> no mojete da go wzemete ot http://irchelp.unibg.org/irchelp/Downloads/curl.zip
<ircnewbie> ::http::register protokol port komanda
<ircnewbie> protokola primerno e https, porta koito izpolzwa protokola,
<ircnewbie> i komandata e komanda koqto shte byde izpylnena ot TCL za da se syzdade socket
<ircnewbie> primerno ::tls::socket
<ircnewbie> no tq iziskwa tls da byde instaliran taka 4e wnimawajte!
<ircnewbie> eto malak primer
<ircnewbie> package require http ;# zarejda http modula
<ircnewbie> package require tls ;# zarejda tls
<ircnewbie> http::register https 443 ::tls::socket ;# registrira izpolzwaneto na https na port 443
<ircnewbie> set token [http::geturl https://my.secure.site/] ;# wzema informaciq ot sajta my.secure.site/
<ircnewbie> za da izklu4ite izpolzwaneto na https se izpolzwa komandata ::http::unregister protokol
<ircnewbie> kato cqlo towa e za http
<ircnewbie> ima nqkoi drugi osobenosti ... ;b shte wi gi spestim
<ircnewbie> wijdame 4e mnogo wi wle4e ;b
<ircnewbie> sega da obsydim nqkoi taktiki pri pisaneto na TCL scripts koito mogat da wi se storqt polezni i koito mogat da wi potrqbwat
<ircnewbie> za fenowete na MySQL (samo si mislq 4e ima takiwa tuka) ima spec moduli
<ircnewbie> za wryzka s TCL MySQL kakto za *NIX taka i za WIndows i Solaris
<ircnewbie> mojete da gi razgledate kym tqh wyrwi dostata4no dopylnitelna informaciq
--- vdix is now known as vdix[game]
<ircnewbie> <ircnewbie> set token [http::geturl https://my.secure.site/] ;
<ircnewbie> ops
<ircnewbie> http://irchelp.unibg.org/irchelp/Downlo ... /fbsql.zip
<ircnewbie> http://irchelp.unibg.org/irchelp/Downlo ... 0.9.tar.gz
<-- Crow4o has quit (Хан Крум издебнал самозадоволените ромеи в дерето и ги изненадал отзад .)
<ircnewbie> mnogo hora zarejdat tonowe skriptowe na wednyj ... i ne iskat da imat problemi
<ircnewbie> e pa kak da stane twa ?!
<ircnewbie> ima nqkolko na4ina koito mogat da wi reshat problema
<ircnewbie> izpolzwaite kolkoto se moje po malko return 0
<ircnewbie> ili w protiwen slu4ai shte spre wsi4ki bind tyrseniq predi procedurata wi
<ircnewbie> ...
<ircnewbie> eto nqkoi idei
<ircnewbie> 1. Naimenuwajte proc-a si smisleno
<ircnewbie> proc antiidle {} {} ne neshto ot sorta na proc script {} {}
<ircnewbie> Blady {P} ;b
<Blady> hehe {p~}
<Blady> ;P
<ircnewbie> 2. systoto se otnasq i za promenliwite wi ako izpolzwate '-' w tqh kogato gi wikate gi obgrajdajte w skobi taka -> ${script-antiidle}
<ircnewbie> dawam primer e ;bbb
<ircnewbie> ti si opitno zai4e ;b
<ircnewbie> 3 ako skriptyt wi izpolzwa tajmeri gledajte da ne sa mnogo
<ircnewbie> mojete da nakarate skripta wi da izpylni nqkakwa komanda sled opredelen period ot wreme w mins ili secs
<ircnewbie> towa moje da byde napraweno s timer s komandite timer ili utimer
<ircnewbie> sintaksisa e [timer <time> "<command> [parameters]"]
<ircnewbie> time e sled kolko wreme komandata shte byde izpylnena
<ircnewbie> timer iziskwa towa w minuti a utimer w sekundi
<ircnewbie> s komandite za timers i utimers mojete da widite spisyk s tekushtite timeri
<ircnewbie> tezi komandi ne iziskwat nikakwi parametri i wryshtat list wseki obekt ot koito sydyrja inf
<ircnewbie> za edin ot timerite
--> MpaBka^ ([email protected]) has joined #irchelp
<ircnewbie> koito wyrwi w momenta .. zabelejete 4e ako w timer-a imame $foo koito primerno sydyrja "[foo]" i sled towa izwikame tajmera s
<ircnewbie> [utimer 30 "test $foo"] ste se opita da izpylni komandata 'foo'
<-- MpaBka^ has quit (Budi nepovtorim,zashtoto vsi4ko koeto se povtarq gubi 4ara si!)
<ircnewbie> zastoto e zagradena w skobi i izprasta izhoda na komandata kym 'foo'
<ircnewbie> a ne towa koeto e wyrnala komandata
<ircnewbie> taka 4e bydete mnogo wnimatelni kogato izpolzwate timeri
<ircnewbie> i izbqgwaite wsqka skoba w stringa si s komanda kato list ili kato slagate nakloneni 4erti pred skobite w stringa nesto kato [set foo "\\\[foo\\\]"]
<ircnewbie> koeto shte dade na foo stoinosta \[foo\]
<ircnewbie> poradi tazi pri4ina sintaksisa na komandata timer e dobre da byde [timer <time> [list <command> <parameters>]"]
<ircnewbie> kogato izprastate parametri kym procedura za da predotwratite gre6kite koito mogat da se polu4at
<ircnewbie> mojete da polu4ite random 4isla s rand komandata
<ircnewbie> [rand <number>]
<ircnewbie> <number> e wyzmojnite nomera ot koito iskate [rand] da wrysta nomer
<ircnewbie> ako iskate 2 wyzmojnosti trqbwa da izpolzwate [rand 2] no [rand] zapo4wa da broi ot nula taka 4e towa ste wyrne ili 0 ili 1
<ircnewbie> zatowa [rand] wrysta random nomer m/u 0 i (<number> - 1)
<ircnewbie> naprimer [rand 10] ste wyrne random nomer m/u 0 i 9
<ircnewbie> kogato se opitate da dostignete do string koito nesyshtestwuwa
<ircnewbie> TCL shte wi dade greshka zatowa prowerkata dali stringa syshtestwuwa e predimstwo
<ircnewbie> towa moje da byde napraweno s [info exists <string>]
<ircnewbie> <string> e imeto na stringa kojto iskate da promenite
--> Chris__Rea ([email protected]) has joined #IRCHelp
--- KoNDoM is now known as k|bbl
<ircnewbie> ako string e masiw mojete ili da prowerite dali samiqt masiw systestwuwa ili da prowerite dali daden string ot nego systestwuwa
<ircnewbie> taka 4e i dwete 'test' za masiwa i 'test(what)' za stringa 'what' ot masiwa 'test' sa walidni prowerki
<ircnewbie> [info exists] komandata wrysta 1 ako stringyt systestwywa i 0 ako ne
<ircnewbie> naprimer ako naprawite [set test(foo) "bar"] i ako izpolzwate [info exists test] to ste wyrne 1 i [info exists test(foo)] systo ste wyrne 1
<-- k|bbl (~[email protected]) has left #irchelp
<ircnewbie> wyzmojno e da dekorirate malko wa6iqt tekst kakto be spomenato
<-- `TITAN` has quit (are posle pakj 6e vleza)
<ircnewbie> kodyt za pod4ertawane e \037 (ili \031)
<ircnewbie> kodyt za udebelqwane \002
<ircnewbie> kodyt za dwetowete e \003 i sled towa dobawqte nomeryt na cweta
<ircnewbie> a kodyt za reverse e \022
<ircnewbie> w mirc ima pop-up prozor4e koeto se pokazwa kogato natisnete CTRL+K kadeto sa cwetowete
<ircnewbie> abe nqma smisal da wi goworq ...
--- ircnewbie sets modes [#irchelp -m]
<ircnewbie> to se e razbralo 4e nishto nqma da nau4ite
<ircnewbie> stoite si prosti
--- ircnewbie sets modes [#irchelp -o ircnewbie]
<ircnewbie> Blady izprati logs na [email protected]
Eggdrop/TCL
- LuD
- The Sinner's Priest ;-]
- Мнения: 205
- Регистриран на: 10 Окт 2012 15:44
- Местоположение: Sofia
- Обратна връзка:
Eggdrop/TCL
The quieter you become, the more you are able to hear! https://www.FreeUniBG.eu
Кой е на линия
Потребители разглеждащи този форум: 0 регистрирани и 3 госта