Thread: Bot Stances
View Single Post
  #7  
Old 03-20-2012, 08:53 AM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

The command should be a little more robust. It shouldn't crash when just typing #bot stance.

As an aside. This led me to an interesting discovery that I will have to test. I was going with the assumption that the other bot commands would work as advertised, so I copied parts of the code from other commands. Unfortunately it doesn't appear that how they check for invalid data is incorrect. It was passing through my check for a bot name and then tried to match a bot with no name. Instead of returning null for the bot, it was returning a blank bot which is what was causing the crash. Looks like some more error checking within the bot code is in order.

Anyway, please leave feedback on the bot stances here so I can continue to improve the system.
Reply With Quote