From 5605c8cc66cade2ff1b236f9efeb96ed58ff5611 Mon Sep 17 00:00:00 2001 From: Tenko Date: Tue, 16 Jul 2024 00:45:35 +0900 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=A7=A3=E5=B0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/gatekeeper/verify_handle.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/plugins/gatekeeper/verify_handle.go b/src/plugins/gatekeeper/verify_handle.go index c812637..7daba33 100644 --- a/src/plugins/gatekeeper/verify_handle.go +++ b/src/plugins/gatekeeper/verify_handle.go @@ -83,9 +83,7 @@ func VerifyMember(message *tgbotapi.Message) { func unban(chatId, userId int64) { time.Sleep(time.Minute) - if bot.Arknights.GetChatMemberStatus(chatId, userId) != tgbotapi.KICKED { - bot.Arknights.UnbanChatMember(chatId, userId) - } + bot.Arknights.UnbanChatMember(chatId, userId) } func verify(chatId int64, userId int64, messageId int, joinMessageId int) { @@ -104,7 +102,5 @@ func verify(chatId int64, userId int64, messageId int, joinMessageId int) { bot.Arknights.Send(delMsg) time.Sleep(time.Minute) // 解除用户封禁 - if bot.Arknights.GetChatMemberStatus(chatId, userId) != tgbotapi.KICKED { - bot.Arknights.UnbanChatMember(chatId, userId) - } + bot.Arknights.UnbanChatMember(chatId, userId) }