mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-26 19:42:55 +00:00
fix: 优化搜索指令提示
This commit is contained in:
1 parent
c5fca995a5
commit
129ccba79b
1 file changed
+5
-1
+5
-1
@@ -28,10 +28,14 @@ public class CommandSearchApi extends ACommand {
|
||||
}
|
||||
|
||||
// args 应该是:["searchapi", "api名", "歌曲名"]
|
||||
if (args.length < 3) {
|
||||
if (args.length < 2) {
|
||||
AllMusic.side.sendMessage(sender, AllMusic.getMessage().musicPlay.error2);
|
||||
return;
|
||||
}
|
||||
if (args.length < 3) {
|
||||
AllMusic.side.sendMessage(sender, AllMusic.getMessage().search.emptySearch);
|
||||
return;
|
||||
}
|
||||
|
||||
// 去掉 args[0] 的子命令名 searchapi,保留 ["api名", "歌曲名"]
|
||||
String[] newArgs = new String[args.length - 1];
|
||||
|
||||
Reference in new issue
Block a user