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

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

Author Topic: Commands usable in ....  (Read 2489 times)

0 Members and 1 Guest are viewing this topic.

Offline eracet1

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Commands usable in ....
« on: April 04, 2006, 02:50:58 pm »
I am wondering if there is an easy way to change where commands are used.
Such as !help can only be used in tells, and not in guild chat.
But other commands can be used in guild chat.

Is there a way to change these that is easy?
And what if you want multiple commands such as !help in tells or in guild chat?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Commands usable in ....
« Reply #1 on: April 04, 2006, 05:19:27 pm »
You can disable existing functions with the rights management, just set it to false for all user groups.

Otherwise to add a function for a specific channel, you have to do two things:
1) define the function with $commands[channel][command] = &$object to manage the command;
2) add a handler for the function in the corresponding handler function (pgmsg(), tell(), gc())

Offline eracet1

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: Commands usable in ....
« Reply #2 on: April 05, 2006, 02:25:12 pm »
You can disable existing functions with the rights management, just set it to false for all user groups.

Otherwise to add a function for a specific channel, you have to do two things:
1) define the function with $commands[channel][command] = &$object to manage the command;
2) add a handler for the function in the corresponding handler function (pgmsg(), tell(), gc())


I am trying not to sound stupid, but what do you mean by "rights managment"?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Commands usable in ....
« Reply #3 on: April 05, 2006, 05:56:44 pm »
If you have downloaded the 0.3.2 version, you should have the custom rights management I wrote included.
Just try if you can use !commands in a tell to the bot.

Offline eracet1

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: Commands usable in ....
« Reply #4 on: April 06, 2006, 03:58:24 am »
it is 0.3.2
But cannot find !command function.

here is what is listed atm in !help

::::: HELP :::::

Commands usable in Tells:
!about !admin !alts !announce !autoinv !battle !bid !bio !calc !chat !city !cloak !flip !gcr !guest !help !invite !irc !is !items !join !leave !level !logon !lvl !massinv !news !oe !online !points !raffle !raid !rally !relay !restart !roll !server !shutdown !target !time !verify !victory !whois

Commands usable in Privategroup:
!alts !announce !battle !bio !calc !caller !callers !city !cloak !flip !guest !invite !is !items !kick !leave !level !logon !lvl !massinv !news !oe !online !raffle !raid !rally !relay !roll !server !target !time !victory !whois

Commands usable in Guild Chat:

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Commands usable in ....
« Reply #5 on: April 06, 2006, 09:32:20 am »
it is 0.3.2
But cannot find !command function.
You are using 0.2.3 most likely then.
The module is here.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


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 ]

* Who's Online
  • Dot Guests: 221
  • 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