Asgarrrr / Luna

An adorable discord bot fully customizable created in javascript, using Discord.js and mongoDB that is constantly growing !
https://lunadoc.vercel.app/
GNU General Public License v3.0
24 stars 3 forks source link

Database could not be found #16

Closed MilkFlavor closed 3 years ago

MilkFlavor commented 3 years ago

user@user-HP-EliteBook-8460p:~/Downloads/Luna-master$ node Luna.js /home/user/Downloads/Luna-master/node_modules/better-sqlite3/lib/database.js:32 throw new TypeError('Cannot open database because the directory does not exist'); ^

TypeError: Cannot open database because the directory does not exist at Database (/home/user/Downloads/Luna-master/node_modules/better-sqlite3/lib/database.js:32:9) at Object. (/home/user/Downloads/Luna-master/resources/DBInit.js:2:37) at Module._compile (node:internal/modules/cjs/loader:1108:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10) at Module.load (node:internal/modules/cjs/loader:973:32) at Function.Module._load (node:internal/modules/cjs/loader:813:14) at Module.require (node:internal/modules/cjs/loader:997:19) at require (node:internal/modules/cjs/helpers:92:18) at new Luna (/home/user/Downloads/Luna-master/Structures/Luna.js:35:26) at Object. (/home/user/Downloads/Luna-master/Luna.js:16:16)

Asgarrrr commented 3 years ago

Good evening, sorry for the inconvenience, Create a folder "Database" and the problem will be solved.

MilkFlavor commented 3 years ago

Good evening, sorry for the inconvenience, Create a folder "Database" and the problem will be solved.

Wow, that was fast! It worked, thanks. Do you have a discord or any other group for the bot people could join? I have been adding my own commands and events it would be pretty cool being able to talk to other people. oh, and I like the new commands! I have been using the old version of the project