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: Optional Command Prefix  (Read 4734 times)

0 Members and 3 Guests are viewing this topic.

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Optional Command Prefix
« on: August 14, 2007, 06:09:09 pm »
I want to modify the AFK command to make the prefix optional. I have some lazy members in my org who can't be bothered to type "!afk" and would rather just type "afk".

In the afk module for 0.2.x I could just remove the "$this -> bot -> commpre" out of the "preg_match". But it doesn't seem to work the same way in 0.4. I'm assuming because the command prefix is "required" in some way for that code to be triggered.

Any suggestions?

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Optional Command Prefix
« Reply #1 on: August 14, 2007, 08:01:32 pm »
1 way i can think of is adding the check under function gmsg which checks none command messages

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Optional Command Prefix
« Reply #2 on: August 14, 2007, 08:07:57 pm »
http://bebot.link/index.php/topic,867.0.html

My Improved AFK module
Now has what you wanted :D

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Re: Optional Command Prefix
« Reply #3 on: August 15, 2007, 04:37:52 am »
Thanks a bunch.. makes sense what you did. I guess I should have thought of that.

 

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