bleh commit
diff --git a/src/utils/database.ts b/src/utils/database.ts
index 0d21979..b0c940e 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -16,7 +16,7 @@
// mongodb://emails:SweetLife2023!!@127.0.0.1:28180/saveEmail?retryWrites=true&w=majority
const username = encodeURIComponent(config.mongoOptions.username);
const password = encodeURIComponent(config.mongoOptions.password);
-const mongoClient = new MongoClient(username ? `mongodb://${username}:${password}@${config.mongoOptions.host}` : `mongodb://${config.mongoOptions.host}`, {authSource: "admin"});
+const mongoClient = new MongoClient(username ? `mongodb://${username}:${password}@${config.mongoOptions.host}?authMechanim=${config.mongoOptions.authMechanism || "DEFAULT"}` : `mongodb://${config.mongoOptions.host}`, {authSource: "admin"});
await mongoClient.connect();
const database = mongoClient.db();
diff --git a/src/utils/log.ts b/src/utils/log.ts
index c6416a1..11cabe8 100644
--- a/src/utils/log.ts
+++ b/src/utils/log.ts
@@ -79,7 +79,9 @@
},
async log(log: LoggerOptions): Promise<void> {
if (!await isLogging(log.hidden.guild, log.meta.calculateType)) return;
+ console.log(log.hidden.guild)
const config = await client.database.guilds.read(log.hidden.guild);
+ console.log(config.logging.logs.channel)
if (config.logging.logs.channel) {
const channel = (await client.channels.fetch(config.logging.logs.channel)) as Discord.TextChannel | null;
const description: Record<string, string> = {};