|
@ -17,6 +17,7 @@ const helpMessage = |
|
|
|
|
|
|
|
|
client.once("ready", () => { |
|
|
client.once("ready", () => { |
|
|
// Connect to MongoDB using mongoose
|
|
|
// Connect to MongoDB using mongoose
|
|
|
|
|
|
if (!process.env.CI) { |
|
|
mongoose |
|
|
mongoose |
|
|
.connect(process.env.MONGO_URI, { |
|
|
.connect(process.env.MONGO_URI, { |
|
|
useUnifiedTopology: true, |
|
|
useUnifiedTopology: true, |
|
@ -31,6 +32,7 @@ client.once("ready", () => { |
|
|
); |
|
|
); |
|
|
}) |
|
|
}) |
|
|
.catch((err) => console.log(err)); |
|
|
.catch((err) => console.log(err)); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
client.on("guildCreate", (guild) => { |
|
|
client.on("guildCreate", (guild) => { |
|
|