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: Locking certain commands.  (Read 1793 times)

0 Members and 1 Guest are viewing this topic.

Offline Dochere

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Locking certain commands.
« 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 :)
« Last Edit: September 03, 2009, 05:20:16 pm by Dochere »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Locking certain commands.
« Reply #1 on: September 03, 2009, 05:28:57 pm »
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.
BeBot Founder and Fixer Kingpin

 

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