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


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

ausführen eines scripts per pub cmd

Old posts that have not been replied to for several years.
Locked
B
BeSSeRwUeRzEl

ausführen eines scripts per pub cmd

Post by BeSSeRwUeRzEl »

HI ,
ich wollt fragen wie ich nen cmd machen kann wenn ich z.B.
!tcl muh.tcl
eingebe, das dann dieses tcl script ausgeführt wird und durch dieses ausführen soll
.chanset #chan chanmode +nt-imklps
gemacht werden! pls help


mFg BeSSeR
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

ich forsteht nicht

Sie Muß gesprechen english, bitte
photon?
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

something like that
photon?
B
BeSSeRwUeRzEl

Post by BeSSeRwUeRzEl »

HI ,
i will write in english :). i want to make a script where i can write in a channe:
!tcl muh.tcl
and then my eggdrop exec this tcl script and in this tcl script i want to put in
.chanset #chan chanmode +nt-imklps

can u help me ?

i hope u understand it :)
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

found this somewhere on my hdd..

Code: Select all

#Usage /msg <bot> assist <#channel> 

bind msg - assist pub:assist 

proc pub:assist {nick uhost handle text} { 

set channame [lindex [split $text] 0] 

# here you can do some test to determine if the channel is valid ect... If you really need it. 

channel set $channame -inactive 

}
just rewrite it to public trigger and it should work
B
BeSSeRwUeRzEl

Post by BeSSeRwUeRzEl »

thx but i have found another way:

bind pub m !tcl besser
proc besser {n u h c a} {source scripts/besser.tcl}

but now i must fill in every scritpt! how can i make this that i hat to write
!tcl script.tcl
pls help thx :)
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

didn't test, but should work..

Code: Select all

bind pub m !tcl mytcl

proc mytcl {nick hand uhost chan text } {
	source scripts/$text
}
you could expand it with an file-exists function etc, this is just how it basicly would (should) work..
D
Deflex

Post by Deflex »

oder du nimmst das !tcl public script ( falls du sowas meinst )

beispiele mit diesem script:

!tcl channel add #channel

!tcl chattr Handle flag|flag #channel

!tcl return Dieses Script ist cool!

sowie
!tcl exec ...

und der link:

http://tcl.b0rk.de/files/tcldebug.tcl
Locked