Deep Bot - Twitch Streamer Assistant

Deep Bot => Bug Reports => Topic started by: Wapsitax on June 18, 2017, 08:57:59 AM

Title: !add command crashes bot
Post by: Wapsitax 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.
Title: Re: !add command crashes bot
Post by: emrerocky on June 18, 2017, 12:32:41 PM
Thanks for the report! This should be fixed in the latest alpha update.