Browse Source

Attempt to fix hang on CI on GitHub

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

30
bot/awesomescibo.mjs

@ -17,20 +17,22 @@ const helpMessage =
client.once("ready", () => { client.once("ready", () => {
// Connect to MongoDB using mongoose // Connect to MongoDB using mongoose
mongoose if (!process.env.CI) {
.connect(process.env.MONGO_URI, { mongoose
useUnifiedTopology: true, .connect(process.env.MONGO_URI, {
useNewUrlParser: true, useUnifiedTopology: true,
}) useNewUrlParser: true,
.then(() => { })
// Log client tag and set status .then(() => {
console.log(`Logged in as: ${client.user.username}!`); // Log client tag and set status
client.user.setActivity( console.log(`Logged in as: ${client.user.username}!`);
'for "do be helping" | Add me to your own server: adat.link/awscibo', client.user.setActivity(
{ type: "WATCHING" } 'for "do be helping" | Add me to your own server: adat.link/awscibo',
); { type: "WATCHING" }
}) );
.catch((err) => console.log(err)); })
.catch((err) => console.log(err));
}
}); });
client.on("guildCreate", (guild) => { client.on("guildCreate", (guild) => {

Loading…
Cancel
Save