collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: unable to reply to tells from non-members  (Read 5001 times)

0 Members and 1 Guest are viewing this topic.

Offline RaZeR

  • BeBot User
  • **
  • Posts: 28
  • Karma: +0/-0
unable to reply to tells from non-members
« 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?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: unable to reply to tells from non-members
« Reply #1 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.

Offline Wizhk

  • BeBot Apprentice
  • ***
  • Posts: 85
  • Karma: +0/-0
Re: unable to reply to tells from non-members
« Reply #2 on: March 06, 2009, 10:20:36 am »
Could you share the module..  ;D

Wizhk

Offline RaZeR

  • BeBot User
  • **
  • Posts: 28
  • Karma: +0/-0
Re: unable to reply to tells from non-members
« Reply #3 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?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: unable to reply to tells from non-members
« Reply #4 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.

Offline RaZeR

  • BeBot User
  • **
  • Posts: 28
  • Karma: +0/-0
Re: unable to reply to tells from non-members
« Reply #5 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.

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 115
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal