mirror of
https://github.com/Sheldan/Sissi.git
synced 2026-01-24 05:10:04 +00:00
[SIS-xxx] fixing orange sun doge command alternative not handling replies correctly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user