BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => AO 0.6 support => Topic started by: onekman 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".
-
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.