mirai-0.12.0
Pre-release
Pre-release
mirai-core
- 监听消息时允许使用条件式的表达式, 如:
(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"- Message: 修复
eq无法正确判断的问题; 性能优化. - 简化 logger 结构(API 不变).
- 事件
cancelled属性修改为val(以前是varwithprivate set)