Skip to content

mirai-0.12.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@Him188 Him188 released this 19 Jan 10:52
· 3431 commits to master since this release

mirai-core

  1. 监听消息时允许使用条件式的表达式, 如:
(contains("1") and has<Image>()){
    reply("Your message has a string '1' and an image contained")
}

(contains("1") or endsWith("2")){

}

原有单一条件语法不变:

contains("1"){

}

"Hello" reply "World"
  1. Message: 修复 eq 无法正确判断的问题; 性能优化.
  2. 简化 logger 结构(API 不变).
  3. 事件 cancelled 属性修改为 val (以前是 var with private set)