mirror of
https://github.com/jie65535/mirai-console-jhr-plugin.git
synced 2025-12-15 18:41:39 +08:00
更新依赖版本
修复错误的注解 增加随机押马 `马? 100`
This commit is contained in:
@@ -328,7 +328,11 @@ object JHorseRacing : KotlinPlugin(
|
||||
if (p.size != 2) {
|
||||
return@subscribeAlways
|
||||
}
|
||||
val no = p[0].toIntOrNull()
|
||||
val no = if (p[0] == "?" || p[0] == "?") {
|
||||
Random.nextInt(horseCount) + 1
|
||||
} else {
|
||||
p[0].toIntOrNull()
|
||||
}
|
||||
if (no == null || no < 1 || no > horseCount) {
|
||||
subject.sendMessage("没有这个编号的选手")
|
||||
return@subscribeAlways
|
||||
|
||||
Reference in New Issue
Block a user