Commit 377e7233 authored by Him188's avatar Him188

Cleanup

parent 4d0ac137
......@@ -8,9 +8,9 @@ import net.mamoe.mirai.network.protocol.tim.packet.login.TouchPacket.TouchRespon
import kotlin.jvm.JvmField
/**
* 验证码处理器. 需阻塞直到处理完成验证码.
* 验证码处理器. 需挂起(阻塞)直到处理完成验证码.
*
* 返回
* 返回长度为 4 的验证码. 为空则刷新验证码
*/
typealias CaptchaSolver = suspend Bot.(IoBuffer) -> String?
......
......@@ -81,7 +81,7 @@ suspend fun Bot.messageDSL() {
// 当接收到消息 == "你好" 时就回复 "你好!"
"你好" reply "你好!"
// 当消息 == "查看 subject" 时, 执行 lambda 并回复 lambda 的返回值
// 当消息 == "查看 subject" 时, 执行 lambda
case("查看 subject") {
if (subject is QQ) {
reply("消息主体为 QQ, 你在跟发私聊消息")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment