feat: add shot times

This commit is contained in:
2024-09-24 11:07:01 +08:00
parent 55c1fb3ce7
commit 3dfcd3314c
1 file changed
+3 -1
@@ -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))
}
}