This commit is contained in:
unintendedfraud
2025-05-22 12:46:59 +02:00
parent f11ca7d61f
commit aa6a5e78f4
+2 -2
View File
@@ -126,11 +126,11 @@ func sendResponse(s *discordgo.Session, channelID string, response string) {
} }
func truncateIfNeeded(response string) string { func truncateIfNeeded(response string) string {
if len(response) > DISCORD_MAX_CHAR { if len(response) < DISCORD_MAX_CHAR {
return response return response
} }
return fmt.Sprintf("%s %s", response[:3990], "[...]") return fmt.Sprintf("%s %s", response[:DISCORD_MAX_CHAR-10], "[...]")
} }
func containHal(users []*discordgo.User, userID string) bool { func containHal(users []*discordgo.User, userID string) bool {