fix: fix zibi not work

This commit is contained in:
2024-09-26 21:56:16 +08:00
parent ef7e3bf1ad
commit a6537628d5
1 file changed
+2 -1
@@ -31,13 +31,14 @@ class ZiBiCommand : BaseCommand() {
.addText("私聊发送`我想开了`即可取消禁言~") .addText("私聊发送`我想开了`即可取消禁言~")
.build() .build()
message.reply(msg) message.reply(msg)
users[message.sender.userId] = message.groupId
} catch (_: Exception) { } catch (_: Exception) {
val msg = MessageChain.Builder() val msg = MessageChain.Builder()
.addText("你输入有误所以我决定让你自闭1天~") .addText("你输入有误所以我决定让你自闭1天~")
.build() .build()
message.reply(msg) message.reply(msg)
message.sender.ban(86400) message.sender.ban(86400)
} finally {
users[message.sender.userId] = message.groupId
} }
} }
} }