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.

mass message script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
B
BadExample
Voice
Posts: 6
Joined: Tue Jun 10, 2008 1:38 am

mass message script

Post by BadExample »

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 ?
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Code: Select all

# 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
B
BadExample
Voice
Posts: 6
Joined: Tue Jun 10, 2008 1:38 am

Post by BadExample »

The script is awesome. Thankyou !!!!
Post Reply