A powerful and extendable Discord bot, with it's own module system :3 thevoid.cafe/projects/voidy

๐Ÿ› await database connection on intial launch

Jo 3aad4160 6449bfb1

+2 -1
+2 -1
src/index.ts
··· 8 8 const client = new VoidyClient({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent] }); 9 9 10 10 // Attempt database connection 11 - mongoose.connect("mongodb://127.0.0.1:27017/voidy").then(() => { 11 + await mongoose.connect("mongodb://127.0.0.1:27017/voidy").then(() => { 12 12 console.log("[Voidy] Successfully connected to database at 127.0.0.1:27017"); 13 + console.log(""); 13 14 }).catch((err) => { 14 15 console.error("[Voidy] Database error: ", err); 15 16 Deno.exit(1);