crowbartools / Firebot

A powerful all-in-one bot for Twitch streamers
https://firebot.app
GNU General Public License v3.0
316 stars 88 forks source link

[Bug] Import db is erroring out #2518

Open CrowbarToolsRobot opened 2 months ago

CrowbarToolsRobot commented 2 months ago

cky_ via Discord:

I was able to make it work by putting a try/catch in the for i will PR sometime this week unless someone else gets to it

[2024-04-20 03:10:34.0327] - error: [v5.62.1] Unhandled promise rejection { message: 'v.name.toLowerCase is not a function', stack: 'TypeError: v.name.toLowerCase is not a function\n' + ' at F:\fork-firebot\Firebot\Firebot\build\backend\import\third-party\streamlabs-chatbot.js:76:57\n' + ' at Array.find ()\n' + ' at importViewers (F:\fork-firebot\Firebot\Firebot\build\backend\import\third-party\streamlabs-chatbot.js:76:40)' }

dennisrijsdijk commented 2 months ago

This issue is caused by number-only usernames being read as numbers, not as strings by the xlsx reader.