Author Topic: !add command crashes bot  (Read 1274 times)

0 Members and 1 Guest are viewing this topic.

Wapsitax

  • Youngling
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Wapsitax
!add command crashes bot
« on: June 18, 2017, 08:57:59 AM »
Bug: Deepbot crashes when using the !add command with fewer than 2 variables

Info: When using the !add command in chat the bot will crash if there are not at least 2 passed variables. IE: "!add" or "!add 100". The following is the crash report:
Code: [Select]
17 Jun 17:27:26,246 - 0.10.3.4: Crashed Index was outside the bounds of the array.
17 Jun 17:27:26,252 - 0.10.3.4: Crashed    at DeepBot.ChatParser.#nd(Main #T, String #U, String #V, Boolean #od, Boolean #pd, Int32 #qd, Boolean #X3b)
   at DeepBot.Main.#Wq()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

How you produced this bug or came across it: Fudged entering the command in chat.

Easy to avoid, but easy to accidentally cause as well.

emrerocky

  • Advisor
  • Councilor
  • **
  • Posts: 1240
  • Karma: +163/-8
    • View Profile
    • emrerocky's Website
  • Twitch Name: emrerocky
Re: !add command crashes bot
« Reply #1 on: June 18, 2017, 12:32:41 PM »
Thanks for the report! This should be fixed in the latest alpha update.