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: name on user in Private group  (Read 3127 times)

0 Members and 1 Guest are viewing this topic.

Offline onekman

  • BeBot Rookie
  • *
  • Posts: 15
  • Karma: +0/-0
name on user in Private group
« on: July 07, 2010, 05:00:31 pm »
Hi,

Is it possible and how? to get the name of a user when the user is writting in the private group ? and not using tells.

I need to check if the user is member of group"leader".


Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: name on user in Private group
« Reply #1 on: July 07, 2010, 07:18:57 pm »
To see if the player's access level is LEADER:
$this -> bot -> security -> check_access($playername, "LEADER")

More info on BeBot's security system can be found in the wiki:
http://bebot.link/wiki/security

If the user is executing a bot command, you will get the player's name from the command handler.

If you're writing a module that is watching everything going on in a channel you would have to write your own parser do deal with that. Regular Expressions would be the way to go.

 

* 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: 411
  • 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