mirror of
https://github.com/jie65535/mirai-console-jhr-plugin.git
synced 2025-12-15 18:41:39 +08:00
增加 利润榜
This commit is contained in:
@@ -496,6 +496,19 @@ object JHorseRacing : KotlinPlugin(
|
||||
}
|
||||
subject.sendMessage(msgB.asMessageChain())
|
||||
}
|
||||
msg == "利润榜" -> {
|
||||
val msgB = MessageChainBuilder(11)
|
||||
msgB.append("利润榜\n")
|
||||
JHRPluginData.playerStat.entries.filter {
|
||||
subject.contains(it.key)
|
||||
&& it.value.totalProfit != 0
|
||||
}.sortedByDescending { it.value.totalProfit }
|
||||
.take(10)
|
||||
.onEach {
|
||||
msgB.append("| ${it.value.totalProfit} | ${subject[it.key]!!.nameCardOrNick}\n")
|
||||
}
|
||||
subject.sendMessage(msgB.asMessageChain())
|
||||
}
|
||||
msg == "统计" -> {
|
||||
val ret = MessageChainBuilder()
|
||||
ret.append(message.quote())
|
||||
|
||||
Reference in New Issue
Block a user