Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
shikoshib committed Jul 24, 2023
1 parent ee7970f commit 61ab473
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions misc/demonlist.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
module.exports = {
demonlist:
async function(name) {
async function (name) {
let r = await fetch(`https://pointercrate.com/api/v2/demons/?name=${name}`);
let lvlObj = await r.json();
if(lvlObj == undefined) return null;
if (!lvlObj.length) return null;

const res = {
"position": lvlObj[0].position,
"publisher": lvlObj[0].publisher.name,
"verifier": lvlObj[0].verifier.name,
}

return res;
}
}

0 comments on commit 61ab473

Please sign in to comment.