BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => AO 0.6 support => Topic started by: Dochere on September 03, 2009, 05:16:24 pm
-
Heya, I'm trying to lock some commands.
I know how to do it inn the code itself, but i would like to do it the right way, i basically want to lock !points top and !points nickname, tho i only want to lock em for guests and members. Generally those commands make ppl think "oh he has that much points, oh well no point for me playing then". And ofc those who check !points top every 2 minutes inn group chat, i could always disable it inn group chat but as i said ppl get easily lazy with it on ^^
All feedback appreciated :)
-
You will want to read up on how commands are registered here http://bebot.link/wiki/base_module#registering_commands
You can then edit points using the '!commands subs points' command.
You need to add an access level to the top subcommand, and to archieve what you want you will need to make the following changes.
- Change the default action to display only your own points.
- Add a new subcommand that is restricted the same way as top to display points for specific users, or use some logic in the actual code.