egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simple text event trigger

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
romprod
Halfop


Joined: 19 Oct 2001
Posts: 49

PostPosted: Sat Jan 12, 2013 1:08 pm    Post subject: Simple text event trigger Reply with quote

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:
bind pubm - test test

proc test { nick host hand chan text } { exec wakeonlan -p 7 A0:A0:A0:A0:A0:A0 }
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Fri Jan 18, 2013 10:00 pm    Post subject: Reply with quote

Try

Code:

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"
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber