Commit e956dccd authored by Him188's avatar Him188

Fix typo

parent dc0df986
...@@ -157,7 +157,7 @@ class MessageSubscribersBuilder<T : MessagePacket<*, *>>( ...@@ -157,7 +157,7 @@ class MessageSubscribersBuilder<T : MessagePacket<*, *>>(
ListeningFilter { !filter.invoke(this, it) || !another.filter.invoke(this, it) } ListeningFilter { !filter.invoke(this, it) || !another.filter.invoke(this, it) }
/** /**
* 启动时间监听. * 启动事件监听.
*/ */
// do not inline due to kotlin (1.3.61) bug: java.lang.IllegalAccessError // do not inline due to kotlin (1.3.61) bug: java.lang.IllegalAccessError
operator fun invoke(onEvent: MessageListener<T>): Listener<T> { operator fun invoke(onEvent: MessageListener<T>): Listener<T> {
......
...@@ -130,7 +130,7 @@ fun Bot.messageDSL() { ...@@ -130,7 +130,7 @@ fun Bot.messageDSL() {
// 当消息中包含 "复读" 时 // 当消息中包含 "复读" 时
contains("复读") { val listener = (contains("复读1") or contains("复读2")) {
reply(message) reply(message)
} }
......
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