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 

Add on and off trigger to script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
DeFirence
Voice


Joined: 31 Oct 2006
Posts: 8

PostPosted: Thu Jan 11, 2007 9:05 am    Post subject: Add on and off trigger to script Reply with quote

Hi,

I need to add !msgon and !msgoff triggers to this script so that halfops and above can use it. I hav looked on your forums and around other eggdrop sites. please could you help.

Code:
### SETTINGS ###

# Channels where the msg is sent to.
# If you want to use several channels put a space between them
set channels "#chan1 #chan2"

# How often do you want the msg to be displayed (in minutes)
set minutes 15

# Set your msgs here
# \002 bold
# \003 colour (ex: \0030,12 textcolor=0 white; backgroundcolor=12 blue)
# \022 reverse
# \037 underline
# Write several lines for several msgs
set msgs {
"\002Line1"
"\037Line2"
}


### YOU ARE DONE NOW. YOU DON'T NEED TO EDIT ANYTHING ELSE FROM HERE ###

if {![info exists sendtext_running]} {
 timer $minutes sendtext
 set sendtext_running 1
}
   
proc sendtext {} {
 global channels minutes msgs
 foreach channel $channels {
  foreach msg $msgs {
   putserv "PRIVMSG $channel :$msg"
  }
 }
 timer $minutes sendtext
 return 1 
}


Thanks alot

DeFirence
GT-Radio Staff
http://www.gt-radio.co.za
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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