mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-23 05:26:06 +00:00
added error message logging to reaction post execution
added validation to post target command added templates for post target command moved ping and echo model to interface added show emote command
This commit is contained in:
@@ -13,6 +13,9 @@ public class ReactionPostExecution implements PostCommandExecution {
|
||||
public void execute(CommandContext commandContext, Result result, Command command) {
|
||||
if(result.getResult().equals(ResultState.ERROR)) {
|
||||
commandContext.getMessage().addReaction("⚠️").queue();
|
||||
if(result.getMessage() != null && result.getThrowable() == null){
|
||||
commandContext.getChannel().sendMessage(result.getMessage()).queue();
|
||||
}
|
||||
} else {
|
||||
if(command.getConfiguration().isCausesReaction()){
|
||||
commandContext.getMessage().addReaction("⭐").queue();
|
||||
|
||||
Reference in New Issue
Block a user