[SIS-xxx] fixing orange sun doge command alternative not handling replies correctly

This commit is contained in:
Sheldan
2023-12-24 01:08:34 +01:00
parent e5239f971c
commit 974ab230ac

View File

@@ -50,7 +50,9 @@ public class OrangeSunDogeCommandAlternative implements CommandAlternative {
@Override
public boolean shouldExecute(UnParsedCommandParameter parameter, Guild guild, Message message) {
return parameter.getParameters().isEmpty() && featureFlagService.isFeatureEnabled(imageGenerationFeatureConfig, guild.getIdLong());
String contentStripped = message.getContentRaw();
String[] parameters = contentStripped.split(" ");
return parameters.length == 1 && featureFlagService.isFeatureEnabled(imageGenerationFeatureConfig, guild.getIdLong());
}
@Override