mirror of
https://github.com/jie65535/mirai-console-jcf-plugin.git
synced 2025-07-28 19:19:15 +08:00
修复回复错误信息到私聊的问题
This commit is contained in:
parent
37a70e211e
commit
a9e45470fa
@ -87,11 +87,11 @@ class MessageHandler(
|
|||||||
}
|
}
|
||||||
isContinue = true
|
isContinue = true
|
||||||
} catch (e: TimeoutCancellationException) {
|
} catch (e: TimeoutCancellationException) {
|
||||||
sender.sendMessage("等待回复超时,请重新查询。")
|
subject.sendMessage("等待回复超时,请重新查询。")
|
||||||
} catch (e: NumberFormatException) {
|
} catch (e: NumberFormatException) {
|
||||||
sender.sendMessage("请回复正确的选项,此次查询已取消,请重新查询。")
|
subject.sendMessage("请回复正确的选项,此次查询已取消,请重新查询。")
|
||||||
} catch (e: IndexOutOfBoundsException) {
|
} catch (e: IndexOutOfBoundsException) {
|
||||||
sender.sendMessage("请回复正确的序号,此次查询已取消,请重新查询。")
|
subject.sendMessage("请回复正确的序号,此次查询已取消,请重新查询。")
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
subject.sendMessage(message.quote() + "发生内部错误,请稍后重试")
|
subject.sendMessage(message.quote() + "发生内部错误,请稍后重试")
|
||||||
logger.warning("回复消息\"$message\"引发意外的异常", e)
|
logger.warning("回复消息\"$message\"引发意外的异常", e)
|
||||||
|
Loading…
Reference in New Issue
Block a user