chore: change command names
This commit is contained in:
5 files changed
+5
-5
No files matched your search
@@ -17,7 +17,7 @@ import cn.rtast.rob.util.ob.OneBotListener
|
|||||||
|
|
||||||
@CommandDescription("查询自己牛子的长度")
|
@CommandDescription("查询自己牛子的长度")
|
||||||
class MyNiuziCommand : BaseCommand() {
|
class MyNiuziCommand : BaseCommand() {
|
||||||
override val commandNames = listOf("我的牛子", "/mp", "mp")
|
override val commandNames = listOf("我的牛子", "mp")
|
||||||
|
|
||||||
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
||||||
val niuzi = niuziManager.getUser(message.sender.userId)
|
val niuzi = niuziManager.getUser(message.sender.userId)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ private const val INTEREST_RATE = 0.54
|
|||||||
|
|
||||||
@CommandDescription("牛子银行根命令")
|
@CommandDescription("牛子银行根命令")
|
||||||
class NiuziBankCommand : BaseCommand() {
|
class NiuziBankCommand : BaseCommand() {
|
||||||
override val commandNames = listOf("牛子银行", "/银行")
|
override val commandNames = listOf("牛子银行")
|
||||||
|
|
||||||
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
||||||
val msg = MessageChain.Builder()
|
val msg = MessageChain.Builder()
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import cn.rtast.rob.util.ob.OneBotListener
|
|||||||
|
|
||||||
@CommandDescription("查询别人的牛子长度")
|
@CommandDescription("查询别人的牛子长度")
|
||||||
class NiuziQueryCommand : BaseCommand() {
|
class NiuziQueryCommand : BaseCommand() {
|
||||||
override val commandNames = listOf("牛子查询", "nq")
|
override val commandNames = listOf("牛子查询")
|
||||||
|
|
||||||
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
||||||
if (args.isEmpty()) {
|
if (args.isEmpty()) {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import cn.rtast.rob.util.ob.OneBotListener
|
|||||||
|
|
||||||
@CommandDescription("使用牛子长度兑换物品")
|
@CommandDescription("使用牛子长度兑换物品")
|
||||||
class NiuziRedeemCommand : BaseCommand() {
|
class NiuziRedeemCommand : BaseCommand() {
|
||||||
override val commandNames = listOf("/redeem", "/兑换", "/rdm")
|
override val commandNames = listOf("/rdm")
|
||||||
|
|
||||||
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
||||||
if (args.isEmpty()) {
|
if (args.isEmpty()) {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import cn.rtast.rob.util.ob.OneBotListener
|
|||||||
|
|
||||||
@CommandDescription("将自己的牛子长度转账给别人")
|
@CommandDescription("将自己的牛子长度转账给别人")
|
||||||
class NiuziTransferCommand : BaseCommand() {
|
class NiuziTransferCommand : BaseCommand() {
|
||||||
override val commandNames = listOf("牛子转账", "转账", "/zz")
|
override val commandNames = listOf("牛子转账", "zz")
|
||||||
|
|
||||||
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
||||||
if (args.isEmpty()) {
|
if (args.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user