tangled
alpha
login
or
join now
thevoid.cafe
/
voidy
0
fork
atom
A powerful and extendable Discord bot, with it's own module system :3
thevoid.cafe/projects/voidy
0
fork
atom
overview
issues
pulls
pipelines
๐ await database connection on intial launch
Jo
1 year ago
3aad4160
6449bfb1
+2
-1
1 changed file
expand all
collapse all
unified
split
src
index.ts
+2
-1
src/index.ts
···
8
8
const client = new VoidyClient({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent] });
9
9
10
10
// Attempt database connection
11
11
-
mongoose.connect("mongodb://127.0.0.1:27017/voidy").then(() => {
11
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
13
+
console.log("");
13
14
}).catch((err) => {
14
15
console.error("[Voidy] Database error: ", err);
15
16
Deno.exit(1);