Dear Friends, I was wondering if I can get a code which does something like "Once the Bot gets OPed by chanserv/any other OP - (+v-o Bot BOt) voice & deop itself in specified channel. Thx in advance.
bind mode - +o foo
proc foo {n u h c m v} {
if {[string eq -noc $v $::botnick]} {
putserv "mode $c -o+v $::botnick $::botnick"
}
}
thx for the response, just wondering where can I define the channel where bot should deop itself? like I dont want it to deop in all the channels but only specified channels
Thanks a lot for your kind response Demond its really so nice of u
I will test the code n give feedback.
Sorry to ask for much but can I add more than one channel in it? if yes then how :s
thx mate
now surprisingly I dont know why but bot doesn't deop itself when it joins the channel and gets OPed. it only deops if later on OPed by some1 or Chanserv. what could be the problem :s
as soon as BOT joins the channel, it gets oped by Chanserv on DALnet and it doesn't Deop itself. Later if I OP the BOT using Chanserv or myself. it does Deop itself. Wonder whats wrong :s
i.m.offline wrote:as soon as BOT joins the channel, it gets oped by Chanserv on DALnet and it doesn't Deop itself. Later if I OP the BOT using Chanserv or myself. it does Deop itself. Wonder whats wrong :s
It's because while demond made the binds right, when the eggdrop recieves 366 it will deop itself regardless of the channel.
Try to modify it yourself instead of asking others to do everything for them.
Also as i said before, why don't you just take the bots chanserv rights away?