I am the owner of a bot and i want to run be able to run a program remotely on my bots system by entering a command to my bot via IRC. Like Winamp or VNC. How do i do this? thanks for anybodys help.
Mr Scruple
Code: Select all
set winamp "/cygdrive/c/program files/winamp/winamp.exe"
bind pub n !winamp start:winamp
proc start:winamp {nick uhost hand chan text} {
exec $::winamp
return 1
}
I am not sure if i got you right.You cannot spawn an independant thread from TCL, only a child.
well, the restriction are about fine, but bgexec simply spawns an asyncron socket/child via 'open |'. And eggdrop doesnt support TCL threading for reasons that has been discussed in other threads.sKy wrote:Correct me if i am wrong!
1st: you added the code directly into the conf? you usually paste code into a file and load that file via the config (add the end are some examples).mrscruple wrote:I have Posted the Script in Eggdrop.conf now what do i need to type in irc to Start the program. i have tried to use .tcl exec (and the file name)
Eggdrop just doesn`t support it by standad (and i know a bit about the reasons). I am using mkThreads1.2. Eggdrop (and Windrop aswell too) are working fine with threads.De Kus wrote:And eggdrop doesnt support TCL threading for reasons that has been discussed in other threads.