Skip to content

Commit

Permalink
fix compliment thingie
Browse files Browse the repository at this point in the history
tbh i could just yoink that single file script, lol
  • Loading branch information
meadowsys committed Nov 14, 2023
1 parent 0f15bc8 commit 03148ea
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/complimenter.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "complimenter" {
function makeCompliment(): string;
export = makeCompliment;
}
4 changes: 2 additions & 2 deletions modules/Compliment/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const Application = require("../../lib/Application");
const Module = require("../../lib/Module");
const Tools = require("../../lib/Tools");
const fetch = require("node-fetch");
const compliment = require("complimenter");
let config;

/** @extends { Module<import("../../config/Compliment.json")> } */
Expand Down Expand Up @@ -99,6 +99,6 @@ module.exports = class Compliment extends Module {
}

getCompliment() {
return fetch("https://complimentr.com/api").then(res => res.json()).catch(err => console.error(err));
return Promise.resolve({ compliment: compliment() });
}
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@fluent/bundle": "^0.18.0",
"@js-temporal/polyfill": "^0.4.3",
"algebrite": "^1.4.0",
"complimenter": "github:grantcodes/complimenter",
"discord.js": "^12.5.3",
"dotenv": "^16.0.1",
"html-entities": "^2.3.3",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 03148ea

Please sign in to comment.