From 506c91554fb56839c7e7702b5d68d2b0352d30f0 Mon Sep 17 00:00:00 2001 From: Your Name <you@example.com> Date: Sun, 9 Feb 2025 21:14:40 -0500 Subject: [PATCH] remove :3, uwu, etc --- plugins/console.js | 4 ++-- util/usergen.js | 11 ++--------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/plugins/console.js b/plugins/console.js index 7d85990..5f65c05 100755 --- a/plugins/console.js +++ b/plugins/console.js @@ -9,11 +9,11 @@ import { userInfo } from 'node:os' const consoleBotStub = { host: { host: 'bot console ', - port: 3 + port: 25565 }, tellraw: (_unused, data) => console.log(parse2(data)) } -const uuid = '4d616465-6c69-6e65-2075-7775203a3300' +const uuid = '01234567-89ab-cdef-0123-456789abcdef' const user = userInfo().username // OS user the bot is running as const nick = user diff --git a/util/usergen.js b/util/usergen.js index 2909a96..2c8602b 100644 --- a/util/usergen.js +++ b/util/usergen.js @@ -28,19 +28,12 @@ const rsg = function (count) { return output } const rsgLegal = function (count) { - let output = '' - if (Math.random() > 0.5) { - output += 'uwu_' - } else { - output += 'owo_' - } - output += randomBytes(count).toString('hex') - return output + return randomBytes(count).toString('hex') } export default function generateUser (legal) { if (legal) { - return rsgLegal(6) + return rsgLegal(8) } else { return rsg(6 + Math.floor(Math.random() * 3)) }