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.

Simple text event trigger

Help for those learning Tcl or writing their own scripts.
Post Reply
r
romprod
Halfop
Posts: 49
Joined: Fri Oct 19, 2001 8:00 pm

Simple text event trigger

Post by romprod »

Hi Guys,

I'm looking at expanding a basic script that I've written. Can someone give me pointers on how I add multiple procedures for the same trigger and adding multiple triggers for these procedures?

How would it be possible to capture what is returned by the OS from the command and say it to the channel?

Code: Select all

bind pubm - test test

proc test { nick host hand chan text } { exec wakeonlan -p 7 A0:A0:A0:A0:A0:A0 }
User avatar
Madalin
Master
Posts: 310
Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:

Post by Madalin »

Try

Code: Select all

bind pubm - test test 

proc test { nick host hand chan text } { 
set s [exec wakeonlan -p 7 A0:A0:A0:A0:A0:A0]
}

putserv "PRIVMSG $chan :$s"
Post Reply