| View previous topic :: View next topic |
| Author |
Message |
BadExample Voice
Joined: 10 Jun 2008 Posts: 6
|
Posted: Fri Jun 20, 2008 5:23 am Post subject: mass message script |
|
|
| 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 |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Fri Jun 20, 2008 10:51 pm Post subject: |
|
|
| 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 |
|
 |
BadExample Voice
Joined: 10 Jun 2008 Posts: 6
|
Posted: Wed Jun 25, 2008 3:17 am Post subject: |
|
|
| The script is awesome. Thankyou !!!! |
|
| Back to top |
|
 |
|