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 

Anouncement script

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


Joined: 26 Oct 2005
Posts: 2

PostPosted: Wed Oct 26, 2005 4:38 pm    Post subject: Anouncement script Reply with quote

I need a script where I can devoice and deop everyone in the channel except for me and bot to make anouncements. Also a chanserv command to /msg chanserv LEVELS #channel SET autovoice 1. I also need the script to be able to !anounceoff to revoice everyone and I can manually op everyone again.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Oct 28, 2005 9:54 am    Post subject: Reply with quote

Code:
bind pub n !announceon announce:on
bind pub n !announceoff announce:off

proc announce:on {nick uhost hand chan arg} {
 foreach n [chanlist $chan] {
  if {[isbotnick $n] || [matchattr [nick2hand $n] n]} {continue}
  if {[isop $n $chan]} { pushmode $chan -o $n }
  if {[isvoice $n $chan]} { pushmode $chan -v $n }
 }
 puthelp "PRIVMSG ChanServ :LEVELS $chan SET autovoice 1"
}

proc announce:off {nick uhost hand chan arg} {
 foreach n [chanlist $chan] {
  if {![isvoice $n $chan]} { pushmode $chan +v $n }
 }
}

_________________
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