修复 /info 无参数的错误反应

This commit is contained in:
A.C.Sukazyo Eyre 2022-11-09 01:48:03 +08:00
parent 201c8bcd1a
commit 48a8fd9daa
Signed by: Eyre_S
GPG Key ID: C17CE40291207874
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@ MORNY_ARCHIVE_NAME = morny-coeur
MORNY_CODE_STORE = https://github.com/Eyre-S/Coeur-Morny-Cono MORNY_CODE_STORE = https://github.com/Eyre-S/Coeur-Morny-Cono
MORNY_COMMIT_PATH = https://github.com/Eyre-S/Coeur-Morny-Cono/commit/%s MORNY_COMMIT_PATH = https://github.com/Eyre-S/Coeur-Morny-Cono/commit/%s
VERSION = 1.0.0-alpha4 VERSION = 1.0.0-alpha4.1
USE_DELTA = false USE_DELTA = false
VERSION_DELTA = VERSION_DELTA =

View File

@ -25,7 +25,10 @@ public class MornyInformations implements ITelegramCommand {
@Override @Override
public void execute (@Nonnull InputCommand command, @Nonnull Update event) { public void execute (@Nonnull InputCommand command, @Nonnull Update event) {
if (!command.hasArgs()) echoRuntime(command, event); if (!command.hasArgs()) {
MornyCommands.onCommandRuntimeExec(event);
return;
}
final String action = command.getArgs()[0]; final String action = command.getArgs()[0];