Skip to content

Commit d3682c1

Browse files
authored
Merge pull request #94 from Reasonlesss/master
Fix ?garfield command.
2 parents 85bf948 + 323e52f commit d3682c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/diamondfire/helpbot/bot/HelpBotInstance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void initialize() throws LoginException {
5454
new FetchDataCommand(),
5555
new InfoCommand(),
5656
new EvalCommand(),
57-
// new GarfieldCommand(), - Dead
57+
new GarfieldCommand(),
5858
new HelpCommand(),
5959
new RestartCommand(),
6060
new ActionDumpCommand(),

src/main/java/com/diamondfire/helpbot/bot/command/impl/other/fun/GarfieldCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public Permission getPermission() {
4141
public void run(CommandEvent event) {
4242
EmbedBuilder builder = new EmbedBuilder();
4343
try {
44-
URL url = new URL("https://labscore.vercel.app/v2/garfield");
44+
URL url = new URL("https://garfield.justsomederpyst.repl.co/random");
4545
try (BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()))) {
46-
String link = JsonParser.parseString(in.readLine()).getAsJsonObject().get("link").getAsString();
46+
String link = JsonParser.parseString(in.readLine()).getAsJsonObject().get("direct_url").getAsString();
4747

4848
if (link == null) {
4949
throw new IOException();

0 commit comments

Comments
 (0)