naseif / Eyesense-Music-Bot

Discord bot to play Music from Youtube, Soundcloud and Spotify using the new slash commands and a lot more!
MIT License
30 stars 10 forks source link

error #7

Closed Adarsh-achu closed 2 years ago

Adarsh-achu commented 2 years ago

client.db = new Database(mongourl); ^

TypeError: Database is not a constructor at Object. (/data/data/com.termux/files/home/Bot/Music/eyb/index.js:30:13) at Module._compile (node:internal/modules/cjs/loader:1097:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10) at Module.load (node:internal/modules/cjs/loader:975:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47

Node.js v17.1.0

naseif commented 2 years ago

This is a quickmongo version issue, please make sure that you have version 3.0.2 installed as written in package.json