small fixes
diff --git a/src/config/format.ts b/src/config/format.ts
index 53aba72..713a233 100644
--- a/src/config/format.ts
+++ b/src/config/format.ts
@@ -16,7 +16,7 @@
verifySecret:
"If using verify, enter a code here which matches the secret sent back by your website. You can use a random code if you do not have one already. (Optional)",
mongoUrl: "Your Mongo connection string, e.g. mongodb://127.0.0.1:27017",
- baseUrl: "Your website where buttons such as Verify and Role menu will link to, e.g. https://example.com",
+ baseUrl: "Your website where buttons such as Verify and Role menu will link to, e.g. https://example.com/",
pastebinApiKey: "An API key for pastebin (optional)",
pastebinUsername: "Your pastebin username (optional)",
pastebinPassword: "Your pastebin password (optional)",
diff --git a/src/events/channelUpdate.ts b/src/events/channelUpdate.ts
index 7d5ac13..7c80e12 100644
--- a/src/events/channelUpdate.ts
+++ b/src/events/channelUpdate.ts
@@ -5,6 +5,8 @@
import type { NucleusClient } from "../utils/client.js";
import getEmojiByName from "../utils/getEmojiByName.js";
import c from "../utils/client.js";
+import { capitalize } from "../utils/generateKeyValueList.js";
+
let entry = c.logger.entry;
const channelTypeEmoji: Record<number, string> = {
@@ -137,8 +139,8 @@
);
if ((oldChannel as VoiceChannel).rtcRegion !== (newChannel as VoiceChannel).rtcRegion)
changes.region = entry(
- [(oldChannel as VoiceChannel).rtcRegion ?? "Automatic", (newChannel as VoiceChannel).rtcRegion ?? "Automatic"],
- `${(oldChannel as VoiceChannel).rtcRegion?.toUpperCase() ?? "Automatic"} -> ${(newChannel as VoiceChannel).rtcRegion?.toUpperCase() ?? "Automatic"}`
+ [(oldChannel as VoiceChannel).rtcRegion ?? "automatic", (newChannel as VoiceChannel).rtcRegion ?? "automatic"],
+ `${capitalize((oldChannel as VoiceChannel).rtcRegion?.toUpperCase() ?? "automatic")} -> ${capitalize((newChannel as VoiceChannel).rtcRegion?.toUpperCase() ?? "automatic")}`
);
break;
}
@@ -209,4 +211,3 @@
};
log(data);
}
-//TODO: Capitialize RTC Regions
\ No newline at end of file