File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
src/main/java/org/meteordev/meteorbot/command/commands/silly Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 33build
44.DS_Store
55.env
6+ bin
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ public SlashCommandData build(SlashCommandData data) {
1717
1818 @ Override
1919 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 ();
2222 });
2323 }
2424}
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ public SlashCommandData build(SlashCommandData data) {
1717
1818 @ Override
1919 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 ();
2222 });
2323 }
2424}
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ public SlashCommandData build(SlashCommandData data) {
2121 public void run (SlashCommandInteractionEvent event ) {
2222 String animal = ThreadLocalRandom .current ().nextBoolean () ? "red_panda" : "panda" ;
2323
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 ();
2626 });
2727 }
2828}
You can’t perform that action at this time.
0 commit comments