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.

bind msg o

Old posts that have not been replied to for several years.
Locked
b
brentos

bind msg o

Post by brentos »

I am trying to make a bot that can respond to messages. But it has to have certain op only commands so that I can turn it on off or whatever. The problem is the o in the bind only works for ops that are in the ops list for eggdrop. But what do I do if I want any op to be able to do this, even if they were just oped while in the chat and are not in the list.
Does anyone know a way around this.
Thanks
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Well, use the 'isop' like:

Code: Select all

bind pub - something something

proc something {nick uhost handle channel text} {
if {![isop $nick $channel]} { return }
putserv "PRIVMSG $channel :something"
}
Once the game is over, the king and the pawn go back in the same box.
b
brentos

bind msg o

Post by brentos »

I tried what was suggested but it still doesn't think that people that are not in the eggdrop op list but have been ops are ops so it ignores there commands.
Any other advice
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

ARe you sure the above isn't working?

Have you tried typing the word "somthing" in a channel the bot is in?
User avatar
BarkerJr
Op
Posts: 104
Joined: Sun Mar 30, 2003 1:25 am
Contact:

Post by BarkerJr »

Did you try '.channel <#channel>' in dcc chat to be sure the bot isn't desynced?
b
brentos

Post by brentos »

Thnaks for the help I got it to work.
Locked