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 

!voice command?

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


Joined: 21 Jan 2007
Posts: 6

PostPosted: Sun Jan 21, 2007 6:19 pm    Post subject: !voice command? Reply with quote

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
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jan 21, 2007 9:05 pm    Post subject: Reply with quote

Code:
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.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
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