Skip to content

Commit

Permalink
Merge pull request #338 from earlduque/main
Browse files Browse the repository at this point in the history
Incorrect API url in "another fact" parser
  • Loading branch information
404paige authored Sep 30, 2024
2 parents 253d7cf + e40d285 commit 14d0761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parsers/Another fact.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ flags:gi

if (Math.floor(Math.random() * 4) == 0) {
var fact = new sn_ws.RESTMessageV2();
fact.setEndpoint('https://uselessfacts.jsph.pl/api/v2/facts/random/');
fact.setEndpoint('https://uselessfacts.jsph.pl/api/v2/facts/random');
fact.setHttpMethod("GET");
var chatResponse = fact.execute();
var chatResponseBody = JSON.parse(chatResponse.getBody());
Expand Down

0 comments on commit 14d0761

Please sign in to comment.