github mamoe/mirai mirai-0.12.0

latest releases: v2.16.0, v2.16.0-RC, v2.15.0...
pre-release4 years ago

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)

Don't miss a new mirai release

NewReleases is sending notifications on new releases.