completionId: cgen-f319295525414e9b9284bbbf64b6a971

cgen-f319295525414e9b9284bbbf64b6a971
This commit is contained in:
Builder.io 2025-11-08 22:45:04 +00:00
parent 37b419d9af
commit 5acdb1e535

View file

@ -922,8 +922,9 @@ export function createServer() {
}); });
} }
// Validate token format // Validate token format - Discord bot tokens are typically long strings
if (!botToken.includes(".") || botToken.length < 50) { // They don't always have dots, but should be reasonably long
if (!botToken || botToken.trim().length < 20) {
console.warn( console.warn(
"[Discord] Bot token appears invalid - length:", "[Discord] Bot token appears invalid - length:",
botToken.length, botToken.length,