summaryrefslogtreecommitdiff
path: root/src/commands/server/welcome.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/server/welcome.ts')
-rw-r--r--src/commands/server/welcome.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/server/welcome.ts b/src/commands/server/welcome.ts
index 08a2911..e2a197d 100644
--- a/src/commands/server/welcome.ts
+++ b/src/commands/server/welcome.ts
@@ -2,7 +2,8 @@ import { Command, CommandoMessage } from 'discord.js-commando';
import emoji from 'emoji-random';
import Welcome from '../../models/welcome.js';
import mongo from 'mongoose';
-mongo.connect('mongodb://sin:[email protected]:47107/heroku_4qrjvmb9', { useNewUrlParser: true, useUnifiedTopology: true })
+import config from '../../config.json';
+mongo.connect(config['mongodburi'], { useNewUrlParser: true, useUnifiedTopology: true })
module.exports = class WelcomeServer extends Command {
constructor(client) {