Browse Source

Attempt to fix hang on CI on GitHub

pull/9/head
Abheek Dhawan 4 years ago
parent
commit
ed580e6edd
  1. 2
      bot/awesomescibo.mjs

2
bot/awesomescibo.mjs

@ -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) => {

Loading…
Cancel
Save