This commit is contained in:
Him188 2020-01-31 01:35:03 +08:00
parent dc0df986ba
commit e956dccdd1
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ class MessageSubscribersBuilder<T : MessagePacket<*, *>>(
ListeningFilter { !filter.invoke(this, it) || !another.filter.invoke(this, it) }
/**
* 启动时间监听.
* 启动事件监听.
*/
// do not inline due to kotlin (1.3.61) bug: java.lang.IllegalAccessError
operator fun invoke(onEvent: MessageListener<T>): Listener<T> {

View File

@ -130,7 +130,7 @@ fun Bot.messageDSL() {
// 当消息中包含 "复读" 时
contains("复读") {
val listener = (contains("复读1") or contains("复读2")) {
reply(message)
}