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.

!voice command?

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
n
nanamee
Voice
Posts: 6
Joined: Sun Jan 21, 2007 6:13 pm

!voice command?

Post by nanamee »

i'm sorry if this has been asked many times, but i searched, and always get way too many, or no results.

what i want to know is, how do i set up the bot, using scripts, or not, to voice people when they say a certain thing in the channel.
Such as if !voiceme is said, the bot will voice them.
And also, more then one command to do the same thing.
So, !voiceme and !iwantvoice will both do the same thing; voice the user.
This should work for anyone who wants to use the feature of the channel.

as well as that, how do i set up a piece of text to be sent every 25mins or so.
such as "to get voice, type !voiceme or !iwantvoice"

thank you
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind pub - !voiceme voiceme
bind pub - !iwantvoice voiceme
bind time - * telltovoice

proc voiceme {nick uhost hand chan arg} {
 if {![isvoice $nick $chan]} {
  pushmode $chan +v $nick
 }
}

proc telltovoice {m h args} {
 if {([scan $m %d]+[scan $h %d]*60)%25 == 0} {
  puthelp "privmsg #channel :to get voice, type !voiceme or !iwantvoice"
 }
}
#channel is the name of your channel.
Post Reply