Closed s-hfarooq closed 4 years ago
Fixed in latest push.
The issue was that the bot was trying to choose a random element in the brownout array while it was still empty (images hadn't been completely fetched yet)
Added a check to make sure the array length was greater than 0 to solve issue.
An UnhandledPromiseRejectionWarning error occurs when running the bot (seems to be coming when all brownout images are fetched)
Specifically, the output is