Author Topic: crash error log.  (Read 3100 times)

0 Members and 1 Guest are viewing this topic.

Soultempter

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Soultempter
crash error log.
« on: September 20, 2013, 01:22:43 PM »
I was creating a custom channel command and it gave me a crash error when I tried to save it.

The command to activate my bots response was !help

The response my bot was supposed to give in chat was.

Helpful Commands:
!bot Displays chat bot information.
!Souls Displays the current amount of souls a user holds.
!ticket x Enters a bid during an open auction. (e.g. !ticket 4 to purchase 4 tickets)
!bid x : Enters a bid during an open auction (e.g. !bid 400 to bid 400 points)
!btag x : Enters the users btag into the global database (e.g. !btag XxDeePxX#6634 )
!raffle help : Command to show users status of current raffles.

I initially copy and paste the bot commands from the forum, and when I used the command to display that information it only gave me the top line "Helpful Commands:" And it would not enter the rest of the information into chat.

I tried to enter it manually but it gives me the crash error which I attached as a file to this post. Hope this helps with your development. :)

djdanpearce

  • Youngling
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
  • Twitch Name: djdanpearce
Re: crash error log.
« Reply #1 on: September 20, 2013, 01:40:03 PM »
ok have tried out the error myself and its because there is a new line each bit in the copy section,but when i brough the 2nd line up to the 1st line it. so i am not the creator of bot but im sure there would be a proper way to make it line by line. but that is how i just changed it.

ExpertsOnline

  • Creator
  • Councilor
  • *****
  • Posts: 2656
  • Karma: +289/-24
    • View Profile
  • Twitch Name: expertsonline
Re: crash error log.
« Reply #2 on: September 20, 2013, 02:56:32 PM »
Hey there... Thanks for the report.

Channel commands are currently only built to support single line responses. Hence, the error message that you see.

The rationale behind is simple, twitch only allows on average 1 command every 3 seconds. Multi - line messages would eat up the output queue and reduce the responsiveness of the bot.

So I shall fix this bug  by preventing multi-line input.

Will update this post with the version of the bot with the fix.

Regards,
Experts