Fix first arg not getting recognized in some cases (fixes #18)
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Bea 2023-01-24 14:41:32 +01:00
parent 829e19fac3
commit 9f52e8747c
1 changed files with 2 additions and 2 deletions

View File

@ -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<String> argsList = new ArrayList<>(Arrays.asList(args));