Adding functions

This commit is contained in:
2023-04-09 14:17:48 +02:00
parent 0c9b240feb
commit afb11fed9b

View File

@@ -11,4 +11,16 @@ async function getuuid(ign) {
}
}
module.exports = getuuid;
async function getplayer(uuid) {
const slothPixel = "https://api.slothpixel.me/api/players/";
try {
const player = await fetch(slothPixel + uuid)
return player
} catch (error) {
return null;
}
}
module.exports = getuuid
module.exports = getplayer