Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down