diff --git a/src/main/kotlin/cn/rtast/fancybot/commands/lookup/ShotSelfCommand.kt b/src/main/kotlin/cn/rtast/fancybot/commands/lookup/ShotCommand.kt similarity index 90% rename from src/main/kotlin/cn/rtast/fancybot/commands/lookup/ShotSelfCommand.kt rename to src/main/kotlin/cn/rtast/fancybot/commands/lookup/ShotCommand.kt index 423dec2..768fc26 100644 --- a/src/main/kotlin/cn/rtast/fancybot/commands/lookup/ShotSelfCommand.kt +++ b/src/main/kotlin/cn/rtast/fancybot/commands/lookup/ShotCommand.kt @@ -50,7 +50,9 @@ class ShotOtherCommand : BaseCommand() { message.reply("发送`骂 @某人`可以骂他~") return } + var times = if (args.size == 1) 10 else if (args.last() == "") 10 else args.last().toInt() + if (times >= 200) times = 10 val target = message.message.find { it.type == ArrayMessageType.at }?.data!! - listener.sendGroupForwardMsg(message.groupId, generateNodeMessage(target.name!!, target.qq!!)) + listener.sendGroupForwardMsg(message.groupId, generateNodeMessage(target.name!!, target.qq!!, times)) } } \ No newline at end of file