BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => AO 0.6 support => Topic started by: RaZeR on March 06, 2009, 09:06:15 am

Title: unable to reply to tells from non-members
Post by: RaZeR on March 06, 2009, 09:06:15 am
I've made a module which, when receiveing a tell such as
!myguildname 1
or
!myguildname 2

It will reply with a nice information script. Easy, works fine for members. But I need it to work for non-members. Everytime someone that is not part of my guild uses it, it replies that it only listens to members of the bot.

This is fine for everything except when a possible new member (someone that is not a member yet) is trying to get access to information about my guild (which is what this function does - gives information about our guild). So what happens here is our guild leader has an advertisement script that has links in it that send tells to the bot, and the bot is supposed to reply with the information. It happily replies correctly to any current members of the guild.

Can anyone suggest how I can make my module reply to anyone i.e. non-members?
Title: Re: unable to reply to tells from non-members
Post by: Alreadythere on March 06, 2009, 09:58:13 am
All you need to do is to set the access-level of your command or subcommand to ANONYMOUS. Then everyone that is not banned from your bot can access the commands.
Title: Re: unable to reply to tells from non-members
Post by: Wizhk on March 06, 2009, 10:20:36 am
Could you share the module..  ;D

Wizhk
Title: Re: unable to reply to tells from non-members
Post by: RaZeR on March 10, 2009, 05:34:07 am
I am still having problems. I have changed the register_command line in my module from

    $this->register_command('all', 'myguildname', 'GUEST');

to

    $this->register_command('all', 'myguildname', 'ANONYMOUS');


The above still has exactly the same problem with non-members not being able to use the module. Is there an additional setting that I need to change somewhere, and if so, how do I get to it?
Title: Re: unable to reply to tells from non-members
Post by: Alreadythere on March 10, 2009, 10:21:30 am
Use !commands to change already existing access rights, the register_command() call only sets the access rights if none exist, it never changes already existing ones.
Title: Re: unable to reply to tells from non-members
Post by: RaZeR on March 13, 2009, 07:04:52 am
thanks! this worked perfectly! I did not even know this command existed, now I can fine tune access to every module.
SimplePortal 2.3.7 © 2008-2025, SimplePortal