GAwesomeBot / bot

A super Awesome Discord bot
https://gawesomebot.com
GNU General Public License v2.0
392 stars 186 forks source link

❌ Cannot read property 'check' of undefined #465

Closed thehydrogen closed 5 years ago

thehydrogen commented 5 years ago

Please describe the problem you are having in as much detail as possible: While running the latest commit of GAwesomeBot branch indev-4.0.2, an error occurred during the startup process of GAB and crashed the entire process.

[18:18:07] - error: [Master] An unknown and unexpected error occurred, and we failed to handle it. Sorry! x.x
 TypeError: Cannot read property 'check' of undefined
    at database.initialize.catch.then (C:\Users\Hydrogen\Documents\GitHub\GAwesomeBot-indev\master.js:69:22)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Include some reproduction steps (How can we cause the bug to happen?): Run the latest build of GAB indev branch.

Further details: Has something to do with the database, guessing some faulty GADriver code. (naughty Gilbert)

TTtie commented 5 years ago

Can confirm that the error exists, across multiple GAB instances. This is probably just an overlook from migrating to GAwesomeClient, as Updater isn't defined anymore in ./Modules: https://github.com/GilbertGobbels/GAwesomeBot/blob/5278801f6d917ddab80c620e06d7b5f869ee98c3/master.js#L11 https://github.com/GilbertGobbels/GAwesomeBot/blob/5278801f6d917ddab80c620e06d7b5f869ee98c3/master.js#L69 https://github.com/GilbertGobbels/GAwesomeBot/blob/5278801f6d917ddab80c620e06d7b5f869ee98c3/Modules/index.js#L22-L26

Here's a temporary solution:

git checkout 343ec4ddc4dfb3f79fedbd0b66d5d088b3644832
Gilbert142 commented 5 years ago

Sorry for the wait, everyone. Fixed in latest commit!