From 8231b68c78754916ec2d5f7cc06fa7c8646d18eb Mon Sep 17 00:00:00 2001 From: Rup <78647871+Rup-1234@users.noreply.github.com> Date: Thu, 17 Jun 2021 10:15:05 +0530 Subject: [PATCH] Update index.js added quick.db --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index fb437f9..5ea2ab3 100644 --- a/index.js +++ b/index.js @@ -23,13 +23,19 @@ client.em = require("./util/embed") client.commands = new Discord.Collection(); client.aliases = new Discord.Collection(); -// Database +// Database Mongo +/* const { Database } = require("quickmongo"); client.db = new Database(process.env.mongoUrl); client.db.on("ready", () => { console.log(" ==========================\n Mongo Database connected!\n =========================="); }) +*/ +// Database Quick.db +client.db = require('quick.db'); + +// Don't use both at same time or code will stop working // Ready client.on('ready', () => {