@botsmk2/mongodb
A custom class for managing the connection to MongoDB and for storing Discord bot information.
Install
$ npm install @botsmk2/mongodb
Usage
const MongoDB Bot = ;const mongoDB = true; //true if the project accessing MongoDB is a bot && process.env.BOT_DATABASE has been set//=> Opened connection to database//=> Opened conection to bot's database
const MongoDB Bot = ;const mongodb = false;mongodb