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 

mass message script

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


Joined: 10 Jun 2008
Posts: 6

PostPosted: Fri Jun 20, 2008 5:23 am    Post subject: mass message script Reply with quote

Hello. I have a script who put once at 24 hours a notice to a channel. I need to put a mass message only to voice users (+v) after he put that notice, in a 2-3 seconds interval for each voice user. Can somebody please help me with that ?
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Fri Jun 20, 2008 10:51 pm    Post subject: Reply with quote

Code:
# set your main channel message here
variable yourmainmessage "\002PPEPARE TO FEEL THE POWER OF VOICE!\002"
# set your voice message here
variable yourvoicemessage "I've noticed you have voice. Feel privileged, but no power, sorry.. heh"
# set your channel here
variable yourvoicechannel "#yourchan"
# set your timer delay here
variable yourvoicetimer "1440"

# message
proc voicemessage { } {
   # channel
   putserv "privmsg $::yourvoicechannel :$::yourmainmessage"
   foreach nick [chanlist $::yourvoicechannel] {
      if {[isvoice $nick $::yourvoicechannel]} {
         # voiced nick
         puthelp "notice $nick :$::yourvoicemessage"
      }
   }
   # re-invoke timer to keep procedure running
   timer $::yourvoicetimer voicemessage
}
# invoke timer to initially start the procedure
timer $yourvoicetimer voicemessage

_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
BadExample
Voice


Joined: 10 Jun 2008
Posts: 6

PostPosted: Wed Jun 25, 2008 3:17 am    Post subject: Reply with quote

The script is awesome. Thankyou !!!!
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