Beautifying

This commit is contained in:
2023-04-24 23:38:33 +02:00
parent e2747dab3f
commit 3a3bb89635
40 changed files with 4010 additions and 3388 deletions

View File

@@ -1,26 +1,26 @@
const fetch = require("axios");
async function getuuid(ign) {
const mojangAPI = "https://api.mojang.com/users/profiles/minecraft/"
const mojangAPI = "https://api.mojang.com/users/profiles/minecraft/";
try {
const user = await fetch(mojangAPI + ign)
return user.data.id;
} catch (error) {
return null;
}
try {
const user = await fetch(mojangAPI + ign);
return user.data.id;
} catch (error) {
return null;
}
}
async function getplayer(uuid) {
const slothPixel = "https://api.slothpixel.me/api/players/";
const slothPixel = "https://api.slothpixel.me/api/players/";
try {
const player = await fetch(slothPixel + uuid)
return player
} catch (error) {
return null;
}
try {
const player = await fetch(slothPixel + uuid);
return player;
} catch (error) {
return null;
}
}
module.exports = getuuid
module.exports = getplayer
module.exports = getuuid;
module.exports = getplayer;