File tree 4 files changed +7
-6
lines changed
src/main/java/org/meteordev/meteorbot/command/commands/silly
4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 3
3
build
4
4
.DS_Store
5
5
.env
6
+ bin
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ public SlashCommandData build(SlashCommandData data) {
17
17
18
18
@ Override
19
19
public void run (SlashCommandInteractionEvent event ) {
20
- Unirest .get ("https://aws. random.cat/meow " ).asJsonAsync (response -> {
21
- event .reply (response .getBody ().getObject ().getString ("file " )).queue ();
20
+ Unirest .get ("https://some- random-api.com/img/cat " ).asJsonAsync (response -> {
21
+ event .reply (response .getBody ().getObject ().getString ("link " )).queue ();
22
22
});
23
23
}
24
24
}
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ public SlashCommandData build(SlashCommandData data) {
17
17
18
18
@ Override
19
19
public void run (SlashCommandInteractionEvent event ) {
20
- Unirest .get ("https://some-random-api.ml/animal /dog" ).asJsonAsync (response -> {
21
- event .reply (response .getBody ().getObject ().getString ("image " )).queue ();
20
+ Unirest .get ("https://some-random-api.com/img /dog" ).asJsonAsync (response -> {
21
+ event .reply (response .getBody ().getObject ().getString ("link " )).queue ();
22
22
});
23
23
}
24
24
}
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ public SlashCommandData build(SlashCommandData data) {
21
21
public void run (SlashCommandInteractionEvent event ) {
22
22
String animal = ThreadLocalRandom .current ().nextBoolean () ? "red_panda" : "panda" ;
23
23
24
- Unirest .get ("https://some-random-api.ml /animal/" + animal ).asJsonAsync (response -> {
25
- event .reply (response .getBody ().getObject ().getString ("image " )).queue ();
24
+ Unirest .get ("https://some-random-api.com /animal/" + animal ).asJsonAsync (response -> {
25
+ event .reply (response .getBody ().getObject ().getString ("link " )).queue ();
26
26
});
27
27
}
28
28
}
You can’t perform that action at this time.
0 commit comments