Added uuid command and function to format uuids

This commit is contained in:
2023-11-19 19:32:46 +01:00
parent 37f2678abb
commit 1b3e312365
3 changed files with 65 additions and 1 deletions

5
utils/functions/uuid.js Normal file
View File

@@ -0,0 +1,5 @@
function formatUuid(uuid) {
return uuid.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, '$1-$2-$3-$4-$5')
}
module.exports = { formatUuid }

View File

@@ -1,6 +1,7 @@
const { skywarsLevel } = require('./functions/skywars.js')
const { bedwarsLevel } = require('./functions/bedwars.js')
const { hypixelLevel } = require('./functions/hypixel.js')
const { formatUuid } = require('./functions/uuid.js')
const { guildLevel, scaledGEXP } = require('./functions/guild.js')
const { getUUID, getIGN, getPlayer, getGuild, getHeadURL } = require('./functions/account.js')
@@ -14,5 +15,6 @@ module.exports = {
getIGN,
getPlayer,
getGuild,
getHeadURL
getHeadURL,
formatUuid
}