From 3e3e4c98770e05050cfe01605f4fb2c532d41b7b Mon Sep 17 00:00:00 2001 From: MagM1go Date: Fri, 1 Nov 2024 16:49:58 +0800 Subject: [PATCH] mda --- src/main/kotlin/top/boticord/BotiCordClient.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/top/boticord/BotiCordClient.kt b/src/main/kotlin/top/boticord/BotiCordClient.kt index 4d51ef4..9dcbab0 100644 --- a/src/main/kotlin/top/boticord/BotiCordClient.kt +++ b/src/main/kotlin/top/boticord/BotiCordClient.kt @@ -115,10 +115,10 @@ public class BotiCordClient( botId: Long, body: AutopostBody.() -> AutopostBody ) { - val builtBody = body(AutopostBody) - scope.launch { while (isActive) { + val builtBody = body(AutopostBody) + update(botId, builtBody.memberCount, builtBody.shardCount, builtBody.guildCount) delay(10_000L) }