From d8b34584dea8070b63d0dccd45231116a47d95b4 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 15 Sep 2021 23:19:52 -0500 Subject: [PATCH] Make connection URL an environment variable --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index f9fbee8..257c51c 100644 --- a/bot.js +++ b/bot.js @@ -11,7 +11,7 @@ const fetch = require(`node-fetch`); var database, collection; const DATABASE_NAME = process.env.DATABASE_NAME; -const CONNECTION_URL = "localhost:27017"; +const CONNECTION_URL = process.env.CONNECTION_URL; const defaultPrefix = process.env.BOT_PREFIX; MongoClient.connect("mongodb://" + CONNECTION_URL, { useNewUrlParser: true, useUnifiedTopology: true }, (error, client) => {