diff --git a/src/main/java/com/diamondfire/helpbot/bot/HelpBotInstance.java b/src/main/java/com/diamondfire/helpbot/bot/HelpBotInstance.java index 380d2007..27ca017c 100644 --- a/src/main/java/com/diamondfire/helpbot/bot/HelpBotInstance.java +++ b/src/main/java/com/diamondfire/helpbot/bot/HelpBotInstance.java @@ -54,7 +54,7 @@ public static void initialize() throws LoginException { new FetchDataCommand(), new InfoCommand(), new EvalCommand(), - // new GarfieldCommand(), - Dead + new GarfieldCommand(), new HelpCommand(), new RestartCommand(), new ActionDumpCommand(), diff --git a/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/GarfieldCommand.java b/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/GarfieldCommand.java index 05eb8b2a..aefc3552 100644 --- a/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/GarfieldCommand.java +++ b/src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/GarfieldCommand.java @@ -41,9 +41,9 @@ public Permission getPermission() { public void run(CommandEvent event) { EmbedBuilder builder = new EmbedBuilder(); try { - URL url = new URL("https://labscore.vercel.app/v2/garfield"); + URL url = new URL("https://garfield.justsomederpyst.repl.co/random"); try (BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()))) { - String link = JsonParser.parseString(in.readLine()).getAsJsonObject().get("link").getAsString(); + String link = JsonParser.parseString(in.readLine()).getAsJsonObject().get("direct_url").getAsString(); if (link == null) { throw new IOException();