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) }