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
-
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?
-
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.
-
Could you share the module.. ;D
Wizhk
-
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?
-
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.
-
thanks! this worked perfectly! I did not even know this command existed, now I can fine tune access to every module.