From 9f52e8747cc149288a4bd31cba30c09763f33525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Tue, 24 Jan 2023 14:41:32 +0100 Subject: [PATCH] Fix first arg not getting recognized in some cases (fixes #18) --- src/main/java/wtf/beatrice/hidekobot/HidekoBot.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/wtf/beatrice/hidekobot/HidekoBot.java b/src/main/java/wtf/beatrice/hidekobot/HidekoBot.java index 66ab456..41aa572 100644 --- a/src/main/java/wtf/beatrice/hidekobot/HidekoBot.java +++ b/src/main/java/wtf/beatrice/hidekobot/HidekoBot.java @@ -94,9 +94,9 @@ public class HidekoBot // store if we have to force refresh commands despite no apparent changes. boolean forceUpdateCommands = false; - // if there is more than 1 arg, then iterate through them because we have additional things to do. + // if there is at least one arg, then iterate through them because we have additional things to do. // we are doing this at the end because we might need the API to be already initialized for some things. - if(args.length > 1) { + if(args.length > 0) { List argsList = new ArrayList<>(Arrays.asList(args));