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: Smarter Bot :D  (Read 16137 times)

0 Members and 2 Guests are viewing this topic.

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Smarter Bot :D
« Reply #15 on: February 17, 2008, 05:51:55 am »
But it's really hard to make a function (unless you predefine all typos) that'll know when it's a typo or when it's a dumb user.
Not really.
Code: [Select]
if($faction == 'clan')
  return(stupid_user_detected($player);
:P :P :P
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Smarter Bot :D
« Reply #16 on: February 17, 2008, 09:01:18 am »
that must be a Bug it should be "Omni"

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Smarter Bot :D
« Reply #17 on: February 21, 2008, 12:20:34 am »
Updated to Current SVN version
also fixed bug with ext privgroup output

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Smarter Bot :D
« Reply #18 on: February 21, 2008, 02:53:58 pm »
Command matching and Temar's access denied error notifications commited to SVN. The default for all those settings is OFF.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Smarter Bot :D
« Reply #19 on: February 25, 2008, 07:41:17 am »
the commands have become case sensitive
the command the user did wasnt changed to lowercase
Fixed

i also noticed

!online = works
!Online = works
!OnlinE = doesnt work

was going to ask why, but as i was typing this i relised why.
it was similar check which was also case sensitive and 2 capitol letters made it below 75%

so i fixed that too
« Last Edit: February 25, 2008, 07:55:29 am by Temar »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Smarter Bot :D
« Reply #20 on: February 25, 2008, 11:53:38 am »
Thanks, fixed in SVN.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Smarter Bot :D
« Reply #21 on: February 26, 2008, 08:26:37 am »
u missed a bug
$com is used and i think that is serpose to be $cmd

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Smarter Bot :D
« Reply #22 on: February 26, 2008, 11:30:38 am »
Thanks, fixed.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: Smarter Bot :D
« Reply #23 on: March 24, 2008, 11:48:55 am »
Or you know...just trow an error message and make the user type the command as intended by the developer.  :P

Well technically this sort of thing wouldn't have been neccessary if a codingstandard has been set so that there wouldn't be mixed single and plural. (ie. all would have been !alt and !member and so on or all would have been !alts and !members) (I would advocate the first)

Ooh, ouch, bad examples. I know I haven't been around in awhile or ran a Bebot in about a year now for that matter(I'm just here catching up on changes so I'm not sure if these commands still work in the same manner) but !alts was for listing Alts. and !alt for adding and removing Alts. Two different commands. Same with !members and !member(one for listing, one for manual adding or removing). So it's not so much a case of mixing singular and plural usage as it is a grouping of like commands.

I'm with Glara, just type the commands properly and theres not a problem. Weened my teeth on MS-DOS 3.0... it was brutal when you typed a command wrong.  ;)

This is a pretty nifty module however, it's not without merit and it's definitely a nice bit of coding for those that want to use it.
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

 

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