discord_bot/database.js

12 lines
381 B
JavaScript
Raw Normal View History

2024-02-07 14:39:46 +00:00
const mongoose = require("mongoose");
const config = require("./config");
mongoose.connect("mongodb+srv://MasonmMasonn:Masonn14@galaxies.b117q.mongodb.net/myFirstDatabase?retryWrites=true&w=majority", {
useNewUrlParser: true,
useUnifiedTopology: true,
});
mongoose.connection.on("connected", () => {
console.log("[✅ Datenbank] Connected!");
});
module.exports = mongoose;