wtfnotavailable / Discord-MusicBot

Discord Music Bot Source Tree
Other
179 stars 84 forks source link

[Lite version] "No database configured" error when trying to play song. #183

Closed mitch1887 closed 10 months ago

mitch1887 commented 11 months ago

Please describe the problem you are having in as much detail as possible:

When I run the lite version with "make lite" I get a "Error: No database configured" message despite me not running it with the 'db' option.

Include a reproducible code sample here, if possible, the snippet of code which is throwing the error or which you presume is giving issues:

[13:11:2023 - 23:12] [ERROR] | [FATAL] Possibly Uncaught Exception
        Reason: Error: No database configured

uncaughtException

If you have your own setup, without the original docker configuration, please provide:

I have both DATABASE and DATABASE_URL set to "" in the .env file Running the latest master branch with Node.js v21.4.0 on Arch Linux.

rakosi2 commented 11 months ago

Yes, it appears that a DB is currently required even though the config says that you can db-less https://github.com/wtfnotavailable/Discord-MusicBot/blob/develop/djs-bot/util/controlChannel.js#L26