package me.duncte123.skybot.commands.fun;

import java.time.Instant;

import me.duncte123.skybot.Command;
import me.duncte123.skybot.utils.Config;
import net.dv8tion.jda.core.EmbedBuilder;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;

public class TriggerCommand implements Command {

    public final static String help = "use when you are triggered.";

    @Override
    public boolean called(String[] args, MessageReceivedEvent event) {
        // TODO Auto-generated method stub
        return true;
    }

    @Override
    public void action(String[] args, MessageReceivedEvent event) {
        EmbedBuilder eb = new EmbedBuilder()
                .setColor(Config.defaultColour)
                .setAuthor(Config.headerName, Config.defaultUrl, Config.defaultIcon)
                .setImage("https://cdn.discordapp.com/attachments/94831883505905664/176181155467493377/triggered.gif")
                .setFooter(Config.defaultName, Config.defaultIcon)
                .setTimestamp(Instant.now());
                event.getTextChannel().sendMessage(eb.build()).queue();
    }

    @Override
    public void executed(boolean success, MessageReceivedEvent event) {
        // TODO Auto-generated method stub
        return;

    }

    @Override
    public String help() {
        // TODO Auto-generated method stub
        return help;
    }

}

@@ -140,16 +140,60 @@
 Config;%0A
+import me.duncte123.skybot.utils.Functions;%0A
 import n
@@ -662,470 +662,163 @@
     
-EmbedBuilder eb = new EmbedBuilder()%0A                .setColor(Config.defaultColour)%0A                .setAuthor(Config.headerName, Config.defaultUrl, Config.defaultIcon)%0A                .setImage(%22https://cdn.discordapp.com/attachments/94831883505905664/176181155467493377/triggered.gif%22)%0A                .setFooter(Config.defaultName, Config.defaultIcon)%0A                .setTimestamp(Instant.now());%0A                event.getTextChannel().sendMessage(eb.build(
+        event.getTextChannel().sendMessage(Functions.embedImage(%22https://cdn.discordapp.com/attachments/94831883505905664/176181155467493377/triggered.gif%22
 )).q

Update TriggerCommand