Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
added missing explicit responseType
Browse files Browse the repository at this point in the history
  • Loading branch information
Supinic committed Aug 10, 2021
1 parent ddfd0cf commit 0bbc109
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commands/doesnotexist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ module.exports = {
execute: async (context, type) => {
const response = await sb.Got("FakeAgent", {
url: "https://www.thisworddoesnotexist.com/",
responseType: "text",
throwHttpErrors: false
});

Expand All @@ -118,6 +119,7 @@ module.exports = {
.text()
.replace(/\./g, "")
.trim();

const word = $("div#definition-word").text();
const definition = $("div#definition-definition").text().trim();
const example = $("div#definition-example").text();
Expand Down

0 comments on commit 0bbc109

Please sign in to comment.