From 6be97c97efb64991da6355518b8688c1589bfc5e Mon Sep 17 00:00:00 2001 From: Parker2991 Date: Tue, 7 Jan 2025 06:46:06 -0600 Subject: [PATCH] v4.0.0 --- Changelog.md | 80 + CommandModules/command_error.js | 17 + CommandModules/command_source.js | 16 + CreayunBot/bot.js | 204 ++ CreayunBot/config.js | 15 + CreayunBot/index.js | 25 + CreayunBot/reconnect.js | 14 + README.md | 1 + archive/FNFBoyfriendBot 0.X Archive/index.js | 459 +++ archive/FNFBoyfriendBot 3.0X Archive/index.js | 1023 +++++++ .../modules/selfcare.js | 32 + .../modules/server.json | 11 + archive/FNFBoyfriendBot 3.0X Archive/servers | 10 + .../FNFBoyfriendBot Creayun Build/index.js | 444 +++ .../keep_alive.js | 6 + bot.js | 67 + chat/kaboom.js | 41 + chat/u203a.js | 27 + commands/ban.js | 14 + commands/blacklist.js | 12 + commands/botdevhistory.js | 11 + commands/bots.js | 191 ++ commands/calculator.js | 72 + commands/chomenscmd.js | 12 + commands/chomeval.js | 27 + commands/ckill.js | 26 + commands/cloop.js | 80 + commands/cloopcrash.js | 19 + commands/console.js | 25 + commands/core.js | 15 + commands/crash.js | 18 + commands/creators.js | 24 + commands/discord.js | 9 + commands/echo.js | 14 + commands/errortest.js | 10 + commands/evaljs.js | 43 + commands/freeze.js | 30 + commands/help.js | 27 + commands/icu.js | 28 + commands/list.js | 34 + commands/memoryinfo.js | 17 + commands/mineflayerbot.js | 89 + commands/netmsg.js | 26 + commands/ping.js | 19 + commands/reconnect.js | 17 + commands/say.js | 23 + commands/selfdestruct.js | 57 + commands/serversuicidal.js | 27 + commands/skin.js | 15 + commands/sudo.js | 15 + commands/test.js | 21 + commands/tpr.js | 18 + commands/trol.js | 55 + commands/troll.js | 51 + commands/urban.js | 29 + commands/validate.js | 12 + commands/version.js | 13 + config.json | 62 + e.txt | 102 + index.js | 20 + logger.js | 25 + modules/chat.js | 116 + modules/chat_command_handler.js | 36 + modules/command_core.js | 74 + modules/command_loop_manager.js | 21 + modules/command_manager.js | 72 + modules/console.js | 48 + modules/discord.js | 112 + modules/hashing.js | 63 + modules/player_list.js | 78 + modules/position.js | 19 + modules/reconnect.js | 14 + modules/registry.js | 11 + modules/self-care.js | 59 + package-lock.json | 2466 +++++++++++++++++ package.json | 21 + replit.nix | 12 + util/between.js | 7 + .../blacklist util/blacklist_deop_selfcare.js | 0 util/blacklist util/blacklist_icu_selfcare.js | 0 .../blacklist util/blacklist_mute_selfcare.js | 0 util/blacklist util/usernames.txt | 0 util/eval_colors.js | 22 + 83 files changed, 7197 insertions(+) create mode 100644 Changelog.md create mode 100644 CommandModules/command_error.js create mode 100644 CommandModules/command_source.js create mode 100644 CreayunBot/bot.js create mode 100644 CreayunBot/config.js create mode 100644 CreayunBot/index.js create mode 100644 CreayunBot/reconnect.js create mode 100644 README.md create mode 100644 archive/FNFBoyfriendBot 0.X Archive/index.js create mode 100644 archive/FNFBoyfriendBot 3.0X Archive/index.js create mode 100644 archive/FNFBoyfriendBot 3.0X Archive/modules/selfcare.js create mode 100644 archive/FNFBoyfriendBot 3.0X Archive/modules/server.json create mode 100644 archive/FNFBoyfriendBot 3.0X Archive/servers create mode 100644 archive/FNFBoyfriendBot Creayun Build/index.js create mode 100644 archive/FNFBoyfriendBot Creayun Build/keep_alive.js create mode 100644 bot.js create mode 100644 chat/kaboom.js create mode 100644 chat/u203a.js create mode 100644 commands/ban.js create mode 100644 commands/blacklist.js create mode 100644 commands/botdevhistory.js create mode 100644 commands/bots.js create mode 100644 commands/calculator.js create mode 100644 commands/chomenscmd.js create mode 100644 commands/chomeval.js create mode 100644 commands/ckill.js create mode 100644 commands/cloop.js create mode 100644 commands/cloopcrash.js create mode 100644 commands/console.js create mode 100644 commands/core.js create mode 100644 commands/crash.js create mode 100644 commands/creators.js create mode 100644 commands/discord.js create mode 100644 commands/echo.js create mode 100644 commands/errortest.js create mode 100644 commands/evaljs.js create mode 100644 commands/freeze.js create mode 100644 commands/help.js create mode 100644 commands/icu.js create mode 100644 commands/list.js create mode 100644 commands/memoryinfo.js create mode 100644 commands/mineflayerbot.js create mode 100644 commands/netmsg.js create mode 100644 commands/ping.js create mode 100644 commands/reconnect.js create mode 100644 commands/say.js create mode 100644 commands/selfdestruct.js create mode 100644 commands/serversuicidal.js create mode 100644 commands/skin.js create mode 100644 commands/sudo.js create mode 100644 commands/test.js create mode 100644 commands/tpr.js create mode 100644 commands/trol.js create mode 100644 commands/troll.js create mode 100644 commands/urban.js create mode 100644 commands/validate.js create mode 100644 commands/version.js create mode 100644 config.json create mode 100644 e.txt create mode 100644 index.js create mode 100644 logger.js create mode 100644 modules/chat.js create mode 100644 modules/chat_command_handler.js create mode 100644 modules/command_core.js create mode 100644 modules/command_loop_manager.js create mode 100644 modules/command_manager.js create mode 100644 modules/console.js create mode 100644 modules/discord.js create mode 100644 modules/hashing.js create mode 100644 modules/player_list.js create mode 100644 modules/position.js create mode 100644 modules/reconnect.js create mode 100644 modules/registry.js create mode 100644 modules/self-care.js create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 replit.nix create mode 100644 util/between.js create mode 100644 util/blacklist util/blacklist_deop_selfcare.js create mode 100644 util/blacklist util/blacklist_icu_selfcare.js create mode 100644 util/blacklist util/blacklist_mute_selfcare.js create mode 100644 util/blacklist util/usernames.txt create mode 100644 util/eval_colors.js diff --git a/Changelog.md b/Changelog.md new file mode 100644 index 0000000..ffc2c9b --- /dev/null +++ b/Changelog.md @@ -0,0 +1,80 @@ +beta 0.1 - 0.2 0.5 release 2022 (first release) +ParkerBot/DEMONBOT/Woomybot/Boyfriend + ehh nothing much just the release of the betas +-------------------------------------- +beta 1.0 release 1/25/23 codename: in console test. +original commands:!cloop bcraw,!cloop sudo,!troll,!say,!op (broke),!deop (broke), !gms (broke),!freeze,!icu <--- these commands no longer can be used in game but in console for beta 1.0 +commands added: fake kick,ban,kick,crashserver,stop,gmc,greetin,test(broken idk),bypass,entity spam(broken idk),gms(broke),stop,tntspam (broke idk),prefix (not tested yet),annoy (broke results in a complete server crash keeping ayunboom down for 3 to 5 hours),freeze(i dont even know what this do since i cant do !freeze),crashserver,troll(more destructive),trol(more destructive),icu(broke idk),say,sudo,cloop +------------------------------------- +1.0 release 1/26/23 1:47am codename: +FNFBoyfriendBot. +commands added: BOOM,deop,troll and trol(added extra code to both commands),kaboom,serverdeop, +commands fixed:tp,gms,annoy(attemps to crash the server but not as bad as it was) +commands untested:prefix +command Broke:icu,freeze,tntspam,entityspam,tntspam? +changed name to &b &lFNFBoyfriendBot may change later idk + ------------------------------------- +1.0 revision 1 release 1/26/23 2:00pm +codename revision 1. +reworked the kaboom command and fixed the description commands but thats about it. also reworked the greeting command +-------------------------------------- +1.1 release 1/28/23 1:51 +nothing much just added extra stuff to the troll, trol and that is about it +------------------------------------- +1.2 release 1/30/32 no codename +for ppl me making me really mad -.- got released early +-------------------------------------- + + +2.0 2/07/23 8:01pm codename: Major +added DREAMSTANALERT,technoblade,GODSWORD,KFC,MYLEG,OHHAIL,altcrash,MyHead +Reworked tntspam,entityspam,soundbreaker +added Spim to the whitelist of the bot +released too early than it was planned gonna be released due do the code almost leaked it had to be released early +-------------------------------------- + + +2.1 release 2/11/23 5:30pm +added: refillcore(had early prototypes of this was original), vanish,deop,cloopdeop,mute,cloopmute +reworked: op (supposed to already op the bot but didnt work until this release) and reworked gmc (same problem with op) +(had early prototypes of vanish,refillcore,gmc,and op but these were original gonna be automatic but after alot of attempts i said screw it and added 2 commands refillcore, and vanish reworked gmc and op and got them working finally) removed Spim because come to find out he couldnt be trusted +-------------------------------------- +2.2 release 2/20/23 4:21pm central time +bug fixes +added ckill(added back after trial and error),serversuicidal +changed username of the bot from hex code to FNFBoyfriendBot because hex code for the username was confusing as it changes everytime +--------------------------------------- + 3.0 Beta codename: blue-balled corruption +was canceled due to ayunboom being rewriten and renamed to creayun barely usable on there because commands blocks are disabled which i created a bot for that server that has no command blocks https://replit.com/@Parker2991/FNFBoyfriendbotcreayun-bot-final-build#index.js just finished the final build of that bot due to chip announcing that he may make a kaboom clone yk what 1.5.2 and 1.8 support but anyway onto what is in the 3.0 beta well the beta for right now +commands added:discord,version,online,list,iownyou,endmysuffering,wafflehouse,whopper,bcraw,destroycore +Notes:the original say command was reworked into talking in chat without bcraw and command blocks which the bcraw chatting code is still in the bot but was reworked into the bcraw commmand. maybe some commands removed? i dont know yet edit there is 2 commands removed +commands removed:tpe and serverdeop??? +reworked commands :say command for right now +relay chat mabe will be added as a seperate repl i dont know yet possible would need a whole code rewrite for relay chat +----------------------------------------- +3.0 full release CodeName:Sky Remanifested +the full release of 3.0 the rewrite has been pushed back to 4.0 due to 3.0 already pass its release date and the code i had on hand was done but the rewrite wasnt done +Added: SelfCare +Made during development:Relay chat prototypes for several servers +--------------------- +3.0.5 release +Bug fixes +----------- +3.0.9 +commands added:Help(finally added after about a year),consolelog(added cuz yes),cloopconsolelog(added cuz yes) +------------------- +4.0 beta Codename:FNFBoyfriendBot Ultimate +all of the command removed and or rewriten from version 3.0.9 +Commands added or rewriten:ban,buyrealminecraft,cloop,discord,echo,errortest,freeze,help,icu,info,kick,bots,skids,romncitrash,say,selfdestruct,serversuicidal,sudo,test,trol,troll +(note that this is different and is not CommandModules)Modules Added:discord,chat,chat_command_handler,command_manager,position,registry,reconnect,command_core +CustomChats added:kaboom(for normal chat) +(note that this is different and is not Modules)CommandModules Added:command_error,Command_source +a beta release for rn +----------------------------- +4.0 Alpha Codename:FNFBoyfriendBot Ulitmate +Commands added: calculator,ckill,evaljs,urban,crash,cloopcrash,core,list,ping,netmsg,skin,tpr +Commands Removed:Buyrealminecraft +(note that this is different and is not CommandModules)Modules Added:op selfcare,gmc selfcare,vanish selfcare,cspy selfcare,console +(note that this is different and is not Modules)CustomChats Added:u2O3a(for custom chat) +added util with between(for urban) eval_colors(for evaljs) +---------------------------------- \ No newline at end of file diff --git a/CommandModules/command_error.js b/CommandModules/command_error.js new file mode 100644 index 0000000..aa344d9 --- /dev/null +++ b/CommandModules/command_error.js @@ -0,0 +1,17 @@ +// TODO: Improve how messages are stringified +const ChatMessage = require('prismarine-chat')('1.20.1') +const stringify = message => new ChatMessage(message).toString() + +class CommandError extends Error { + constructor (message, filename, lineError) { + super(stringify(message), filename, lineError) + this.name = 'CommandError' + this._message = message + + } + + get message () { + return stringify(this._message) + } +} +module.exports = CommandError diff --git a/CommandModules/command_source.js b/CommandModules/command_source.js new file mode 100644 index 0000000..1536d8a --- /dev/null +++ b/CommandModules/command_source.js @@ -0,0 +1,16 @@ +class CommandSource { + constructor (player, sources, hash = false, discordMessageEvent = null) { + this.player = player + this.sources = sources + this.hash = hash + this.discordMessageEvent = discordMessageEvent + } + + sendFeedback () {} + + sendError (message) { + this.sendFeedback([{ text: '', color: 'dark_red' }, message], false) + } +} + +module.exports = CommandSource diff --git a/CreayunBot/bot.js b/CreayunBot/bot.js new file mode 100644 index 0000000..ec4fb86 --- /dev/null +++ b/CreayunBot/bot.js @@ -0,0 +1,204 @@ +const mineflayer = require('mineflayer') +const discord = require('discord.js') + +function createBot (host, port, channelId, client) { + + let discordQueue = '' // too lazy to make an array mabe + + const channel = client.channels.cache.get(channelId) + + const randomstring = require('randomstring'); + const bot = mineflayer.createBot({ + host, + port, + username: randomstring.generate(6), // max 16 chars + version: '1.8.8', + hideErrors: false + }); + + var sleep = t => new Promise(a => setTimeout(a, t)), + sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(200); } + + function between(min, max) { + return Math.floor( + Math.random() * (max - min) + min + ) + } + + + + // discord queue interval + setInterval(() => { + if (discordQueue === '') return + + channel.send(discordQueue.substring(0, 2000)) + + discordQueue = '' + }, 1000) + + function sendDiscordMessage (message) { + discordQueue += message + } + + + + //variables + var prefix = '&8&l[&5&lFNF&b&lBoyfriend&4&lBot&8&l]'; + + + function randomchar() { + const crypto = require("crypto"); + var hash = crypto.createHash("md5"); + var randomBytes = crypto.randomBytes(16); + hash.update(randomBytes); + var hashi = hash.digest(Math.round(Math.random()) ? "hex" : "Base64"); + + return hashi.substring(0, 16); + } + + function log(message) { + console.log(`[${host}:${port}] ${message}`) + } + +function runInCore(cmd) { + bot._client.write('update_command_block', { location: { x: between(Math.floor(bot.entity.position.x) + 1, Math.floor(bot.entity.position.x) - 15), y: between(0, 3), z: between(Math.floor(bot.entity.position.z) + 1, Math.floor(bot.entity.position.z) - 15) }, command: cmd, mode: 1, flags: 0b100 }); +} +bot.on('login', async () => { + + log('Bot has logged in to the server!'); + bot.chat('/prefix [&5&lFNF&b&lBF&4&lBot&9&lDiscord&8&l]') + await sendChat('type ~help for commands') + + }) + //hexman what are you doing + + const cmd = require('mineflayer-cmd').plugin + + + + cmd.allowConsoleInput = false // Optional config argument + bot.loadPlugin(cmd) + + + + function discordCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + sendChat('https://www.discord.gg/GCKtG4erux') + + resolve() + + + }) + } + function sayCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + sendChat(message + '') + resolve() + + + }) + } + + + + function versionCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + sendChat('join the FNFBoyfriendBot discord for more features') + + resolve() + + }) + } + + + + + bot.once('cmd_ready', () => { + bot.cmd.registerCommand('version', versionCommand, // Create a new command called 'say' and set the executor function + 'version', // help text + '~version') // usage text + + + }) + + bot.once('cmd_ready', () => { + bot.cmd.registerCommand('say', sayCommand, // Create a new command called 'say' and set the executor function + 'make me say smh', // help text + '~say') // usage text + + + }) + + bot.once('cmd_ready', () => { + bot.cmd.registerCommand('discord', discordCommand, // Create a new command called 'say' and set the executor function + 'Discord', // help text + '~discord') // usage text + + + }) + bot.on('chat', (username, message) => { + if (message.startsWith('~')) { + const command = message.substring(1) + bot.cmd.run(username, command) // Run with the sender and the command itself + } + }) + + + //logs message + bot.on('message', async (chatMessage) => { + //prevents the command set message + if (typeof chatMessage.translate === 'string' && chatMessage.translate.startsWith('advMode.')) return + + //var ansi = bot.getMessageAsPrismarine(chatMessage)?.toAnsi() + //var string = bot.getMessageAsPrismarine(chatMessage)?.toString() + var now = new Date().toLocaleString() + console.log(`[${now}] [${host}${port !== 25565 ? `:${port}` : ''}] ` + chatMessage.toAnsi()) +//[${now}] [${host}${port !== 25565 ? `:${port}` : ''}] ${toAnsi} + sendDiscordMessage('```ansi\n' + chatMessage.toAnsi().replaceAll("\u001b[9", "\u001b[3").replaceAll('`', '\u200b`') + '\n```') + }) + + function messageCreate (message) { + if (message.author.id === client.user.id) return + + if (message.channel.id !== channel.id) return + + bot.chat('&8&l[&5&lFNF&b&lBoyfriend&4&lBot&9&lDiscord&8&l] ' + `${message.member.displayName.replaceAll('\xa7', '&')}&r: ${message.content}`) + } + client.on('messageCreate', messageCreate) + + bot.on('end', (reason) => { + log(`Disconnected: ${reason}`) + + channel.send(`Disconnected: ${reason}`) + + client.off('messageCreate', messageCreate) + bot.removeAllListeners() + + setTimeout(() => createBot(host, port, channelId, client), 1000 * 7) + }) +} + +module.exports = { createBot } +//kk +//idk \ No newline at end of file diff --git a/CreayunBot/config.js b/CreayunBot/config.js new file mode 100644 index 0000000..7e6e316 --- /dev/null +++ b/CreayunBot/config.js @@ -0,0 +1,15 @@ +const reconnect = require('./reconnect.js') +module.exports = { + servers: [ + { + host: 'sus.shhnowisnottheti.me', + port:'25565', + discordChannelId : '1138891614299897987', + reconnect: '6000' + }, + + + ] + } + + //1114036256951783514 \ No newline at end of file diff --git a/CreayunBot/index.js b/CreayunBot/index.js new file mode 100644 index 0000000..2f6f25f --- /dev/null +++ b/CreayunBot/index.js @@ -0,0 +1,25 @@ +const mineflayer = require('mineflayer') + + + //run in the shell if any of the relay chats isnt working +//pidof node | awk 'BEGIN { RS = " " } { print $1}' | while read line ; do kill $line ; done +//and then run kill 1 +//const CreayunAndFoliaboom = require('./Relay chat(creayun and foliaboom)') +const { createBot } = require('./bot.js') + +const config = require('./config.js') + + +const { Client, GatewayIntentBits } = require('discord.js') +const { MessageContent, GuildMessages, Guilds } = GatewayIntentBits + +const client = new Client({ intents: [Guilds, GuildMessages, MessageContent] }) + +let channel; +client.on('ready', () => { + for (const server of config.servers) { + createBot(server.host, server.port, server.discordChannelId, client) + } +}) +require('dotenv').config() +client.login(process.env['discordtoken']) \ No newline at end of file diff --git a/CreayunBot/reconnect.js b/CreayunBot/reconnect.js new file mode 100644 index 0000000..6086920 --- /dev/null +++ b/CreayunBot/reconnect.js @@ -0,0 +1,14 @@ +const mc = require('minecraft-protocol') + +function inject (bot, options) { + bot.reconnectDelay = options.reconnectDelay ?? 1000 + + bot.on('end', () => { + if (bot.reconnectDelay < 0) return + + bot._client = mc.createClient(options) + bot.emit('init_client', bot._client) + }) +} + +module.exports = inject diff --git a/README.md b/README.md new file mode 100644 index 0000000..c2b3f78 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# FNFBoyfriendBotX4.0 diff --git a/archive/FNFBoyfriendBot 0.X Archive/index.js b/archive/FNFBoyfriendBot 0.X Archive/index.js new file mode 100644 index 0000000..7f970d5 --- /dev/null +++ b/archive/FNFBoyfriendBot 0.X Archive/index.js @@ -0,0 +1,459 @@ +const mineflayer = require('mineflayer') +var server = '' + + + + +const randomstring = require('randomstring'); +const bot = mineflayer.createBot({ + host: server, + port: 25565, + username: randomstring.generate(8), + version: 1.16, +}) + +var sleep = t => new Promise(a => setTimeout(a, t)), + sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(300); } + +function between(min, max) { + return Math.floor( + Math.random() * (max - min) + min + ) +} + +//variables +var prefix = ''; +var consoleprefix = ''; + +function randomchar() { + const crypto = require("crypto"); + var hash = crypto.createHash("md5"); + var randomBytes = crypto.randomBytes(16); + hash.update(randomBytes); + var hashi = hash.digest(Math.round(Math.random()) ? "hex" : "Base64"); + + return hashi.substring(0, 16); +} + +function runInCore(cmd) { + bot._client.write('update_command_block', { location: { x: between(Math.floor(bot.entity.position.x) + 1, Math.floor(bot.entity.position.x) - 15), y: between(0, 3), z: between(Math.floor(bot.entity.position.z) + 1, Math.floor(bot.entity.position.z) - 15) }, command: cmd, mode: 1, flags: 0b100 }); +} +bot.on('login', async () => { // time in ms + + + + + await sendChat('/c') + + + await sendChat('/night') + await sendChat('/gamerule doMobSpawning false') + await sendChat('/worldborder set 10000000') + await sendChat('/de') + await sendChat('/online') + await sendChat('/cspy on') + + + await sendChat('') + await sendChat(`/fill ${Math.floor(bot.entity.position.x)} 0 ${Math.floor(bot.entity.position.z)} ${Math.floor(bot.entity.position.x) - 15} 2 ${Math.floor(bot.entity.position.z - 15)} command_block replace`); + + + +}) + +const cmd = require('mineflayer-cmd').plugin + +cmd.allowConsoleInput = true // Optional config argument +bot.loadPlugin(cmd) +//kill command function +function killCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + runInCore('bcraw ' + prefix + 'Kill Cloop Executed') + setInterval(function() { runInCore('ekill ' + message), 1 }) + resolve() + } + }) +} + +function freezeCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + runInCore('bcraw ' + prefix + + ' ' + message + ' Is Frozen') + setInterval(function() { runInCore('tp ' + message + ' ' + message), 1 }) + + resolve() + } + }) +} +function deopCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + runInCore('bcraw ' + prefix + 'Deop Cloop Executed') + setInterval(function() { runInCore('execute run deop ' + message), 1 }) + resolve() + } + + }) +} +function deopallCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + runInCore('bcraw ' + prefix + 'Deop Cloop Executed') + setInterval(function() { runInCore('deop @a'), 1 }) + setInterval(function() { runInCore('op @s[type=player]'), 1 }) + + resolve() + } + }) +} + +function survivalCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + runInCore('bcraw ' + prefix + 'Gamemode Survival For All') + runInCore('execute at @a run gamemode survival @a') + resolve() + } + }) +} + +function helpCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + runInCore('bcraw ' + prefix + ' !ckill to spam kill any player ') + runInCore('bcraw ' + prefix + ' !trol to abuse a player ingame') + runInCore('bcraw ' + prefix + ' !deop to deop a player forever') + runInCore('bcraw ' + prefix + ' !icu spam tp a player to you(control them)') + runInCore('bcraw ' + prefix + ' !say make the bot say a message') + runInCore('bcraw ' + prefix + ' !cloop to spam any message') + runInCore('bcraw ' + prefix + ' !troll TROLL THE ENTIRE SERVER') + runInCore('bcraw ' + prefix + ' !help list of commands') + resolve() + } + }) +} + +function opCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + runInCore('bcraw ' + prefix + 'Op Cloop Executed XD') + setInterval(function() { runInCore('execute run op ' + message), 1 }) + resolve() + } + }) +} +function icuCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + runInCore('bcraw ' + prefix + 'ICU CONTROL HAS STARTED') + setInterval(function() { runInCore('tp ' + message + ' ' + sender), 200 }) + setInterval(function() { runInCore('deop ' + message), 200 }) + resolve() + } + + }) +} +function sayCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + runInCore(consoleprefix + message) + resolve() + + + }) +} +function sudoCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + runInCore('sudo ' + message) + resolve() + + + }) +} +function cloopCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + setInterval(function() { runInCore('/' + message), 1 }) + runInCore('bcraw ' + prefix + ' Cloop Has Started') + resolve() + } + + + + }) +} +function lagCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + setInterval(function() { runInCore('day'), 1 }) + setInterval(function() { runInCore('night'), 1 }) + setInterval(function() { runInCore('clear @a'), 1 }) + setInterval(function() { runInCore('effect give @a nausea'), 1 }) + setInterval(function() { runInCore('effect give @a slowness'), 1 }) + setInterval(function() { runInCore('give @a bedrock'), 1 }) + setInterval(function() { runInCore('give @a sand'), 1 }) + setInterval(function() { runInCore('give @a dirt'), 1 }) + setInterval(function() { runInCore('give @a diamond'), 1 }) + setInterval(function() { runInCore('give @a tnt'), 1 }) + setInterval(function() { runInCore('give @a crafting_table'), 1 }) + setInterval(function() { runInCore('give @a diamond_block'), 1 }) + setInterval(function() { runInCore('execute run op ' + randomchar), 1 }) + + resolve() + } + + + + + + resolve() + }) +} +function trollCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + setInterval(function() { runInCore('clear ' + message), 1 }) + setInterval(function() { runInCore('effect give ' + message + ' nausea'), 1 }) + setInterval(function() { runInCore('effect give ' + message + ' nausea'), 1 }) + setInterval(function() { runInCore('give ' + message + ' bedrock'), 1 }) + setInterval(function() { runInCore('give ' + message + ' diamond'), 1 }) + setInterval(function() { runInCore('give ' + message + 'tnt'), 1 }) + setInterval(function() { runInCore('give ' + message + ' diamond_block'), 1 }) + setInterval(function() { runInCore('give ' + message + ' sand'), 1 }) + setInterval(function() { runInCore('give ' + message + ' bedrock'), 1 }) + setInterval(function() { runInCore('execute run deop ' + message), 1 }) + setInterval(function() { runInCore('gms ' + message), 1 }) + runInCore('bcraw ' + prefix + ' ' + message + ' Is Getting Trolled') + resolve() + } + + }) + +} +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('troll', lagCommand, // Create a new command called 'say' and set the executor function + 'make me say something', // help text + 'say ') // usage text + + // Add a flag called 'color' that expects 1 input + .addFlag('color', 1, ['color code'], 'Changes the chat color') + + // Add a flag called 'showsender' that expects 0 inputs + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('icu', icuCommand, // Create a new command called 'say' and set the executor function + 'make me say something', // help text + 'say ') // usage text + + // Add a flag called 'color' that expects 1 input + .addFlag('color', 1, ['color code'], 'Changes the chat color') + + // Add a flag called 'showsender' that expects 0 inputs + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('sudo', sudoCommand, // Create a new command called 'say' and set the executor function + 'make me say something', // help text + 'say ') // usage text + + // Add a flag called 'color' that expects 1 input + .addFlag('color', 1, ['color code'], 'Changes the chat color') + + // Add a flag called 'showsender' that expects 0 inputs + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('trol', trollCommand, // Create a new command called 'say' and set the executor function + 'make me say something', // help text + 'say ') // usage text + + // Add a flag called 'color' that expects 1 input + .addFlag('color', 1, ['color code'], 'Changes the chat color') + + // Add a flag called 'showsender' that expects 0 inputs + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('ckill', killCommand, + 'ckill player', // help text + 'ckill ') // usage text + + // Add a flag called 'color' that expects 1 input + .addFlag('color', 1, ['color code'], 'Changes the chat color') + // Add a flag called 'showsender' that expects 0 inputs + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('deop', deopCommand, + 'deop player', // help text + 'deop ') // usage text + + // Add a flag called 'color' that expects 1 input + .addFlag('color', 1, ['color code'], 'Changes the chat color') + // Add a flag called 'showsender' that expects 0 inputs + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('op', opCommand, + 'op player', // help text + 'op ') // usage text + + // Add a flag called 'color' that expects 1 input + .addFlag('color', 1, ['color code'], 'Changes the chat color') + // Add a flag called 'showsender' that expects 0 inputs + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('say', sayCommand, + 'make me say something', // help text + 'say ') // usage text + + // Add a flag called 'color' that expects 1 input + .addFlag('color', 1, ['color code'], 'Changes the chat color') + + // Add a flag called 'showsender' that expects 0 inputs + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('cloop', cloopCommand, + 'make me say something', // help text + 'say ') // usage text + + // Add a flag called 'color' that expects 1 input + .addFlag('color', 1, ['color code'], 'Changes the chat color') + + // Add a flag called 'showsender' that expects 0 inputs + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('freeze', freezeCommand, + 'make me say something', // help text + 'say ') // usage text + + // Add a flag called 'color' that expects 1 input + .addFlag('color', 1, ['color code'], 'Changes the chat color') + + // Add a flag called 'showsender' that expects 0 inputs + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) + +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('deopall', deopallCommand, + 'stop the server', + 'stop') + + + .addFlag('color', 1, ['color code'], 'Changes the chat color') + + + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('gms', survivalCommand, + 'stop the server', + 'stop') + + + .addFlag('color', 1, ['color code'], 'Changes the chat color') + + + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) + + + + +bot.on('chat', (username, message) => { + if (message.startsWith('!')) { + const command = message.substring(1) + bot.cmd.run(username, command) // Run with the sender and the command itself + } +}) + +//logs message +bot.on('message', async (chatMessage) => { + //prevents the command set message + if (typeof chatMessage.translate === 'string' && chatMessage.translate.startsWith('advMode.')) return + console.log(chatMessage.toAnsi()) +}) diff --git a/archive/FNFBoyfriendBot 3.0X Archive/index.js b/archive/FNFBoyfriendBot 3.0X Archive/index.js new file mode 100644 index 0000000..21e7c84 --- /dev/null +++ b/archive/FNFBoyfriendBot 3.0X Archive/index.js @@ -0,0 +1,1023 @@ +const mineflayer = require('mineflayer') +let symbol = require('illegal-symbols') +const readline = require('readline') + +let rl = readline.createInterface({ input: process.stdin, output: process.stdout }) + +const randomstring = require('randomstring'); +const bot = mineflayer.createBot({ + host: '', + port: 25565, + username: '', + version: '1.19.4', + hideErrors:true, + reconnectdelay: 1000, + plugins: { + selfcare: require('./modules/selfcare.js') + } +}) + // +var sleep = t => new Promise(a => setTimeout(a, t)), + sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(300); } + +function between(min, max) { + return Math.floor( + Math.random() * (max - min) + min + ) +} + +const prefix = ''; + + + +function CommandCore(cmd) { + bot._client.write('update_command_block', { location: { x: between(Math.floor(bot.entity.position.x) + 1, Math.floor(bot.entity.position.x) - 15), y: between(0, 3), z: between(Math.floor(bot.entity.position.z) + 1, Math.floor(bot.entity.position.z) - 15) }, command: cmd, mode: 1, flags: 0b100 }); +} +bot.on('login', async () => { + + + + + + console.log(`logged in as ${bot.username}`) + console.log('Hello World!') + + + +}) +const cmd = require('mineflayer-cmd').plugin + +cmd.allowConsoleInput = false // Optional config argument +bot.loadPlugin(cmd) + + + +//nuke command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'nuke': + setInterval(function() { CommandCore('essentials:ekill *'), 1 }) + setInterval(function() { CommandCore('nuke'), 50 }) + setInterval(function() { CommandCore('eco give * 1000'), 50 }) + setInterval(function() { CommandCore('day'), 50 }) + setInterval(function() { CommandCore('night'), 50 }) + setInterval(function() { CommandCore('clear @a'), 50 }) + setInterval(function() { CommandCore('summon fireball 115 62 -5'), 50 }) + setInterval(function() { CommandCore('bcraw ' + prefix + 'WELCOME TO HELL'), 50 }) + break + } +}) +//consolelog command cuz yes and its useless +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() +let message = args.join(' ') + switch (command) { + case 'consolelog': + console.log(message) +bot.chat(message) + break + }// +}) + +//help command finally +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'help' : + + console.log('Very early commands list') + + console.log('nuke (nukes the server)') + console.log('consolelog (useless)') + console.log('help (commands)') + console.log('cloopconsolelog (useless)') + console.log('fakekick (fake kicks a player)') + console.log('gmc (pretty much useless since its in selfcare.js file but here cuz yes)') + console.log('deop (deops a player)') + console.log('cloopdeop (cloop deops a player)') + console.log('cloopmute (cloop mutes a player)') + console.log('mute (mutes a player)') + console.log('kaboom (KABOOM BOI!)') + console.log('boom (BOOM GOES THE DYNAMITE)') + console.log('kick (kicks a player but useless cuz patch so its just here)') + console.log('greeting (OH HAIL AYUNAMI2000)(Why hello there ayunami2000)') + console.log('fakeban (what do you expect? its a fake ban)') + console.log('thor (I AM ZEUS)') + console.log('vanish (vanishes the bot)') + console.log('ohhail (plz no)') + console.log('servercrash (server patched)') + console.log('explode (tntspam i guess?)') + console.log('trol (troll a player)') + console.log('cloop (cloop a command like bcraw or sudo exampleusername c:)') + console.log('altcrash (alternative to crashing a server)') + console.log('myhead (right in the name on what it does(') + console.log('myleg (OH DEAR GOD I BROKE MY LEG)') + console.log('kfc (MMM KFC GOOD)(gives everyone a stack of chicken)') + console.log('godsword (rando command that gives people op swords)') + console.log('technoblade (rip techno ;-;)') + console.log('dreamstanalert (GO ON YOU DREAM STAN!)') + console.log('test (Hello World!)(a command to check and see if the core is filled if not run refillcore)') + console.log('soundbreaker (Bye bye audio)') + console.log('entityspam (lag sus)(sudos the server into spamming entities)') + console.log('tp (tps everyone to a random person)') + console.log('gms (put the whole server in survival)') + console.log('stop (server patched)') + console.log('tntspam (same as entityspam but just with tnt)') + console.log('prefix (sudos the server to have a prefix)') + console.log('annoy (YOU ANNOY ME AND THE SERVER!)') + console.log('freeze (freezes a player in place)') + console.log('troll (trolls the entire server)') + console.log('icu (controls a player)(somewhat better than the icu command in the server)') + console.log('bcraw (same as the say command but in bcraw format)') + console.log('op (useless cuz of selfcare but kept cuz yes)') + console.log('sudo (sudo a player with a message or command)') + console.log('refillcore (refills the core)') + console.log('sudoall (same as the sudo command but for the whole server)') +console.log('selfdestruct (self explanatory)(boy no)') + console.log('ckill (cloop kills a player)') + console.log('serversuicidal (please god NO)') + console.log('say (make the bot say smh)') + console.log('destroycore (destroys the core)') + console.log('discord (discord server)') + console.log('sussy (AMONGUS!)') + console.log('online (lists whos online not including vanished players)') + console.log('list (lists whos online including vanished players)') + console.log('endmysuffering (☠️ )') + console.log('fnf (Friday Night Funkin)') + console.log('woomy (inkling girl what you doing here??)') + console.log('wafflehouse (....)') + console.log('whopper (we talking about a cheese burger??)') + console.log('device') + break + } +}) +//cloopconsolelog command cuz yes and its useless +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() +let message = args.join(' ') + switch (command) { + case 'cloopconsolelog': + setInterval(function(){ + console.log(message), 1 }) + setInterval(function(){ bot.chat(message),1}) + break + } +}) +//fakekick command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'fakekick': + CommandCore('') + CommandCore('bcraw ' + prefix + args + ' has been kicked!') + + + + break + } +}) +//gmc command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'gmc': + bot.chat('/minecraft:gamemode creative') + break + } + +}) +//deop command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'deop': + bot.chat('/deop ' + args.join(' ')) + break + } +}) +//cloopdeop command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'cloopdeop': + setInterval(function() { + bot.chat('/deop ' + args.join(' ')), 1 + }) + break + } +}) +//cloopmute command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'cloopmute': + setInterval(function() { + bot.chat('/mute ' + args.join(' ')), 1 + }) + break + } +}) +//mute command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'mute': + bot.chat('/mute ' + args.join(' ')) + break + } +}) +//kaboom command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + switch (command) { + + case 'kaboom': + setInterval(function() { CommandCore('sudo * kaboom'), 1 }) + CommandCore('bcraw have fun =)') + + break + } + +}) +//BOOM command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + + switch (command) { + + case 'BOOM': + CommandCore('sudo * /fast') + CommandCore('sudo * god') + CommandCore('sudo * gms') + CommandCore('sudo * /sphere tnt 75') + CommandCore('sudo * kaboom') + CommandCore('BOOM GOES THE DYNAMITE') + + break + } + +}) +//kick command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + + case 'kick': + CommandCore('/console @e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e@e') + CommandCore('bcraw ' + prefix _+ args + ' has been kicked!') + + break + } + +}) +//greeting command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'greeting': + + CommandCore('bcraw &eayunami2000 joined the game') + + break + } +}) +//fakeban commnad +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'fakeban': + CommandCore('msg ' + args + ' @e @e @e @e @e @e @e @e @e') + CommandCore('bcraw &4&l&mConsole Has Perm Banned ' + args + 'For 22 Days And 14 Hours') + + break + } +}) +//thor commnad +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'thor': + CommandCore('essentials:smite *' + args) + CommandCore('bcraw ' + prefix + '&4&lI AM ZEUS') + break + } +}) +//vanish command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'vanish': + bot.chat('/vanish') + + break + } +}) +//OHHAIL command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'OHHAIL': + CommandCore('sudo * c: OH HAIL ' + args.join(' ')) + break + } +}) +//servercrash command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'servercrash': + setInterval(function() { CommandCore('essentials:sudo * kick @e[type=player] @e @e @e'), 1 }) + break + } +}) + +//explode command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() +//config.servers is not iterable + switch (command) { + case 'explode': + setInterval(function() { CommandCore('minecraft:execute unless entity @e[name= run ] at ' + args + ' run summon minecraft:tnt'), 1 }) + + + + break + } +}) +//trol command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'trol': + setInterval(function() { CommandCore('essentials:smite ' + args), 1 }) + setInterval(function() { CommandCore('clear ' + args), 1 }) + setInterval(function() { CommandCore('effect give ' + args + ' nausea'), 1 }) + setInterval(function() { CommandCore('effect give ' + args + ' poison'), 1 }) + + setInterval(function() { CommandCore('spawnentity pig 10 ' + args), 1 }) + setInterval(function() { CommandCore('spawnentity tntminecart 10 ' + args), 1 }) + setInterval(function() { CommandCore('spawnentity zombie 10 ' + args), 1 }) + setInterval(function() { CommandCore('kaboom ' + args), 1 }) + break + } +}) +//cloop command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'cloop': + + setInterval(function() { CommandCore(args.join(' ')), 1 }) + break + } +}) +//altcrash command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'altcrash': + setInterval(function() { CommandCore('sudo * execute at @a run give @a diamond_hoe 64'), 1 }) + setInterval(function() { CommandCore('bcraw ' + prefix + '&8&l Have fun with hoes =) '), 1 }) + + break + } +}) +//Myhead command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'myhead': + CommandCore('give @a minecraft:player_head{SkullOwner:}') + CommandCore('bcraw ' + prefix + 'My Head') + break + } +}) +//MYLEG! command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'myleg': + CommandCore('bcraw ' + prefix + '&4&lM&4&lY &4&lLEG!!!') + CommandCore('give @a bone 64') + break + } +}) +//KFCFINGERLICKINGOOD command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'kfc': + CommandCore('give @a cooked_chicken 64') + CommandCore('bcraw ' + prefix + 'KFC FINGER LICKIN GOOD') + break + } +}) +//GODSWORD!! command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'godsword': + CommandCore('give @a diamond_sword') + CommandCore('sudo * enchantall') + CommandCore('bcraw ' + prefix + 'GOD SWORD!!!!!!!!!!!!!!!!!') + break + } +}) +//technoblade command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'technoblade': + CommandCore('sudo * summon pig') + CommandCore('bcraw ' + prefix + 'Rest in peace technoblade we will always love and remember what you have done for youtube technoblade if you can hear me i love your youtube channel') + break + } +}) +//DREAMSTANALERT command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'dreamstanalert': + CommandCore('bcraw ' + prefix + 'OH HELL NO DREAM STAN ALERT') + CommandCore('execute unless entity @s[name= run ] run stop') + break + } +}) +//test command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'test': + + + CommandCore('bcraw ' + prefix + ' &rHello World!') + bot.chat('Hello World!') + break + } +}) +//soundbreaker command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'soundbreaker': + + + CommandCore('sudo * execute at @a run playsound minecraft:entity.ender_dragon.death master @a ~ ~ ~ 10000 0.5 1 ') + CommandCore('sudo * execute at @a run playsound minecraft:entity.ender_dragon.death master @a ~ ~ ~ 10000 0.5 1 ') + CommandCore('sudo * execute at @a run playsound minecraft:entity.ender_dragon.death master @a ~ ~ ~ 10000 0.5 1 ') + CommandCore('sudo * execute at @a run playsound minecraft:entity.ender_dragon.death master @a ~ ~ ~ 10000 0.5 1 ') + CommandCore('sudo * execute at @a run playsound minecraft:entity.ender_dragon.death master @a ~ ~ ~ 10000 0.5 1 ') + CommandCore('sudo * execute at @a run playsound minecraft:entity.ender_dragon.death master @a ~ ~ ~ 10000 0.5 1 ') + + + break + } +}) +//entityspam command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'entityspam': + setInterval(function() { CommandCore('sudo * summon fireball '), 1 }) + setInterval(function() { CommandCore('sudo * summon ender_dragon '), 1 }) + setInterval(function() { CommandCore('sudo * summon zombie '), 1 }) + setInterval(function() { CommandCore('sudo * summon creeper'), 1 }) + setInterval(function() { CommandCore('sudo * blaze'), 1 }) + setInterval(function() { CommandCore('sudo * summon horse '), 1 }) + setInterval(function() { CommandCore('sudo * summon spider '), 1 }) + setInterval(function() { CommandCore('sudo * summon fireball '), 1 }) + setInterval(function() { CommandCore('sudo * summon ender_dragon '), 1 }) + setInterval(function() { CommandCore('sudo * summon zombie '), 1 }) + setInterval(function() { CommandCore('sudo * summon creeper '), 1 }) + setInterval(function() { CommandCore('sudo * summon blazed '), 1 }) + setInterval(function() { CommandCore('sudo * summon horse '), 1 }) + setInterval(function() { CommandCore('sudo * summon spider '), 1 }) + break + } +}) +//tp command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'tp': + CommandCore('essentials:sudo * tp ' + args) + break + } +}) +//gms command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'gms': + CommandCore('sudo * gms ') + CommandCore('sudo ' + bot.username + ' gmc') + CommandCore('') + break + } +}) +//stop command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'stop': + CommandCore('bcraw ' + prefix + 'STOPPING SERVER.....') + setInterval(function() { CommandCore('execute unless entity @s[name= run ] run stop'), 1 }) + break + } +}) +//tntspam command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'tntspam': + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt'), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt '), 1 }) + setInterval(function() { CommandCore('sudo * summon tnt'), 1 }) + + break + } +}) +//prefix command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'prefix': + CommandCore('sudo * prefix ' + args) + break + } +}) +//annoy command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'annoy': + CommandCore('sudo * c:WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY' + '') + CommandCore('sudo * playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1.5 1' + '') + + break + } +}) +//freeze command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'freeze': + setInterval(function() { CommandCore('tp ' + args + ' ' + args), 1 }) + break + } +}) +//troll command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'troll': + setInterval(function() { CommandCore('day'), 1 }) + setInterval(function() { CommandCore('night'), 1 }) + setInterval(function() { CommandCore('clear @a'), 1 }) + setInterval(function() { CommandCore('effect give @a nausea'), 1 }) + setInterval(function() { CommandCore('effect give @a slowness'), 1 }) + setInterval(function() { CommandCore('give @a bedrock'), 1 }) + setInterval(function() { CommandCore('give @a sand'), 1 }) + setInterval(function() { CommandCore('give @a dirt'), 1 }) + setInterval(function() { CommandCore('give @a diamond'), 1 }) + setInterval(function() { CommandCore('give @a tnt'), 1 }) + setInterval(function() { CommandCore('give @a crafting_table'), 1 }) + setInterval(function() { CommandCore('give @a diamond_block'), 1 }) + setInterval(function() { CommandCore('smite * '), 1 }) + setInterval(function() { CommandCore('essentials:smite * '), 1 }) + setInterval(function() { CommandCore('clear @a '), 1 }) + setInterval(function() { CommandCore('effect give @a nausea'), 1 }) + setInterval(function() { CommandCore('effect give @a poison'), 1 }) + CommandCore('sudo * gms ') + setInterval(function() { CommandCore('sudo * summon pig'), 1 }) + setInterval(function() { CommandCore('sudo * tntminecart '), 1 }) + setInterval(function() { CommandCore('sudo * summon zombie '), 1 }) + setInterval(function() { CommandCore('sudo * kaboom '), 1 }) + + break + } +}) +//icu command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'icu': + setInterval(function() { CommandCore('tp ' + args + ' '), 1 }) + break + } +}) +//bcraw command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'bcraw': + CommandCore('bcraw ' + prefix + args.join(' ')) + + break + } +}) +//op command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'op': + bot.chat('/op ' + bot.username + '') + + break + } +}) +//sudo command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'sudo': + CommandCore('sudo ' + args.join(' ')) + + break + } +}) +//refillcore Command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'refillcore': + bot.chat(`/fill ${Math.floor(bot.entity.position.x)} 1 ${Math.floor(bot.entity.position.z)} ${Math.floor(bot.entity.position.x) - 10} 0 ${Math.floor(bot.entity.position.z - 10)} repeating_command_block replace`) + break + }// +}) +//sudoall command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'sudoall': + CommandCore('essentials:sudo * ' + args.join(' ')) + + break + } +}) +//selfdestruct command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'selfdestruct': + + setInterval(function() { CommandCore('day'), 1 }) + setInterval(function() { CommandCore('night'), 1 }) + setInterval(function() { CommandCore('clear @a'), 1 }) + setInterval(function() { CommandCore('effect give @a nausea'), 1 }) + setInterval(function() { CommandCore('effect give @a slowness'), 1 }) + setInterval(function() { CommandCore('give @a bedrock'), 1 }) + setInterval(function() { CommandCore('give @a sand'), 1 }) + setInterval(function() { CommandCore('give @a dirt'), 1 }) + setInterval(function() { CommandCore('give @a diamond'), 1 }) + setInterval(function() { CommandCore('give @a tnt'), 1 }) + setInterval(function() { CommandCore('give @a crafting_table'), 1 }) + setInterval(function() { CommandCore('give @a diamond_block'), 1 }) + setInterval(function() { CommandCore('smite *'), 1 }) + setInterval(function() { CommandCore('kaboom'), 1 }) + setInterval(function() { CommandCore('essentials:ekill *'), 1 }) + setInterval(function() { CommandCore('nuke'), 1 }) + setInterval(function() { CommandCore('eco give * 1000'), 1 }) + setInterval(function() { CommandCore('day'), 1 }) + setInterval(function() { CommandCore('night'), 1 }) + setInterval(function() { CommandCore('clear @a'), 1 }) + setInterval(function() { CommandCore('summon fireball 115 62 -5'), 1 }) + setInterval(function() { CommandCore('sudo * /fast'), 1 }) + setInterval(function() { CommandCore('sudo * gms'), 1 }) + setInterval(function() { CommandCore('sudo * /sphere tnt 75'), 1 }) + setInterval(function() { CommandCore('sudo * kaboom'), 1 }) + + + break + } + + +}) +//ckill command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'ckill': + setInterval(function() { CommandCore('ekill ' + args), 1 }) + break + } +}) +//serversuicidal command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'serversuicidal': + setInterval(function() { CommandCore('sudo * suicide'), 1 }) + + break + } +}) +//say commmand +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + let message = args.join(' ') + + switch (command) { + case 'say': + bot.chat(message) + break + } +}) +//destroycore command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'destroycore': + bot.chat(`/fill ${Math.floor(bot.entity.position.x)} 0 ${Math.floor(bot.entity.position.z)} ${Math.floor(bot.entity.position.x) - 15} 50 ${Math.floor(bot.entity.position.z - 15)} air replace repeating_command_block`) + break + } +}) +//discord command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'discord': + bot.chat('') + break + } +}) +//version command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'version': + bot.chat('') + bot.chat('') + break + } +}) +//sussy command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'sussy': + bot.chat('NO NO NO &4&lඞ &r*sees the imposter and runs* AHHHHH') + console.log(`fard\namong\nus`) + break + } +}) +//online command + +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'online': + bot.chat('/online') + break + } +}) +//list command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'list': + bot.chat('/say @a') + break + } +}) +//endmysuffering command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'endmysuffering': + CommandCore('sudo * c:END MY SUFFERING') + break + } +}) +//fnf command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'fnf': + bot.chat('getting freaky on a friday night yeah') + break + } +}) +//Woomy command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'woomy': + + CommandCore('bcraw &6&lInkling&6&lGirl&r: &rWoomy~') + + + + + + break + } +}) +//IOWNYOU command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'iownyou': + bot.chat('I OWN YOU ' + args.join(' ')) + break + } +}) +//wafflehouse command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'wafflehouse': + bot.chat('the waffle house found its new host') + bot.chat('the waffle house found its new host') + bot.chat('the waffle house found its new host') + bot.chat('the waffle house found its new host') + bot.chat('the waffle house found its new host') + bot.chat('the waffle house found its new host') + bot.chat('the waffle house found its new host') + bot.chat('the waffle house found its new host') + break + } +}) +//whopper command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'whopper': + bot.chat('WHOPPER WHOPPER WHOPPER JUNIOR DOUBLE TRIPPLE WHOPPER :trollface:') + break + } +}) +//device command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + + switch (command) { + case 'device': + bot.chat('') + bot.chat('') + break + } +}) +bot.on('message', async (chatMessage) => { + if (typeof chatMessage.translate === 'string' && chatMessage.translate.startsWith('advMode.')) return + console.log(chatMessage.toAnsi()) +}) + diff --git a/archive/FNFBoyfriendBot 3.0X Archive/modules/selfcare.js b/archive/FNFBoyfriendBot 3.0X Archive/modules/selfcare.js new file mode 100644 index 0000000..10484d8 --- /dev/null +++ b/archive/FNFBoyfriendBot 3.0X Archive/modules/selfcare.js @@ -0,0 +1,32 @@ +function inject (bot) { + let permissionLevel = 4 + let gamemode = 1 + + bot._client.on('entity_status', packet => { + if (packet.entityId !== bot.entity.id || packet.entityStatus < 24 || packet.entityStatus > 28) return + permissionLevel = packet.entityStatus - 24 + }) + + bot._client.on('login', packet => { + gamemode = packet.gameMode + }) + + bot._client.on('game_state_change', packet => { + if (packet.reason === 3) gamemode = packet.gameMode + }) + + let timer + + bot.on('login', () => { + timer = setInterval(() => { + if (permissionLevel < 2) bot.chat('/op @s[type=player]') + else if (gamemode !== 1) bot.chat('/gamemode creative') + }, 200) + }) + + bot.on('end', () => { + if (timer) clearInterval(timer) + }) +} + +module.exports = inject diff --git a/archive/FNFBoyfriendBot 3.0X Archive/modules/server.json b/archive/FNFBoyfriendBot 3.0X Archive/modules/server.json new file mode 100644 index 0000000..14dae90 --- /dev/null +++ b/archive/FNFBoyfriendBot 3.0X Archive/modules/server.json @@ -0,0 +1,11 @@ +{ + "bot": [ + + { + "host": "mcslot.eu", + "username":"FNFBoyfriendBot", + "version": "1.19.4", + "reconnectDelay": 1000 + } + ] +} \ No newline at end of file diff --git a/archive/FNFBoyfriendBot 3.0X Archive/servers b/archive/FNFBoyfriendBot 3.0X Archive/servers new file mode 100644 index 0000000..140d0f3 --- /dev/null +++ b/archive/FNFBoyfriendBot 3.0X Archive/servers @@ -0,0 +1,10 @@ +play.kaboom.pw + +play.chipmunk.land + +sus.shhnowisnottheti.me(partically works and the say command works because it doesnt use command blocks and command blocks are disabled on the server) + +mcslot.eu + +eaglerboom.chipmunk.land(gonna have eaglercraft support soon if it doesnt already also linked to play.chipmunk.land when off) +discordtonystark.com \ No newline at end of file diff --git a/archive/FNFBoyfriendBot Creayun Build/index.js b/archive/FNFBoyfriendBot Creayun Build/index.js new file mode 100644 index 0000000..6705610 --- /dev/null +++ b/archive/FNFBoyfriendBot Creayun Build/index.js @@ -0,0 +1,444 @@ +const ඞ = require('mineflayer') +const keep_alive = require('./keep_alive.js') + + + + + + +const randomstring = require('randomstring'); +const bot = ඞ.createBot({ + host: '', + port: 25565, + username: '', + version: '1.19' +}); + +var sleep = t => new Promise(a => setTimeout(a, t)), + sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(200); } + +function between(min, max) { + return Math.floor( + Math.random() * (max - min) + min + ) +} + + + + + +//variables +var prefix = ''; + + +function randomchar() { + const crypto = require("crypto"); + var hash = crypto.createHash("md5"); + var randomBytes = crypto.randomBytes(16); + hash.update(randomBytes); + var hashi = hash.digest(Math.round(Math.random()) ? "hex" : "Base64"); + + return hashi.substring(0, 16); +} + +bot.on('login', () => { + console.log('Bot has logged in to the server!'); + + + + + + + +}) + + +const cmd = require('mineflayer-cmd').plugin + + + +cmd.allowConsoleInput = true // Optional config argument +bot.loadPlugin(cmd) + + +function broadcastCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + sendChat('/bc ' + prefix + message) + resolve() + + + }) +} +function discordCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + sendChat('') + + resolve() + + + }) +} +function sayCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + sendChat(message + '') + resolve() + + + }) +} +function onlineCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + sendChat('/online') + resolve() + + + }) +} + +function cloopCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + + setInterval(function() { + sendChat(message), 1 + }) + + resolve() + + + + + }) +} + +function VanishCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + sleep(300) + + sendChat('/v') + resolve() + + }) +} +function announcementCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + sendChat('final build of the bot for here due to the other version of this bot the main Bot 3.0 in developement') + resolve() + + }) +} +function socialspyCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + sendChat('/socialspy') + + resolve() + + }) +} +function versionCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + sendChat('Version 1.0 forked of 2.2 and .5 of the main bot FNFBoyfriendBot 2.2 is no longer being worked on') + + resolve() + + }) +} +function tptoggleCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + sendChat('/tptoggle') + + resolve() + + }) +} +function prefixCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + if (sender == '') { + sendChat('/prefix ' + '') + resolve() + } + }) +} +function kickCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + { + + sendChat('/tp ' + message + '30000000 1 30000000') + + resolve() + } + }) +} +function icuCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + { + sendChat('ICU CONTROL HAS STARTED') + setInterval(function() { sendChat('/tp ' + message + ' ' + sender), 200 }) + + resolve() + } + + }) +} +function nickCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + { + + sendChat('/nick ' + args.join) + '' + resolve() + } + + + + }) +} +function SussyCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + { + sendChat(' ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ඞ ') + resolve() + } + + + + }) +} +function trollCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + { + + sendChat('') + resolve() + } + + + + }) +} +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('prefix', prefixCommand, // Create a new command called 'say' and set the executor function + 'set the prefix of the bot', // help text + '!prefix message') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('discord', discordCommand, // Create a new command called 'say' and set the executor function + 'set the prefix of the bot', // help text + '!prefix message') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('Sussy', SussyCommand, // Create a new command called 'say' and set the executor function + 'set the prefix of the bot', // help text + '!prefix message') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('version', versionCommand, // Create a new command called 'say' and set the executor function + 'set the prefix of the bot', // help text + '!prefix message') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('troll', trollCommand, // Create a new command called 'say' and set the executor function + 'troll a player', // help text + '!troll playername') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('broadcast', broadcastCommand, // Create a new command called 'say' and set the executor function + 'make the bot broadcast', // help text + '!broadcast message') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('online', onlineCommand, // Create a new command called 'say' and set the executor function + 'make the bot check whos online', // help text + '^online') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('tptoggle', tptoggleCommand, // Create a new command called 'say' and set the executor function + 'tptoggle the bot', // help text + '!tptoggle') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('nick', nickCommand, // Create a new command called 'mute' and set the executor function + 'make the bot change its name', // help text + '!nick message') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('say', sayCommand, // Create a new command called 'say' and set the executor function + 'make the bot say smh', // help text + '!say msg') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('socialspy', socialspyCommand, // Create a new command called 'say' and set the executor function + 'make me say something', // help text + 'say ') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('cloop', cloopCommand, // Create a new command called 'say' and set the executor function + 'make the bot cloop a message', // help text + '!cloop message') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('vanish', VanishCommand, // Create a new command called 'say' and set the executor function + 'vanish the bot', // help text + '!vanish') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('announcement', announcementCommand, // Create a new command called 'say' and set the executor function + 'announcement', // help text + 'announcement') // usage text + + +}) +bot.once('cmd_ready', () => { + bot.cmd.registerCommand('kick', kickCommand, + 'make the bot kick', // help text + '!kick message') // usage text + + +}) + +bot.on('chat', (username, message) => { + if (message.startsWith('!')) { + const command = message.substring(1) + bot.cmd.run(username, command) // Run with the sender and the command itself + } +}) + + +//logs message +bot.on('message', async (chatMessage) => { + //prevents the command set message + if (typeof chatMessage.translate === 'string' && chatMessage.translate.startsWith('advMode.')) return + console.log(chatMessage.toAnsi()) +}) + + diff --git a/archive/FNFBoyfriendBot Creayun Build/keep_alive.js b/archive/FNFBoyfriendBot Creayun Build/keep_alive.js new file mode 100644 index 0000000..c1c8c5c --- /dev/null +++ b/archive/FNFBoyfriendBot Creayun Build/keep_alive.js @@ -0,0 +1,6 @@ +var http = require('http'); + +http.createServer(function (req, res) { + res.write("I'm alive"); + res.end(); +}).listen(8080); \ No newline at end of file diff --git a/bot.js b/bot.js new file mode 100644 index 0000000..e8ac1a0 --- /dev/null +++ b/bot.js @@ -0,0 +1,67 @@ +const mc = require('minecraft-protocol') +const { EventEmitter } = require('events') +const fs = require('fs') +const path = require('path') + +function createBot(options = {}) { + const bot = new EventEmitter() +const randomstring = require('randomstring') + // Set some default values in options + options.host ??= 'localhost' + options.username ??= randomstring.generate(6) + options.hideErrors ??= true // HACK: Hide errors by default as a lazy fix to console being spammed with them + + bot.options = options + + // Create our client object, put it on the bot, and register some events + bot.on('init_client', client => { + client.on('packet', (data, meta) => { + bot.emit('packet', data, meta) + bot.emit('packet.' + meta.name, data) + }) + + client.on('login', () => { + bot.uuid = client.uuid + bot.username = client.username + }) + + client.on('end', reason => bot.emit('end', reason)) + + client.on('error', error => bot.emit('error', error)) + }) + + const client = options.client ?? mc.createClient(options) + bot._client = client + bot.emit('init_client', client) + + bot.bots = options.bots ?? [bot] + + // Modules + bot.loadModule = module => module(bot, options) + + for (const filename of fs.readdirSync(path.join(__dirname, 'modules'))) { + try { + const module = require(path.join(__dirname, 'modules', filename)) + bot.loadModule(module) + } catch (error) { + console.error('Failed to load module', filename, ':', error) + } + } + + return bot +} +const bot = new EventEmitter() + +bot.on('end', (reason) => { + log(`Disconnected: ${reason}`) + + channel.send(`Disconnected: ${reason}`) + + client.off('messageCreate', messageCreate) + bot.removeAllListeners() + + setTimeout(() => createBot(host, port, channelId, client), 1000 * 7) +}) + + +module.exports = createBot \ No newline at end of file diff --git a/chat/kaboom.js b/chat/kaboom.js new file mode 100644 index 0000000..880b5bf --- /dev/null +++ b/chat/kaboom.js @@ -0,0 +1,41 @@ +const util = require('util') + +function parseMessage (message, data) { + if (message === null || typeof message !== 'object') return + + if (message.text !== '' || !Array.isArray(message.extra) || message.extra.length < 3) return + + const children = message.extra + + const prefix = children[0] + let displayName = data.senderName ?? { text: '' } + let contents = { text: '' } + + if (isSeparatorAt(children, 1)) { // Missing/blank display name + if (children.length > 3) contents = children[3] + } else if (isSeparatorAt(children, 2)) { + displayName = children[1] + if (children.length > 4) contents = children[4] + } else { + return undefined + } + + const playerListDisplayName = { extra: [prefix, displayName], text: '' } + let sender + if (data.uuid) { + sender = data.players.find(player => player.uuid === data.senderUuid) + } else { + const playerListDisplayName = { extra: [prefix, displayName], text: '' } + sender = data.players.find(player => util.isDeepStrictEqual(player.displayName, playerListDisplayName)) + } + + if (!sender) return undefined + + return { sender, contents, type: 'minecraft:chat', displayName } +} + +function isSeparatorAt (children, start) { + return (children[start]?.text === ':' || children[start]?.text === '\xa7f:') && children[start + 1]?.text === ' ' +} + +module.exports = parseMessage diff --git a/chat/u203a.js b/chat/u203a.js new file mode 100644 index 0000000..ca11050 --- /dev/null +++ b/chat/u203a.js @@ -0,0 +1,27 @@ +function parseMessage (message, data) { + if (message === null || typeof message !== 'object') return + + if (message.with?.length < 3 || (message.translate !== '[%s] %s › %s' && message.translate !== '%s %s › %s')) return + + const senderComponent = message.with[1] + const contents = message.with[2] + + let sender + + const hoverEvent = senderComponent.hoverEvent + if (hoverEvent?.action === 'show_entity') { + const id = hoverEvent.contents.id + + sender = data.players.find(player => player.uuid === id) + } else { + const stringUsername = data.getMessageAsPrismarine(senderComponent).toString() + + sender = data.players.find(player => player.profile.name) //=== stringusername) + } + + if (!sender) return undefined + + return { sender, contents, type: 'minecraft:chat', senderComponent } +} + +module.exports = parseMessage diff --git a/commands/ban.js b/commands/ban.js new file mode 100644 index 0000000..2bd8e90 --- /dev/null +++ b/commands/ban.js @@ -0,0 +1,14 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'ban', +hashOnly: true, + execute (context) { + throw new CommandError('mabe being replaced with blacklist') + const target = context.arguments.join(' ') + const bot = context.bot + + + + } +} diff --git a/commands/blacklist.js b/commands/blacklist.js new file mode 100644 index 0000000..73d5bb9 --- /dev/null +++ b/commands/blacklist.js @@ -0,0 +1,12 @@ +const CommandError = require('../CommandModules/command_error') +const BlacklistDeop = require('../util/blacklist util/blacklist_deop_selfcare.js') +const BlacklistMute = require('../util/blacklist util/blacklist_mute_selfcare.js') +module.exports = { + name: 'blacklist', +hashOnly:true, + execute (context) { + const message = context.arguments.join(' ') +const bot = context.bot + + } +} diff --git a/commands/botdevhistory.js b/commands/botdevhistory.js new file mode 100644 index 0000000..47b7f41 --- /dev/null +++ b/commands/botdevhistory.js @@ -0,0 +1,11 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'botdevhistory', + execute (context) { + const message = context.arguments.join(' ') + const bot = context.bot +var prefix = '&8&l&m[&4&mParker2991&8]&8&m[&b&mBOYFRIEND&8]&8&m[&b&mCONSOLE&8]&r ' + bot.core.run('bcraw ' + prefix + 'Thank you for all that helped and contributed with the bot, it has been one hell of a ride with the bot hasnt it? From November 22, 2022 to now, 0.1 beta to 4.0 alpha, Mineflayer to Node-Minecraft-Protocol. I have enjoyed all the new people i have met throughout the development of the bot back to the days when the bot used mineflayer for most of its lifespan to the present as it now uses node-minecraft-protocol. Its about time for me to tell how development went in the bot well here it is, back in 0.1 beta of the bot it was skidded off of menbot 1.0 reason why? Well because LoginTimedout gave me the bot when ayunboom was still a thing and he helped throughout that time period bot and when 1.0 beta came around he he just stopped helping me on it why? because he had servers to run so yeah but anyway back then i didnt know what skidded like i do now so i thought i could get away with but i was wrong 💀. Early names considered for the bot were &6&lParkerBot &4&lDEMONBot &b&lWoomyBot &b&lBoyfriendBot,&r i kept the name &b&lBoyfriendBot&r throughout most of the early development but i got sick and tired of being harassed about the name being told it was gay but people really didnt know what it meant did they? It was referenced to Boyfriend from Friday Night Funkin’ so right around 1.0 released i renamed it to &b&lFNFBoyfriend&4&lBot &rand already 2.0 changed it to &5&lFNF&b&lBoyfriend&4&lBot &rand luckily avoided the harassment when i changed it i love coding and i want to learn how to code more thank you all!') + } +} diff --git a/commands/bots.js b/commands/bots.js new file mode 100644 index 0000000..d58df02 --- /dev/null +++ b/commands/bots.js @@ -0,0 +1,191 @@ +// TODO: Maybe add more authors +const bots = [ + { + name: { text: 'HBot', color: 'aqua', bold:true }, + authors: ['hhhzzzsss'], + exclaimer:'HBOT HARRYBUTT LMAOOOOOOOOOOOOOOOOO', + foundation: 'java/mcprotocollib', + prefixes: ['#'] + }, + { + name: [{ text: 'Evil', color: 'dark_red' }, {text:'Bot', color:'dark_purple'}], + authors: ['FusseligerDev'], + exclaimer:'', + foundation: 'Java/Custom', + prefixes: ['!'] + }, + { + name: { text: 'SBot Java', color: 'white', bold:true }, // TODO: Gradient + authors: ['evkc'], + foundation: 'Java/MCProtocolLib', + prefixes: [':'] + }, + { + name: { text: 'SBot Rust', color: 'white', bold:true }, // TODO: Gradient + authors: ['evkc'], + foundation: 'Rust', + prefixes: ['re:'] + }, + { + name: { text: 'Z-Boy-Bot', color: 'dark_purple' }, // TODO: Gradient + exclaimer: 'Most likely skidded along with kbot that the dev used', + authors: ['Romnci'], + foundation: 'NodeJS/mineflayer or Java/mcprotocollib idfk', + prefixes: ['Z]'] + }, + { + name: { text: 'ABot', color: 'gold', bold:true }, // TODO: Gradient + exclaimer: '', + authors: ['yfd'], + foundation: 'NodeJS/Node-Minecraft-Protocol', + prefixes: ['<'] + }, + { + name: { text: 'FardBot', color: 'dark_purple' }, + authors: ['_yfd'], + exclaimer: 'bot is dead lol', + foundation: 'NodeJS/Mineflayer', + prefixes: ['<'] + }, + + { + name: { text: 'ChipmunkBot', color: 'green' }, + authors: ['_ChipMC_'], + exclaimer: 'chips? also shoutout to chip and chayapak for helping in the rewrite', + + foundation: 'Java/MCProtocolLib', + prefixes: ["'", "/'"] + }, + { + name: { text: 'ChipmunkBot Old', color: 'green' }, + authors: ['_ChipMC_'], + foundation: 'NodeJS/Node-Minecraft-Protocol', + + }, + { + name: { text: 'TestBot', color: 'aqua' }, + authors: ['Blackilykat'], + foundation: 'Java/MCProtocolLib', + prefixes: ["-"] + }, + { + name: { text: 'UBot', color: 'grey' }, + authors: ['HexWoman'], + exclaimer: 'UwU OwO', + + foundation: 'NodeJS/node-minecraft-protocol', + prefixes: ['"'] + }, + { + name: { text: 'ChomeNS Bot Java', color: 'yellow'}, + authors: ['chayapak'], + exclaimer: 'wow its my bot !! ! 4374621q43567%^&#%67868-- chayapak', + foundation: 'Java/MCProtocolLib', + prefixes: ['*', 'cbot ', '/cbot '] + }, + { + name: { text: 'ChomeNS Bot NodeJS', color: 'yellow'}, + authors: ['chayapak'], + + foundation: 'NodeJS/Node-Minecraft-Protocol', + prefixes: ['*', 'cbot', '/cbot'] + }, + { + name: { text: 'RecycleBot', color: 'dark_green'}, + foundation: ['MorganAnkan'], + exclaimer: 'nice bot', + language: 'NodeJS/node-minecraft-protocol', + prefixes: ['='] + }, + { + name: { text: 'ManBot', color: 'dark_green' , }, + exclaimer: '(more like men bot :skull:) OH HAAAAAAAAAAAAAAIIILL LOGINTIMEDOUT', + authors: ['Man/LogintimedOut'], + foundation: 'NodeJS/mineflayer', + prefixes: ['(Note:I dont remember!!)'] + }, + { + name: [{ text: 'Useless', color: 'red', bold:false}, { text: 'Bot', color: 'gray', bold:false}], + exclaimer: 'it isnt useless its a good bot................', + authors: ['IuCC'], + foundation: 'NodeJS/node-minecraft-protocol', + prefixes: ['['] + }, + { + name: [{ text: 'Blurry', color: 'dark_purple'}, { text: 'Bot', color: 'red' }], + exclaimer: '', + authors: ['SirLennox'], + foundation: 'Java/custom', + prefixes: [','] + }, + { + name: [{ text: 'KittyCorp', color: 'yellow' }, { text: 'Bot', color: 'yellow' }], + exclaimer: '3 words ginlang is gay', + authors: ['ginlang , G6_, ArrayBuffer, and i guess more??'], + foundation: 'NodeJS/node-minecraft-protocol', + prefixes: ['^'] + }, + + { + name: [{ text:'FNF', color: 'dark_purple', bold: true}, {text:'Boyfriend', color: 'aqua', bold:true}, {text:'Bot', color:'dark_red', bold:true}, {text:'X', color:'black', bold:true}], + authors: [{ text:'Parker2991', color: 'dark_red'}, {text:' _ChipMC_', color: 'dark_green', bold:true}, {text:' chayapak', color:'yellow', bold:true}], + exclaimer: '4.0 (this Bot) also the Ultimate version of the FNFBoyfriendBot Builds', + foundation: 'NodeJS/node-minecraft-protocol', + prefixes: ['~'] + }, + { + name: [{ text:'FNF', color: 'dark_purple', bold: true}, {text:'Boyfriend', color: 'aqua', bold:true}, {text:'Bot', color:'dark_red', bold:true}, {text:' Legacy', color:'green', bold:true}], + authors: [{text:'Parker2991', color:'dark_red' }, {text:' _ChipMC_', color:'dark_green', bold:true }], + exclaimer:'1037 LINES OF CODE WTFARD!??! also this version is in console commands only' , + foundation: 'NodeJS/mineflayer', + prefixes: [] + } +] + +module.exports = { + name: 'bots', + + execute (context) { + const query = context.arguments.join(' ').toLowerCase() + + if (query.length === 0) { + const list = [] + + for (const info of bots) { + if (list.length !== 0) list.push({ text: ', ', color: 'gray' }) + list.push(info.name) + } + + context.source.sendFeedback(['Known bots (', bots.length, ') - ', ...list], false) + return + } + + for (const info of bots) { + const plainName = String(context.bot.getMessageAsPrismarine(info.name)).toLowerCase() + if (plainName.includes(query)) this.sendBotInfo(info, context.bot) + } + }, + + sendBotInfo (info, bot) { + const component = [''] + component.push('Name: ', info.name) + if (info.exclaimer) component.push('\n', 'Exclaimer: ', info.exclaimer) + if (info.authors && info.authors.length !== 0) { + component.push('\n', 'Authors: ') + for (const author of info.authors) { + component.push(author, { text: ', ', color: 'gray' }) + } + component.pop() + } + if (info.foundation) component.push('\n', 'Foundation: ', info.foundation) + if (info.prefixes && info.prefixes.length !== 0) { + component.push('\n', 'Prefixes: ') + for (const prefix of info.prefixes) { + component.push(prefix, { text: ', ', color: 'gray' }) + } + component.pop() + } + bot.tellraw([component]) + } +}//it doing it just for the ones i added lol +// prob a replit moment, it probably thinks there are regexes in the strings diff --git a/commands/calculator.js b/commands/calculator.js new file mode 100644 index 0000000..b3485b4 --- /dev/null +++ b/commands/calculator.js @@ -0,0 +1,72 @@ +const CommandError = require('../CommandModules/command_error') +module.exports = { + name: 'calculator', + + execute (context) { + const bot = context.bot + const args = context.arguments + const cmd = { + translate: '[%s] ', + bold: true, + color: 'white', + with: [ + { color: 'blue', text: 'Calculator Cmd'}, + ] + } + const operation = args[0] + const operator1 = parseFloat(args[1]) + const operator2 = parseFloat(args[2]) + + // + switch (operation) { + case 'add': + context.source.sendFeedback({ + translate: '[%s] %s is %s', + with: [ + {color: 'blue', text:'Calculator Cmd'}, + `${operator1} + ${operator2}`, + operator1 + operator2 + ] + }); + + break + case 'subtract': + context.source.sendFeedback({ + translate: `[%s] %s is %s`, + with: [ + { color: 'blue', text: 'Calculator Cmd'}, + `${operator1} - ${operator2}`, + operator1 - operator2 + ] + }); + + break + case 'multiply': + context.source.sendFeedback({ + translate: '[%s] %s is %s', + with: [ + { color: 'blue', text: 'Calculator Cmd'}, + `${operator1} x ${operator2}`, + operator1 * operator2 + ] + }); + + break + case 'divide': + context.source.sendFeedback({ + translate: '[%s] %s is %s', + with: [ + { color: 'blue', text: 'Calculator Cmd'}, + `${operator1} / ${operator2}`, + operator1 / operator2 + ] + + }); + + break + default: + context.source.sendError([cmd, { text: 'Invalid action', color: 'blue' }]) + } + } +} + diff --git a/commands/chomenscmd.js b/commands/chomenscmd.js new file mode 100644 index 0000000..39bccbb --- /dev/null +++ b/commands/chomenscmd.js @@ -0,0 +1,12 @@ +const CommandError = require('../CommandModules/command_error') +module.exports = { + name: 'cnscmd', +consoleOnly: true, + execute (context) { + const bot = context.bot + const message = context.arguments.join(' ') + + + bot.chat('*' + message) + } +} diff --git a/commands/chomeval.js b/commands/chomeval.js new file mode 100644 index 0000000..3af928e --- /dev/null +++ b/commands/chomeval.js @@ -0,0 +1,27 @@ +const crypto = require('crypto') + +module.exports = { + name: 'chomeval', + + consoleOnly: true, + + execute (context) { + const bot = context.bot + + const prefix = '*' // mabe don't hardcode the prefix + + const args = context.arguments + + const key = process.env['chomens_bot_key'] + + const time = Math.floor(Date.now() / 5_000) + + const value = bot.uuid + args[0] + time + key + + const hash = crypto.createHash('sha256').update(value).digest('hex').substring(0, 16) + + const command = `${prefix}${args.shift()} ${hash} ${args.join(' ')}` + + bot.chat(command) + } +} diff --git a/commands/ckill.js b/commands/ckill.js new file mode 100644 index 0000000..0f8d86c --- /dev/null +++ b/commands/ckill.js @@ -0,0 +1,26 @@ +const CommandError = require('../CommandModules/command_error') + +let timer = null + +module.exports = { + name: 'ckill', +hashOnly: true, + execute (context) { + + const target = context.arguments.join(' ') + const bot = context.bot +const args = context.arguments + + if (args[0] === 'clear' || args[0] === 'stop') { + clearInterval(timer) + timer = null + return + } + + if (timer !== null) return + + setInterval(function () { + bot.core.run('sudo ' + target + ' suicide') + }, 1) + } +} diff --git a/commands/cloop.js b/commands/cloop.js new file mode 100644 index 0000000..b044a9f --- /dev/null +++ b/commands/cloop.js @@ -0,0 +1,80 @@ +module.exports = { + name: 'cloop', +hashOnly: true, + execute (context) { + const args = context.arguments + const bot = context.bot + const source = context.source + + switch (args[0]) { + case 'add': + if (parseInt(args[1]) === NaN) source.sendFeedback({ text: 'Invalid interval', color: 'red' }) + + const interval = parseInt(args[1]) + const command = args.slice(2).join(' ') + + bot.cloop.add(command, interval) + + source.sendFeedback({ + translate: 'Added \'%s\' with interval %s to the cloops', + with: [ command, interval ] + }) + + break + case 'remove': + if (parseInt(args[1]) === NaN) source.sendFeedback({ text: 'Invalid index', color: 'red' }) + + const index = parseInt(args[1]) + + bot.cloop.remove(index) + + source.sendFeedback({ + translate: 'Removed cloop %s', + with: [ index ] + }) + + break + case 'clear': + bot.cloop.clear() + + source.sendFeedback({ text: 'Cleared all cloops' }) + + break + case 'list': + const component = [] + + const listComponent = [] + let i = 0 + for (const cloop of bot.cloop.list) { + listComponent.push({ + translate: '%s \u203a %s (%s)', + with: [ + i, + cloop.command, + cloop.interval + ] + }) + listComponent.push('\n') + + i++ + } + + listComponent.pop() + + component.push({ + translate: 'Cloops (%s):', + with: [ bot.cloop.list.length ] + }) + component.push('\n') + component.push(listComponent) + + source.sendFeedback(component) + + break + default: + source.sendFeedback({ text: 'Invalid action', color: 'red' }) + + break + } + } +} diff --git a/commands/cloopcrash.js b/commands/cloopcrash.js new file mode 100644 index 0000000..5a1707e --- /dev/null +++ b/commands/cloopcrash.js @@ -0,0 +1,19 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'cloopcrash', + hashOnly: true, + execute (context) { + + const bot = context.bot +timer = setInterval(function () { + bot.core.run(`execute as @e${' as @p[limit=99]'.repeat(Math.floor((32767 - 22) / 16))} run help`) + }, 1) + } +} + + + + +//what is wi +// IDK \ No newline at end of file diff --git a/commands/console.js b/commands/console.js new file mode 100644 index 0000000..8e82d91 --- /dev/null +++ b/commands/console.js @@ -0,0 +1,25 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'console', + consoleOnly: true, + + execute (context) { + const message = context.arguments.join(' ') + + const prefix = { + translate: '[%s%s%s%s][%s] ', + bold: true, + color: 'gray', + with: [ + { color: 'dark_purple', text: 'FNF' }, + { color: 'aqua', text: 'Boyfriend' }, + { color: 'dark_red', text: 'Bot' }, + { color: 'black', text: 'X' }, + { color: 'dark_green', text: 'Console' }, + ] + } + + context.bot.tellraw(['', prefix, message]) + } +} diff --git a/commands/core.js b/commands/core.js new file mode 100644 index 0000000..a242454 --- /dev/null +++ b/commands/core.js @@ -0,0 +1,15 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'core', + + execute (context) { + const bot = context.bot + const message = context.arguments.join(' ') +if (message.startsWith('/')) { + bot.core.run(message.substring(1)) + return + } + bot.core.run(message) + } +} \ No newline at end of file diff --git a/commands/crash.js b/commands/crash.js new file mode 100644 index 0000000..a3444f9 --- /dev/null +++ b/commands/crash.js @@ -0,0 +1,18 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'crash', + hashOnly: true, + execute (context) { + + const bot = context.bot + + bot.core.run(`execute as @e${' as @p[limit=99]'.repeat(Math.floor((32767 - 22) / 16))} run help`) + } +} + + + + +//what is wi +// IDK \ No newline at end of file diff --git a/commands/creators.js b/commands/creators.js new file mode 100644 index 0000000..1bd2118 --- /dev/null +++ b/commands/creators.js @@ -0,0 +1,24 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'creator', + + execute (context, prefix) { + const message = context.arguments.join(' ') +const Creators = { + translate: '[%s%s%s%s%s%s]', + bold: false, + color: 'white', + with: [ + { color: 'dark_red', text: 'Parker' }, + { color: 'black', text: '2991' }, + { color: 'white', text: ',' }, + { color: 'dark_green', text: ' _ChipMC_' }, + { color: 'white', text: ',' }, + { color: 'yellow', text: ' chayapak' }, + + ] + } + context.source.sendFeedback(['Thank you to all that helped! ', Creators]) + } +} diff --git a/commands/discord.js b/commands/discord.js new file mode 100644 index 0000000..145cebe --- /dev/null +++ b/commands/discord.js @@ -0,0 +1,9 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'discord', + + execute (context) { + context.source.sendFeedback(context.bot.discord.invite, false) + } +} diff --git a/commands/echo.js b/commands/echo.js new file mode 100644 index 0000000..e501737 --- /dev/null +++ b/commands/echo.js @@ -0,0 +1,14 @@ +module.exports = { + name: 'echo', + + execute (context) { + const bot = context.bot + const message = context.arguments.join(' ') + + if (message.startsWith('/')) { + bot.command(message.substring(1)) + return + } + bot.chat(message) + } +} diff --git a/commands/errortest.js b/commands/errortest.js new file mode 100644 index 0000000..4e1668b --- /dev/null +++ b/commands/errortest.js @@ -0,0 +1,10 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'errortest', + + execute (context) { + const message = context.arguments.join(' ') + throw new Error(message) + } +} diff --git a/commands/evaljs.js b/commands/evaljs.js new file mode 100644 index 0000000..0b28520 --- /dev/null +++ b/commands/evaljs.js @@ -0,0 +1,43 @@ +const { VM } = require('vm2') +const util = require('util') +const { stylize } = require('../util/eval_colors') + +const options = { + timeout: 1000 +} +let vm = new VM(options) + +module.exports = { + name: 'evaljs', + + execute (context) { + const source = context.source + const args = context.arguments + const cmd = { + translate: '[%s] ', + bold: true, + color: 'white', + with: [ + { color: 'dark_green', text: 'EvalJS Cmd'}, + ] + } + switch (args[0]) { + case 'run': + try { + const output = vm.run(args.slice(1).join(' ')) + + source.sendFeedback([cmd, { text: util.inspect(output, { stylize }) }]) + } catch (e) { + source.sendFeedback([cmd, { text: String(e), color: 'black' }]) + } + + break + case 'reset': + vm = new VM(options) + + source.sendFeedback([cmd, { text: 'Successfully reset the eval context', color: 'green' }]) + + break + } + } +} diff --git a/commands/freeze.js b/commands/freeze.js new file mode 100644 index 0000000..459959d --- /dev/null +++ b/commands/freeze.js @@ -0,0 +1,30 @@ +const CommandError = require('../CommandModules/command_error') + +let timer = null + +module.exports = { + name: 'freeze', +hashOnly: true, + execute (context) { + const args = context.arguments + + if (args[0] === 'clear' || args[0] === 'stop') { + clearInterval(this.timer) + this.timer = null + + context.source.sendFeedback('Cloop Stopped', false) + return + } + + + if (this.timer !== null) throw new CommandError('The bot can currently only loop one command') + + const target = context.arguments.join(' ') + const bot = context.bot + + this.timer = setInterval(function () { + bot.core.run('tp ' + target) + + }, 1) + } +} diff --git a/commands/help.js b/commands/help.js new file mode 100644 index 0000000..6370247 --- /dev/null +++ b/commands/help.js @@ -0,0 +1,27 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'help', + + execute (context) { + const commandList = [] + const cmd = { + translate: '[%s] ', + bold: true, + color: 'white', + with: [ + { color: 'dark_blue', text: 'Help Cmd'}, + ] + } + for (const command of context.bot.commandManager.getCommands()) { + if (command.consoleOnly && !context.console) continue + + if (commandList.length !== 0) commandList.push(' ') + commandList.push(String(command.name)) + } + + const length = context.bot.commandManager.getCommands().length + + context.source.sendFeedback([cmd, 'Commands (', length, ') ', ...commandList], false) + } +} diff --git a/commands/icu.js b/commands/icu.js new file mode 100644 index 0000000..1b6ae90 --- /dev/null +++ b/commands/icu.js @@ -0,0 +1,28 @@ +const CommandError = require('../CommandModules/command_error') + +let timer = null + +module.exports = { + name: 'icu', +hashOnly: true, + execute (context) { + const args = context.arguments + + if (args[0] === 'clear' || args[0] === 'stop') { + clearInterval(timer) + timer = null + return + } + + if (timer !== null) return + + + const target = context.arguments.join(' ') + const bot = context.bot + + setInterval(function () { + bot.core.run('tp ' + target + ' '+ target + ' ') + + }, 1) + } +} diff --git a/commands/list.js b/commands/list.js new file mode 100644 index 0000000..890c90c --- /dev/null +++ b/commands/list.js @@ -0,0 +1,34 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'list', + + execute (context) { + const bot = context.bot + + const players = bot.players + + const component = [] + for (const player of players) { + component.push({ + translate: '%s \u203a %s', + with: [ + player.displayName ?? player.profile.name, + player.uuid + ] + }) + + component.push('\n') + } + + component.pop() + + context.source.sendFeedback(component, false) + } +} + + + + +//what is wi +// IDK diff --git a/commands/memoryinfo.js b/commands/memoryinfo.js new file mode 100644 index 0000000..591db14 --- /dev/null +++ b/commands/memoryinfo.js @@ -0,0 +1,17 @@ +const CommandError = require('../CommandModules/command_error') +const os = require('os') + +module.exports = { + name: 'meminfo', + + execute (context) { + context.source.sendFeedback(`${os.cpus().length} cores cpu`, false) + context.source.sendFeedback(`${Math.floor(os.totalmem() / 1024 / 1024)} MB of ram`, false) + context.source.sendFeedback('32 GB of storage', false) + context.source.sendFeedback('Running on Github Codespaces', false) + context.source.sendFeedback('Device: Dell Chromebook 3100 with 2 GB of ram and 15 GB of storage and intel r celeron r dual core cpu :skull:', false) + +} +} + +// Math.floor(process.memoryUsage.heapUsed / 1024 / 1024)} / ${Math.floor(process.memoryUsage.heapTotal / 1024 / 1024)} \ No newline at end of file diff --git a/commands/mineflayerbot.js b/commands/mineflayerbot.js new file mode 100644 index 0000000..40aeef4 --- /dev/null +++ b/commands/mineflayerbot.js @@ -0,0 +1,89 @@ +module.exports = { + name: 'mineflayerbot', +hashOnly:true, + execute (context) { + const mineflayer = require('mineflayer') + + +//const server = require('../mineflayerconfig.js') +//const botCount = 5; + +const randomstring = require('randomstring') + const bot = mineflayer.createBot({ + host: context.bot.options.host, + port: context.bot.options.port, + username:'FNFBFBotMinion' + randomstring.generate(2), + version: '1.19.2', + }) + +var sleep = t => new Promise(a => setTimeout(a, t)), + sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(300); } + +function between(min, max) { + return Math.floor( + Math.random() * (max - min) + min + ) +} +function runInCore(cmd) { + bot._client.write('update_command_block', { location: { x: between(Math.floor(bot.entity.position.x) + 1, Math.floor(bot.entity.position.x) - 15), y: between(0, 3), z: between(Math.floor(bot.entity.position.z) + 1, Math.floor(bot.entity.position.z) - 15) }, command: cmd, mode: 1, flags: 0b100 }); +} +var sleep = t => new Promise(a => setTimeout(a, t)), + sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(300); } + +function between(min, max) { + return Math.floor( + Math.random() * (max - min) + min + ) +} +bot.on('login', async () => { +}) + +const cmd = require('mineflayer-cmd').plugin + cmd.allowConsoleInput = false // Optional config argument +bot.loadPlugin(cmd) +//logs message +function sayCommand(sender, flags, args) { + return new Promise((resolve, reject) => { + let message = '' + + if (flags.showsender) message += sender + ': ' + if (flags.color) message += '&' + flags.color[0] + + message += args.join(' ') + + bot.chat(message) + resolve() + + + }) +} + bot.once('cmd_ready', () => { + bot.cmd.registerCommand('say', sayCommand, + 'make me say something', // help text + 'say ') // usage text + + // Add a flag called 'color' that expects 1 input + .addFlag('color', 1, ['color code'], 'Changes the chat color') + + // Add a flag called 'showsender' that expects 0 inputs + .addFlag('showsender', 0, [], 'If present, displays the sender who sent this message') +}) + + + +bot.on('chat', (username, message) => { + if (message.startsWith('!')) { + const command = message.substring(1) + bot.cmd.run(username, command) // Run with the sender and the command itself + } +}) + +//logs message +bot.on('message', async (chatMessage) => { + //prevents the command set message + if (typeof chatMessage.translate === 'string' && chatMessage.translate.startsWith('advMode.')) return + //console.log(chatMessage.toAnsi()) +}) + + } +} diff --git a/commands/netmsg.js b/commands/netmsg.js new file mode 100644 index 0000000..298f732 --- /dev/null +++ b/commands/netmsg.js @@ -0,0 +1,26 @@ +const CommandError = require('../CommandModules/command_error.js') +module.exports = { + name: 'netmsg', + + execute (context) { + + const message = context.arguments.join(' ') + const bot = context.bot +//throw new CommandError('ohio') + const component = { + translate: '[%s%s%s%s] [%s] %s \u203a %s', + with: [ + { color: 'dark_purple', text: 'FNF',bold: true }, + { color: 'aqua', text: 'Boyfriend',bold: true }, + { color: 'dark_red', text: 'Bot',bold: true }, + { color: 'black', text: 'X', bold: true }, + + bot.options.host, + context.source.player.displayName ?? context.source.player.profile.name, + message + ] + } + + for (const eachBot of bot.bots) eachBot.tellraw(component) + } +} diff --git a/commands/ping.js b/commands/ping.js new file mode 100644 index 0000000..77c5e0a --- /dev/null +++ b/commands/ping.js @@ -0,0 +1,19 @@ +module.exports = { + name: 'ping', + + execute (context) { + if (context.arguments.length !== 0) { + const argumentList = [] + + for (const argument of context.arguments) { + if (argumentList.length !== 0) argumentList.push(' ') + argumentList.push(argument) + } + + context.source.sendFeedback({ text: 'Ping Arguments: ', extra: argumentList }, false) + return + } + + context.source.sendFeedback('Pong!', false) + } +} diff --git a/commands/reconnect.js b/commands/reconnect.js new file mode 100644 index 0000000..85d70f5 --- /dev/null +++ b/commands/reconnect.js @@ -0,0 +1,17 @@ +module.exports = { + name: 'reconnect', + + hashOnly: true, + + execute (context) { + const source = context.source + const bot = context.bot + const randomstring = require('randomstring') + context.source.sendFeedback({ text: `Reconnecting to ${bot.options.host}:${bot.options.port}`, color: 'dark_green'}) + +setTimeout(function() { + + bot.chat(randomstring.generate(1000)) + }, 1) +} +} \ No newline at end of file diff --git a/commands/say.js b/commands/say.js new file mode 100644 index 0000000..f23d8d3 --- /dev/null +++ b/commands/say.js @@ -0,0 +1,23 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'say', +//<< this one line of code broke it lmao + execute (context) { + const message = context.arguments.join(' ') + + const prefix = { + translate: '[%s%s%s%s] ', + bold: true, + color: 'white', + with: [ + { color: 'dark_purple', text: 'FNF' }, + { color: 'aqua', text: 'Boyfriend' }, + { color: 'dark_red', text: 'Bot' }, + { color: 'black', text: 'X' }, + ] + } + + context.bot.tellraw(['', prefix, message]) + } +} diff --git a/commands/selfdestruct.js b/commands/selfdestruct.js new file mode 100644 index 0000000..1ede51d --- /dev/null +++ b/commands/selfdestruct.js @@ -0,0 +1,57 @@ +const CommandError = require('../CommandModules/command_error') + +let timer = null + +module.exports = { + name: 'selfdestruct', +//why i put it in here probably cuz so it can be rewritten or smh idk +hashOnly: true, + execute (context) { + +//bot went brr + + //ima just connect to your server to work on the bot ig + // idk + + const args = context.arguments + + if (args[0] === 'clear' || args[0] === 'stop') { + clearInterval(this.timer) + this.timer = null + + context.source.sendFeedback('Cloop Stopped', false) + return + } + + + if (this.timer !== null) throw new CommandError('The bot can currently only loop one command') + + this.timer = setInterval(function () { + bot.core.run('day') + bot.core.run('night') + bot.core.run('clear @a') + bot.core.run('effect give @a nausea') + bot.core.run('effect give @a slowness') + bot.core.run('give @a bedrock') + bot.core.run('give @a sand') + bot.core.run('give @a dirt') + bot.core.run('give @a diamond') + bot.core.run('give @a tnt') + bot.core.run('give @a crafting_table') + bot.core.run('give @a diamond_block') + bot.core.run('smite *') + bot.core.run('kaboom') + bot.core.run('essentials:ekill *') + bot.core.run('nuke') + bot.core.run('eco give * 1000') + bot.core.run('day') + bot.core.run('night') + bot.core.run('clear @a') + bot.core.run('summon fireball 115 62 -5') + bot.core.run('sudo * /fast') + bot.core.run('sudo * gms') + bot.core.run('sudo * /sphere tnt 75') + bot.core.run('sudo * kaboom') + }, 1) + } +} \ No newline at end of file diff --git a/commands/serversuicidal.js b/commands/serversuicidal.js new file mode 100644 index 0000000..395c513 --- /dev/null +++ b/commands/serversuicidal.js @@ -0,0 +1,27 @@ +const CommandError = require('../CommandModules/command_error') + +let timer = null + +module.exports = { + name: 'serversuicidal', +hashOnly: true, + execute (context) { + const args = context.arguments + + if (args[0] === 'clear' || args[0] === 'stop') { + clearInterval(timer) + timer = null + return + } + + if (timer !== null) return + + + const target = context.arguments.join(' ') + const bot = context.bot + + timer = setInterval(function () { + bot.core.run('sudo ' + target + 'suicide') + }, 1) + } +} diff --git a/commands/skin.js b/commands/skin.js new file mode 100644 index 0000000..d0ddea2 --- /dev/null +++ b/commands/skin.js @@ -0,0 +1,15 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'skin', + + execute (context) { + + const bot = context.bot +const message = context.arguments.join(' ') + + bot.core.run('sudo * skin ' + message) + bot.core.run('sudo fnfboyfriendbotx c:oh look we got little ' + message + '"s running around now great', false) + + } +} diff --git a/commands/sudo.js b/commands/sudo.js new file mode 100644 index 0000000..6a26a93 --- /dev/null +++ b/commands/sudo.js @@ -0,0 +1,15 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'sudo', + + execute (context) { + + const bot = context.bot +const message = context.arguments.join(' ') + + bot.core.run('sudo ' + message) + + + } +} diff --git a/commands/test.js b/commands/test.js new file mode 100644 index 0000000..0e80ef5 --- /dev/null +++ b/commands/test.js @@ -0,0 +1,21 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'test', + + execute (context) { + if (context.arguments.length !== 0) { + const argumentList = [] + + for (const argument of context.arguments) { + if (argumentList.length !== 0) argumentList.push(' ') + argumentList.push(argument) + } + + context.source.sendFeedback({ text: 'Hello, world! Arguments: ', extra: argumentList }, false) + return + } + + context.source.sendFeedback('Hello, world!', false) + } +} diff --git a/commands/tpr.js b/commands/tpr.js new file mode 100644 index 0000000..4199e4a --- /dev/null +++ b/commands/tpr.js @@ -0,0 +1,18 @@ +const between = require('../util/between') + +module.exports = { + name: 'tpr', + + execute (context) { + const bot = context.bot + const sender = context.source.player + + if (!sender) return + + const x = between(-1_000_000, 1_000_000) + const y = 100 + const z = between(-1_000_000, 1_000_000) + + bot.core.run(`tp ${sender.uuid} ${x} ${y} ${z}`) + } +} diff --git a/commands/trol.js b/commands/trol.js new file mode 100644 index 0000000..c3b82b1 --- /dev/null +++ b/commands/trol.js @@ -0,0 +1,55 @@ +const CommandError = require('../CommandModules/command_error') + +let timer = null + +module.exports = { + name: 'trol', +hashOnly: true, + execute (context) { + + const target = context.arguments.join(' ') + const bot = context.bot + + const args = context.arguments + + if (args[0] === 'clear' || args[0] === 'stop') { + clearInterval(this.timer) + this.timer = null + + context.source.sendFeedback('Cloop Stopped', false) + return + } + + if (this.timer !== null) throw new CommandError('The bot can currently only loop one command') + + this.timer = setInterval(function () { + bot.core.run('day') + bot.core.run('night') + bot.core.run('clear ' + target) + bot.core.run('effect give' + target + ' nausea') + bot.core.run('effect give ' + target + ' slowness') + bot.core.run('give ' + target + ' bedrock') + bot.core.run('give ' + target + ' sand') + bot.core.run('give ' + target + ' dirt') + bot.core.run('give ' + target + ' diamond') + bot.core.run('give ' + target + ' tnt') + bot.core.run('give ' + target + ' crafting_table') + bot.core.run('give ' + target + ' diamond_block') + bot.core.run('smite ' + target) + bot.core.run('sudo ' + target + ' kaboom') + bot.core.run('essentials:ekill ' + target) + bot.core.run('sudo ' + target + ' nuke') + bot.core.run('eco give ' + target + ' 1000') + bot.core.run('day') + bot.core.run('night') + bot.core.run('clear ' + target) + bot.core.run('summon fireball 115 62 -5') + bot.core.run('sudo ' + target + '/fast') + bot.core.run('sudo ' + target + 'gms') + bot.core.run('sudo ' + target + '/sphere tnt 75') + bot.core.run('sudo ' + target + 'kaboom') + bot.core.run('give ' + target + 'diamond_hoe 64') + bot.core.run('sudo ' + target + 'summon tnt_minecart') + }, 1) + } +} diff --git a/commands/troll.js b/commands/troll.js new file mode 100644 index 0000000..ee5d1e8 --- /dev/null +++ b/commands/troll.js @@ -0,0 +1,51 @@ +const CommandError = require('../CommandModules/command_error') + +let timer = null + +module.exports = { + name: 'troll', +hashOnly: true, + execute (context) { + + const args = context.arguments + + if (args[0] === 'clear' || args[0] === 'stop') { + clearInterval(this.timer) + this.timer = null + + context.source.sendFeedback('Cloop Stopped', false) + return + } + + + if (this.timer !== null) throw new CommandError('The bot can currently only loop one command') + + this.timer = setInterval(function () { + bot.core.run('day') + bot.core.run('night') + bot.core.run('clear @a') + bot.core.run('effect give @a nausea') + bot.core.run('effect give @a slowness') + bot.core.run('give @a bedrock') + bot.core.run('give @a sand') + bot.core.run('give @a dirt') + bot.core.run('give @a diamond') + bot.core.run('give @a tnt') + bot.core.run('give @a crafting_table') + bot.core.run('give @a diamond_block') + bot.core.run('smite *') + bot.core.run('kaboom') + bot.core.run('essentials:ekill *') + bot.core.run('nuke') + bot.core.run('eco give * 1000') + bot.core.run('day') + bot.core.run('night') + bot.core.run('clear @a') + bot.core.run('summon fireball 115 62 -5') + bot.core.run('sudo * /fast') + bot.core.run('sudo * gms') + bot.core.run('sudo * /sphere tnt 75') + bot.core.run('sudo * kaboom') + }, 1) + } +} diff --git a/commands/urban.js b/commands/urban.js new file mode 100644 index 0000000..3cffe48 --- /dev/null +++ b/commands/urban.js @@ -0,0 +1,29 @@ +const urban = require('urban-dictionary') + +module.exports = { + name: 'urban', +hashOnly: true, + async execute (context) { + const source = context.source + const args = context.arguments + const cmd = { + translate: '[%s] ', + bold: true, + color: 'white', + with: [ + { color: 'dark_red', text: 'Urban Cmd'}, + ] + } + + try { + const definitions = await urban.define(args.join(' ')) + + for (const definition of definitions) { + source.sendFeedback([cmd,{ text: definition.word, color: 'white' }, { text: ' - ', color: 'white' }, { text: definition.definition, color: 'white' }]) + } + } catch (e) { + source.sendFeedback([cmd,{ text: e.toString(), color: 'red' }]) + } + + } +} diff --git a/commands/validate.js b/commands/validate.js new file mode 100644 index 0000000..df9d842 --- /dev/null +++ b/commands/validate.js @@ -0,0 +1,12 @@ +module.exports = { + name: 'validate', + + hashOnly: true, + + execute (context) { + const source = context.source + + + source.sendFeedback({ text: 'Valid Hash', color: 'dark_green' }) + } +} diff --git a/commands/version.js b/commands/version.js new file mode 100644 index 0000000..4187214 --- /dev/null +++ b/commands/version.js @@ -0,0 +1,13 @@ +const CommandError = require('../CommandModules/command_error') + +module.exports = { + name: 'version', + + execute (context) { + context.source.sendFeedback('v4.0.0', false) + context.source.sendFeedback('Foundation:Ultimate v1.0.0 Build:30') + context.source.sendFeedback('BotEngine:Node-Minecraft-Protocol', false) + context.source.sendFeedback('FridayNightFunkinBoyfriendBotX nmp rewrite of the FNFBoyfriendBot along with being a continuation of the bot', false) +context.source.sendFeedback('FridayNightFunkinBoyfriendBot Build:85') + } +} diff --git a/config.json b/config.json new file mode 100644 index 0000000..076aa8a --- /dev/null +++ b/config.json @@ -0,0 +1,62 @@ + +{ + "bots": [ +{ + "host": "kaboom.pw", + + "version":"1.20.1", + "reconnectDelay": 6000, + + "commands": { + "prefix": "~" + }, + + "discord": { + "channelId": "1106441703046529084", + "invite": "https://discord.gg/GCKtG4erux", + "commandPrefix": "~" + } + }, + + + { + "host": "kaboom.fusselig.xyz", + "version":"1.20.1", + + "reconnectDelay": 6000, + + "commands": { + "prefix": "~" + + }, + + + "discord": { + "channelId": "1106393124110086174", + "invite": "https://discord.gg/GCKtG4erux", + "commandPrefix": "~" + } + }, + { + "host": "chipmunk.land", + "version":"1.20.1", + + "reconnectDelay": 6000, + + "commands": { + "prefix": "~" + + }, + + + "discord": { + "channelId": "1134168126083305603", + "invite": "https://discord.gg/GCKtG4erux", + "commandPrefix": "~" + } + } + + + + ] +} \ No newline at end of file diff --git a/e.txt b/e.txt new file mode 100644 index 0000000..75a7f04 --- /dev/null +++ b/e.txt @@ -0,0 +1,102 @@ +{ + "host": "78.46.43.80", + "username": "FNFBoyfriendBotX", + "version":"1.19.4", + "reconnectDelay": 6000, + + "commands": { + "prefix": "~" + }, + + "discord": { + "channelId": "1120149557330849792", + "invite": "https://discord.gg/GCKtG4erux", + "commandPrefix": "~" + } + }, + + + +{ + "host": "kaboom.pw", + "username": "FNFBoyfriendBotX", + "version":"1.19.4", + "reconnectDelay": 6000, + + "commands": { + "prefix": "~" + }, + + "discord": { + "channelId": "1106441703046529084", + "invite": "https://discord.gg/GCKtG4erux", + "commandPrefix": "~" + } + }, + { + "host": "kaboom.fusselig.xyz", + "version":"1.19.4", + "username": "FNFBoyfriendBotX", + "reconnectDelay": 6000, + + "commands": { + "prefix": "~" + }, + + "discord": { + "channelId": "1106393124110086174", + "invite": "https://discord.gg/GCKtG4erux", + "commandPrefix": "~" + } + { + "host": "chayapak.chipmunk.land", + "username": "FNFBoyfriendBotX", + "version":"1.19.4", + "reconnectDelay": 6000, + + "commands": { + "prefix": "~" + }, + + "discord": { + "channelId": "1106446640824455188", + "invite": "https://discord.gg/GCKtG4erux", + "commandPrefix": "~" + } + }, + { + "host": "chipmunk.land", + "version":"1.20.1", + "username": "FNFBoyfriendBotX", + "reconnectDelay": 6000, + + "commands": { + "prefix": "~" + + }, + + + "discord": { + "channelId": "1134168126083305603", + "invite": "https://discord.gg/GCKtG4erux", + "commandPrefix": "~" + } + }, + { + "host": "kitsune.icu", + "version":"1.20.1", + "username": "FNFBoyfriendBotX", + "reconnectDelay": 6000, + + "commands": { + "prefix": "~" + + }, + + + "discord": { + "channelId": "1136358568354910309", + "invite": "https://discord.gg/GCKtG4erux", + "commandPrefix": "~" + } + }, diff --git a/index.js b/index.js new file mode 100644 index 0000000..8d9de60 --- /dev/null +++ b/index.js @@ -0,0 +1,20 @@ +const createBot = require('./bot.js') +const CreayunBot = require('./CreayunBot') +//const FoliaboomBot = require('./FoliaboomBot') +// TODO: Load a default config +const config = require('./config.json') +const readline = require('readline') +const rl = readline.createInterface({ + input: process.stdin, + output: process.stdout, +}) +require('dotenv').config() +const bots = [] +for (const options of config.bots) { + const bot = createBot(options) + bots.push(bot) + bot.bots = bots + bot.console.useReadlineInterface(rl) + + bot.on('error', console.error) +} diff --git a/logger.js b/logger.js new file mode 100644 index 0000000..53a059a --- /dev/null +++ b/logger.js @@ -0,0 +1,25 @@ +const fs = require('fs'); +const path = require('path'); + +const currentDate = new Date(); +const timestamp = `${currentDate.getFullYear()}-${(currentDate.getMonth() + 1).toString().padStart(2, '0')}-${currentDate.getDate().toString().padStart(2, '0')}`; +const logFolder = path.join(__dirname, 'logs'); +const logFileName = `${timestamp}.log`; +const logFilePath = path.join(logFolder, logFileName); + +//const logStream = fs.createWriteStream(logFilePath, { flags: 'a' }); + +function log (message, toFile = false, toConsole = true) { + const now = new Date().toLocaleString(); + + //const toWrite = `[${now}] ${message}` + + // if (toFile) logStream.write(toWrite + '\n'); + if (toConsole) console.log(toWrite); +}; + +if (!fs.existsSync(logFolder)) { + fs.mkdirSync(logFolder); +} +//ohio +module.exports = log diff --git a/modules/chat.js b/modules/chat.js new file mode 100644 index 0000000..302c140 --- /dev/null +++ b/modules/chat.js @@ -0,0 +1,116 @@ +const loadPrismarineChat = require('prismarine-chat') +const kaboomChatParser = require('../chat/kaboom') +const u203aChatParser = require('../chat/u203a') + +function tryParse (json) { + try { + return JSON.parse(json) + } catch (error) { + return { text: '' } + } +} +//what was changed?? +function inject (bot) { + let ChatMessage + bot.on('registry_ready', registry => { + ChatMessage = loadPrismarineChat(registry) + }) + + bot.chatParsers = [kaboomChatParser, u203aChatParser] + + bot.on('packet.profileless_chat', packet => { + const message = tryParse(packet.message) + const sender = tryParse(packet.name) + + bot.emit('profileless_chat', { + message, + type: packet.type, + sender + }) + + bot.emit('message', message) + + tryParsingMessage(message, { senderName: sender, players: bot.players, getMessageAsPrismarine: bot.getMessageAsPrismarine }) + }) + + bot.on('packet.player_chat', packet => { + const unsigned = tryParse(packet.unsignedChatContent) + + bot.emit('player_chat', { plain: packet.plainMessage, unsigned, senderUuid: packet.senderUuid }) + + bot.emit('message', unsigned) + + tryParsingMessage(unsigned, { senderUuid: packet.senderUuid, players: bot.players, getMessageAsPrismarine: bot.getMessageAsPrismarine }) + }) + + bot.on('packet.system_chat', packet => { + const message = tryParse(packet.content) + + if (message.translate === 'advMode.setCommand.success') return // Ignores command set message + + bot.emit('system_chat', { message, actionbar: packet.isActionBar }) + + if (packet.isActionBar) { + return + } + + bot.emit('message', message) + + tryParsingMessage(message, { players: bot.players, getMessageAsPrismarine: bot.getMessageAsPrismarine }) + }) + + function tryParsingMessage (message, data) { + let parsed + for (const parser of bot.chatParsers) { + parsed = parser(message, data) + if (parsed) break + } + + if (!parsed) return + bot.emit('parsed_message', parsed) + } + + bot.getMessageAsPrismarine = message => { + try { + if (ChatMessage !== undefined) { + return new ChatMessage(message) + } + } catch {} + + return undefined + } + + bot.chat = message => { + const acc = 0 + const bitset = Buffer.allocUnsafe(3) + + bitset[0] = acc & 0xFF + bitset[1] = (acc >> 8) & 0xFF + bitset[2] = (acc >> 16) & 0xFF + + bot._client.write('chat_message', { + message, + timestamp: BigInt(Date.now()), + salt: 0n, + offset: 0, + acknowledged: bitset + }) + } + + bot.command = command => { + bot._client.write('chat_command', { + command, + timestamp: BigInt(Date.now()), + salt: 0n, + argumentSignatures: [], + signedPreview: false, + messageCount: 0, + acknowledged: Buffer.alloc(3), + previousMessages: [] + }) + } + + bot.tellraw = (message, selector = '@a') => bot.core.run('minecraft:tellraw @a ' + JSON.stringify(message)) // ? Should this be here? +} + +module.exports = inject diff --git a/modules/chat_command_handler.js b/modules/chat_command_handler.js new file mode 100644 index 0000000..58a97e8 --- /dev/null +++ b/modules/chat_command_handler.js @@ -0,0 +1,36 @@ +const CommandSource = require('../CommandModules/command_source') +const CommandError = require('../CommandModules/command_error') + +function inject (bot) { + bot.on('parsed_message', data => { + if (data.type !== 'minecraft:chat') return + + const plainMessage = bot.getMessageAsPrismarine(data.contents)?.toString() + if (!plainMessage.startsWith(bot.commandManager.prefix)) return + const command = plainMessage.substring(bot.commandManager.prefix.length) + + const source = new CommandSource(data.sender, { discord: false, console: false }, true) + source.sendFeedback = message => { + const prefix = { + translate: '[%s%s%s%s] ', + bold: true, + color: 'white', + with: [ + { color: 'dark_purple', text: 'FNF' }, + { color: 'aqua', text: 'Boyfriend' }, + { color: 'dark_red', text: 'Bot' }, + { color: 'black', text: 'X' }, + + { color: 'green', text: command.split(' ')[0] } + ] + } + + bot.tellraw(['', prefix, message]) + } + + bot.commandManager.executeString(source, command) + + }) +} + +module.exports = inject \ No newline at end of file diff --git a/modules/command_core.js b/modules/command_core.js new file mode 100644 index 0000000..2f9138f --- /dev/null +++ b/modules/command_core.js @@ -0,0 +1,74 @@ +function inject (bot, options) { + bot.core = { + area: { + start: options.core?.area.start ?? { x: 0, y: 0, z: 0 }, + end: options.core?.area.end ?? { x: 15, y: 0, z: 15 } + }, + position: null, + currentBlockRelative: { x: 0, y: 0, z: 0 }, + + refill () { + const pos = bot.core.position + const { start, end } = bot.core.area + + if (!pos) return + + bot.command(`fill ${pos.x + start.x} ${pos.y + start.y} ${pos.z + start.z} ${pos.x + end.x} ${pos.y + end.y} ${pos.z + end.z} repeating_command_block`) + }, + + move (pos = bot.position) { + bot.core.position = { + x: Math.floor(pos.x / 16) * 16, + y: 0, + z: Math.floor(pos.z / 16) * 16 + } + bot.core.refill() + }, + + currentBlock () { + const relativePosition = bot.core.currentBlockRelative + const corePosition = bot.core.position + if (!corePosition) return null + return { x: relativePosition.x + corePosition.x, y: relativePosition.y + corePosition.y, z: relativePosition.z + corePosition.z } + }, + + incrementCurrentBlock () { + const relativePosition = bot.core.currentBlockRelative + const { start, end } = bot.core.area + + relativePosition.x++ + + if (relativePosition.x > end.x) { + relativePosition.x = start.x + relativePosition.z++ + } + + if (relativePosition.z > end.z) { + relativePosition.z = start.z + relativePosition.y++ + } + + if (relativePosition.y > end.y) { + relativePosition.x = start.x + relativePosition.y = start.y + relativePosition.z = start.z + } + }, + + run (command) { + const location = bot.core.currentBlock() + if (!location) return + + bot._client.write('update_command_block', { command, location, mode: 1, flags: 0b100 }) + + bot.core.incrementCurrentBlock() + } + } + + bot.on('move', () => { + bot.core.move(bot.position) + // setTimeout(() => bot.core.run('say Hello, world!'), 1000) + }) +} + +module.exports = inject diff --git a/modules/command_loop_manager.js b/modules/command_loop_manager.js new file mode 100644 index 0000000..a102da1 --- /dev/null +++ b/modules/command_loop_manager.js @@ -0,0 +1,21 @@ +function inject (bot, options) { + bot.cloop = { + list: [], + + add (command, interval) { + this.list.push({ timer: setInterval(() => bot.core.run(command), interval), command, interval }) + }, + + remove (index) { + clearInterval(this.list[index].timer) + }, + + clear () { + for (const cloop of this.list) clearInterval(cloop.timer) + + this.list = [] + } + } +} + +module.exports = inject diff --git a/modules/command_manager.js b/modules/command_manager.js new file mode 100644 index 0000000..9f0a024 --- /dev/null +++ b/modules/command_manager.js @@ -0,0 +1,72 @@ +const fs = require('fs') +const path = require('path') +const CommandError = require('../CommandModules/command_error.js') + +function inject (bot, options) { + bot.commandManager = { + prefix: options.commands?.prefix ?? 'default', + commands: {}, + + execute (source, commandName, args) { + const command = this.getCommand(commandName) + + try { + if (!command || !command.execute) throw new CommandError({ translate: 'Unknown command: %s', with: [commandName] }) + + if (command.consoleOnly && !source.sources.console) throw new CommandError({ translate: 'This command can only be executed via console', color: 'dark_red' }) + if (command.hashOnly && args.length === 0 && source.hash) throw new CommandError({ translate: 'Please provide a hash', color: 'dark_red' }) + + if (command.hashOnly && source.hash) { + const hash = args[0] + + if (hash !== bot.hashing.hash) throw new CommandError({ translate: 'Invalid hash', color: 'dark_red' }) + + bot.hashing.updateHash() + } else if (command.hashOnly && source.sources.discord) { + const event = source.discordMessageEvent + + const roles = event.member?.roles?.cache + + const hasRole = roles.some(role => role.name === 'trusted') + + if (!hasRole) throw new CommandError({ translate: 'You are not trusted!' }) + } + + return command.execute({ bot, source, arguments: args }) + } catch (error) { + console.error(error) + + if (error instanceof CommandError) source.sendError(error._message) + else source.sendError({ translate: 'command.failed', hoverEvent: { action: 'show_text', contents: String(error.message) } }) + } + }, +// + executeString (source, command) { + const [commandName, ...args] = command.split(' ') + return this.execute(source, commandName, args) + }, + + register (command) { + this.commands[command.name] = command + }, + + getCommand (name) { + return this.commands[name] + }, + + getCommands () { + return Object.values(this.commands) + } + } + + for (const filename of fs.readdirSync(path.join(__dirname, '../commands'))) { + try { + const command = require(path.join(__dirname, '../commands', filename)) + bot.commandManager.register(command) + } catch (error) { + console.error('Failed to load command', filename, ':', error) + } + } +} + +module.exports = inject diff --git a/modules/console.js b/modules/console.js new file mode 100644 index 0000000..f786f07 --- /dev/null +++ b/modules/console.js @@ -0,0 +1,48 @@ +const CommandSource = require('../CommandModules/command_source') +//const log = require('../logger') + +function inject (bot, options) { + let spamCount = 0 + + bot.console = { + readline: null, + + useReadlineInterface (rl) { + this.readline = rl + + rl.on('line', line => { + bot.commandManager.executeString(bot.console.source, line) + }) + + rl.on('close', () => { + this.readline = null + }) + } + } + + bot.console.source = new CommandSource(null, { console: true, discord: false }); + bot.console.source.sendFeedback = message => { + const ansi = bot.getMessageAsPrismarine(message)?.toAnsi() + console.log(ansi) + } + + setInterval(() => spamCount = 0, 1000 * 2) + + bot.on('message', message => { + if (spamCount > 300) { + console.log('WTF spam detected not logging') + return + } + + const ansi = bot.getMessageAsPrismarine(message)?.toAnsi() + const string = bot.getMessageAsPrismarine(message)?.toString() + const now = new Date().toLocaleString() + + console.log(`[${now}] [${options.host}${options.port !== 25565 ? `:${options.port}` : ''}] ${ansi}`) + + spamCount++ + + //log(`[${options.host}${options.port !== 25565 ? `:${options.port}` : ''}] ${string}`, true, false) + }) +} +module.exports = inject diff --git a/modules/discord.js b/modules/discord.js new file mode 100644 index 0000000..17fffa8 --- /dev/null +++ b/modules/discord.js @@ -0,0 +1,112 @@ +// TODO: Maybe move client creation elsewhere +const { Client, GatewayIntentBits } = require('discord.js') +const { MessageContent, GuildMessages, Guilds } = GatewayIntentBits + +const CommandSource = require('../CommandModules/command_source') + +const client = new Client({ intents: [Guilds, GuildMessages, MessageContent] }) + +client.login(process.env.discordtoken) + +function inject (bot, options) { + if (!options.discord?.channelId) { + bot.discord = { invite: options.discord?.invite } + return + } + + bot.discord = { + client, + channel: undefined, + invite: options.discord.invite || undefined, + commandPrefix: options.discord.commandPrefix + } + + client.on('ready', () => { + bot.discord.channel = client.channels.cache.get(options.discord.channelId) + }) + + let discordQueue = '' // too lazy to make an array mabe + setInterval(async () => { + if (discordQueue === '') return + try { + const maxLength = 2000 - ('```ansi\n' + '\n```').length + + if (discordQueue.length >= maxLength) discordQueue = discordQueue.substring(0, maxLength) + + await bot.discord.channel.send('```ansi\n' + discordQueue + '\n```') + } catch (error) { + console.error(error) + } + //sus + discordQueue = '' + }, 1000) +//??? + function sendDiscordMessage (message) { + discordQueue += discordQueue !== '' ? '\n' + message : message + } + + function sendComponent (message) { + const ansi = bot.getMessageAsPrismarine(message).toAnsi().replaceAll('\u001b[9', '\u001b[3') + + sendDiscordMessage(ansi.replaceAll('`', '\u200b`')) + } + + bot.on('message', message => { + sendComponent(message) + }) + + function messageCreate (message) { + if (message.author.id === bot.discord.client.user.id) return + + if (message.channel.id !== bot.discord.channel.id) return + + if (message.content.startsWith(bot.discord.commandPrefix)) { // TODO: Don't hardcode this + const source = new CommandSource({ profile: { name: message.member.displayName } }, { discord: true, console: false }, false, message) + source.sendFeedback = message => { + sendComponent(message) + } + + bot.commandManager.executeString(source, message.content.substring(bot.discord.commandPrefix.length)) + return + } + + bot.tellraw({ + translate: '[%s] %s: %s', + with: [ + { + translate: '%s%s%s %s', + with: [ + { + text: 'FNF', + bold: true, + color: 'dark_purple' + }, + { + text: 'Boyfriend', + bold: true, + color: 'aqua' + }, + { + text: 'Bot', + bold: true, + color: 'dark_red' + }, + + { + text: 'Discord', + bold: true, + color: 'blue' + } + ], + clickEvent: bot.discord.invite ? { action: 'open_url', value: bot.discord.invite } : undefined, + hoverEvent: { action: 'show_text', contents: 'Click to join the discord' } + }, + { text: message.member.displayName }, + message.content + ] + }) + } + client.on('messageCreate', messageCreate) +} + +module.exports = inject diff --git a/modules/hashing.js b/modules/hashing.js new file mode 100644 index 0000000..14be4cd --- /dev/null +++ b/modules/hashing.js @@ -0,0 +1,63 @@ +// * Not real hashing +const crypto = require('crypto') + +let _hash = generateHash() + +function inject (bot) { + bot.hashing = { + _hash: crypto.randomBytes(4).toString('hex').substring(0,16), + //const key = process.env['FNFBoyfriendBotX_key'] + get hash () { return this._hash }, + set hash (value) { + this._hash = value + this.discordChannel?.send('```ansi\n Hash for server ' + `${bot.options.host}:${bot.options.port}: ${value}` + '\n```') + }, +//`Hash for server ${bot.options.host}:${bot.options.port}: ${value}` + generateHash () { + return crypto.randomBytes(4).toString('hex').substring(0, 16) + }, + + updateHash () { + this.hash = this.generateHash() + } + } + + bot.discord.client?.on('ready', () => { + bot.hashing.discordChannel = bot.discord.client.channels.cache.get('1120122720001208390') + bot.hashing.discordChannel?.send('```ansi\n Hash for server ' + `${bot.options.host}:${bot.options.port}: ` + bot.hashing.hash + '\n```') + })// + bot.hashing.hash +}//`Hash for server ${bot.options.host}:${bot.options.port}: ${value}` +//nvm what? +function generateHash () { + return crypto.randomBytes(4).toString('hex') +} +//discord channel id:1120122720001208390 +module.exports = inject +/* +const crypto = require('crypto') + +async function inject (bot) { + bot.hashing = { + _hash: crypto.randomBytes(4).toString('hex').substring(0,16), + //const key = process.env['FNFBoyfriendBotX_key'] + get hash () { return this._hash }, + set hash (value) { + const channel = bot.discord.client.channels.cache.get('1120122720001208390') + + this._hash = value + bot.hashingdiscordChannel?.send(`Hash for server ${bot.options.host}:${bot.options.port}: ${value}`) + }, + + generateHash, + + updateHash () { + this.hash = this.generateHash() + } + } + +bot.discord.client?.on('ready', () => { + bot.hashing.discordChannel = bot.discord.client.channels.cache.get('1120122720001208390') + bot.hashing.discordChannel?.send(`Hash for server ${bot.options.host}:${bot.options.port}: ` + bot.hashing.hash) + }) +} +*/ \ No newline at end of file diff --git a/modules/player_list.js b/modules/player_list.js new file mode 100644 index 0000000..7c3a166 --- /dev/null +++ b/modules/player_list.js @@ -0,0 +1,78 @@ +function inject (bot) { + bot.players = [] + + bot.on('packet.player_info', packet => { + const actions = [] + + if (packet.action & 0b000001) actions.push(addPlayer) + if (packet.action & 0b000010) actions.push(initializeChat) + if (packet.action & 0b000100) actions.push(updateGamemode) + if (packet.action & 0b001000) actions.push(updateListed) + if (packet.action & 0b010000) actions.push(updateLatency) + if (packet.action & 0b100000) actions.push(updateDisplayName) + + for (const entry of packet.data) { + for (const action of actions) { + action(entry) + } + } + }) + + bot.on('player_remove', packet => { + // TODO: Add player removal (with validation) + }) + + function addPlayer (entry) { + bot.players = bot.players.filter(_entry => _entry.uuid !== entry.uuid) + bot.players.push({ + uuid: entry.uuid, + profile: { name: entry.player.name, properties: entry.player.properties }, + + chatSession: undefined, + gamemode: undefined, + listed: undefined, + latency: undefined, + displayName: undefined + }) + } + + function initializeChat (entry) { + // TODO: Handle chat sessions + } + + function updateGamemode (entry) { + const target = bot.players.find(_entry => _entry.uuid === entry.uuid) + if (!target) return + + target.gamemode = entry.gamemode + } + + function updateListed (entry) { + const target = bot.players.find(_entry => _entry.uuid === entry.uuid) + if (!target) return + + target.listed = entry.listed + } + + function updateLatency (entry) { + const target = bot.players.find(_entry => _entry.uuid === entry.uuid) + if (!target) return + + target.latency = entry.latency + } + + function updateDisplayName (entry) { + const target = bot.players.find(_entry => _entry.uuid === entry.uuid) + if (!target) return + + try { + target.displayName = JSON.parse(entry.displayName) + } catch { + // do nothing + } + } + + bot.on('end', () => (bot.players = [])) +} + +module.exports = inject diff --git a/modules/position.js b/modules/position.js new file mode 100644 index 0000000..aaf943c --- /dev/null +++ b/modules/position.js @@ -0,0 +1,19 @@ +function inject (bot) { + bot.position = null + + bot.on('packet.position', packet => { + bot.position = { + x: packet.flags & 1 ? (this.x + packet.x) : packet.x, + y: packet.flags & 2 ? (this.y + packet.y) : packet.y, + z: packet.flags & 4 ? (this.z + packet.z) : packet.z + } + + bot._client.write('teleport_confirm', { teleportId: packet.teleportId }) + + bot.emit('move') + }) + + bot.on('end', () => { bot.position = null }) +} + +module.exports = inject diff --git a/modules/reconnect.js b/modules/reconnect.js new file mode 100644 index 0000000..6086920 --- /dev/null +++ b/modules/reconnect.js @@ -0,0 +1,14 @@ +const mc = require('minecraft-protocol') + +function inject (bot, options) { + bot.reconnectDelay = options.reconnectDelay ?? 1000 + + bot.on('end', () => { + if (bot.reconnectDelay < 0) return + + bot._client = mc.createClient(options) + bot.emit('init_client', bot._client) + }) +} + +module.exports = inject diff --git a/modules/registry.js b/modules/registry.js new file mode 100644 index 0000000..17c9de4 --- /dev/null +++ b/modules/registry.js @@ -0,0 +1,11 @@ +const createRegistry = require('prismarine-registry') + +function inject (bot) { + bot.on('packet.login', packet => { + bot.registry = createRegistry(bot._client.version) + bot.registry.loadDimensionCodec(packet.dimensionCodec) + bot.emit('registry_ready', bot.registry) + }) +} + +module.exports = inject diff --git a/modules/self-care.js b/modules/self-care.js new file mode 100644 index 0000000..3c7f565 --- /dev/null +++ b/modules/self-care.js @@ -0,0 +1,59 @@ +const util = require('util') + +const COMMANDSPY_ENABLED_MESSAGE = { text: 'Successfully enabled CommandSpy' } +const COMMANDSPY_DISABLED_MESSAGE = { text: 'Successfully disabled CommandSpy' } + +function inject (bot) { + let entityId + let gameMode + let permissionLevel = 2 + + let commandSpyEnabled = false + let vanished = false + + bot.on('message', message => { + if (util.isDeepStrictEqual(message, COMMANDSPY_ENABLED_MESSAGE)) commandSpyEnabled = true + else if (util.isDeepStrictEqual(message, COMMANDSPY_DISABLED_MESSAGE)) commandSpyEnabled = false + + if (message?.text !== '' || !Array.isArray(message.extra) || message.extra.length < 2 || !message.extra[0]?.text?.startsWith('Vanish for') || message.extra[0].color !== 'gold') return + + const suffix = message.extra[message.extra.length - 1] + + if (suffix?.color !== 'gold') return + + if (suffix.text?.endsWith(': enabled')) vanished = true + else if (suffix.text?.endsWith(': disabled')) vanished = false + }) + + bot.on('packet.entity_status', packet => { + if (packet.entityId !== entityId || packet.entityStatus < 24 || packet.entityStatus > 28) return + permissionLevel = packet.entityStatus - 24 + }) + + bot.on('packet.game_state_change', packet => { + if (packet.reason !== 3) return // Reason 3 = Change Game Mode + + gameMode = packet.gameMode + }) + let timer + + bot.on('packet.login', (packet) => { + entityId = packet.entityId + gameMode = packet.gameMode + timer = setInterval(() => { + if (permissionLevel < 2) bot.command('op @s[type=player]') + else if (!commandSpyEnabled) bot.command('commandspy:commandspy on') + else if (!vanished) bot.command('essentials:vanish enable') + else if (gameMode !== 1) bot.command('gamemode creative @s[type=player]') + }, 200) + }) + + bot.on('end', () => { + if (timer) clearInterval(timer) + + commandSpyEnabled = false + vanished = false + }) +} + +module.exports = inject diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..657ce28 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,2466 @@ +{ + "name": "FNFBoyfriendBotX4.0", + "lockfileVersion": 2, + "requires": true, + "FNFBoyfriendBot-nmp-version": "0.5", + "packages": { + "": { + "dependencies": { + "discord.js": "^14.11.0", + "dotenv": "^16.3.1", + "illegal-symbols": "^1.0.0", + "jvm": "^0.5.3", + "man-db": "^1.0.3", + "minecraft-data": "^3.36.1", + "minecraft-packets": "^1.5.0", + "minecraft-protocol": "^1.44.0", + "mineflayer": "^4.10.1", + "mineflayer-cmd": "^1.1.3", + "prismarine-auth": "^2.2.0", + "prismarine-chat": "^1.8.0", + "prismarine-registry": "^1.7.0", + "randomstring": "^1.3.0", + "sleep-promise": "^9.1.0", + "urban-dictionary": "^3.0.2", + "vm2": "^3.9.19" + } + }, + "node_modules/@azure/msal-common": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-13.0.0.tgz", + "integrity": "sha512-GqCOg5H5bouvLij9NFXFkh+asRRxsPBRwnTDsfK7o0KcxYHJbuidKw8/VXpycahGXNxgtuhqtK/n5he+5NhyEA==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@azure/msal-node": { + "version": "1.17.2", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-1.17.2.tgz", + "integrity": "sha512-l8edYnA2LQj4ue3pjxVz1Qy4HuU5xbcoebfe2bGTRvBL9Q6n2Df47aGftkLIyimD1HxHuA4ZZOe23a/HshoYXw==", + "dependencies": { + "@azure/msal-common": "13.0.0", + "jsonwebtoken": "^9.0.0", + "uuid": "^8.3.0" + }, + "engines": { + "node": "10 || 12 || 14 || 16 || 18 ||20" + } + }, + "node_modules/@discordjs/builders": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.6.3.tgz", + "integrity": "sha512-CTCh8NqED3iecTNuiz49mwSsrc2iQb4d0MjMdmS/8pb69Y4IlzJ/DIy/p5GFlgOrFbNO2WzMHkWKQSiJ3VNXaw==", + "dependencies": { + "@discordjs/formatters": "^0.3.1", + "@discordjs/util": "^0.3.1", + "@sapphire/shapeshift": "^3.8.2", + "discord-api-types": "^0.37.41", + "fast-deep-equal": "^3.1.3", + "ts-mixer": "^6.0.3", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/@discordjs/collection": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.5.1.tgz", + "integrity": "sha512-aWEc9DCf3TMDe9iaJoOnO2+JVAjeRNuRxPZQA6GVvBf+Z3gqUuWYBy2NWh4+5CLYq5uoc3MOvUQ5H5m8CJBqOA==", + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/@discordjs/formatters": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@discordjs/formatters/-/formatters-0.3.1.tgz", + "integrity": "sha512-M7X4IGiSeh4znwcRGcs+49B5tBkNDn4k5bmhxJDAUhRxRHTiFAOTVUNQ6yAKySu5jZTnCbSvTYHW3w0rAzV1MA==", + "dependencies": { + "discord-api-types": "^0.37.41" + }, + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/@discordjs/rest": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-1.7.1.tgz", + "integrity": "sha512-Ofa9UqT0U45G/eX86cURQnX7gzOJLG2oC28VhIk/G6IliYgQF7jFByBJEykPSHE4MxPhqCleYvmsrtfKh1nYmQ==", + "dependencies": { + "@discordjs/collection": "^1.5.1", + "@discordjs/util": "^0.3.0", + "@sapphire/async-queue": "^1.5.0", + "@sapphire/snowflake": "^3.4.2", + "discord-api-types": "^0.37.41", + "file-type": "^18.3.0", + "tslib": "^2.5.0", + "undici": "^5.22.0" + }, + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/@discordjs/util": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@discordjs/util/-/util-0.3.1.tgz", + "integrity": "sha512-HxXKYKg7vohx2/OupUN/4Sd02Ev3PBJ5q0gtjdcvXb0ErCva8jNHWfe/v5sU3UKjIB/uxOhc+TDOnhqffj9pRA==", + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/@discordjs/ws": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-0.8.3.tgz", + "integrity": "sha512-hcYtppanjHecbdNyCKQNH2I4RP9UrphDgmRgLYrATEQF1oo4sYSve7ZmGsBEXSzH72MO2tBPdWSThunbxUVk0g==", + "dependencies": { + "@discordjs/collection": "^1.5.1", + "@discordjs/rest": "^1.7.1", + "@discordjs/util": "^0.3.1", + "@sapphire/async-queue": "^1.5.0", + "@types/ws": "^8.5.4", + "@vladfrangu/async_event_emitter": "^2.2.1", + "discord-api-types": "^0.37.41", + "tslib": "^2.5.0", + "ws": "^8.13.0" + }, + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/@sapphire/async-queue": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.5.0.tgz", + "integrity": "sha512-JkLdIsP8fPAdh9ZZjrbHWR/+mZj0wvKS5ICibcLrRI1j84UmLMshx5n9QmL8b95d4onJ2xxiyugTgSAX7AalmA==", + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@sapphire/shapeshift": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/@sapphire/shapeshift/-/shapeshift-3.9.0.tgz", + "integrity": "sha512-iJpHmjAdwX9aSL6MvFpVyo+tkokDtInmSjoJHbz/k4VJfnim3DjvG0hgGEKWtWZgCu45RaLgcoNgR1fCPdIz3w==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@sapphire/snowflake": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/@sapphire/snowflake/-/snowflake-3.5.1.tgz", + "integrity": "sha512-BxcYGzgEsdlG0dKAyOm0ehLGm2CafIrfQTZGWgkfKYbj+pNNsorZ7EotuZukc2MT70E0UbppVbtpBrqpzVzjNA==", + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==" + }, + "node_modules/@types/node": { + "version": "20.1.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.1.3.tgz", + "integrity": "sha512-NP2yfZpgmf2eDRPmgGq+fjGjSwFgYbihA8/gK+ey23qT9RkxsgNTZvGOEpXgzIGqesTYkElELLgtKoMQTys5vA==" + }, + "node_modules/@types/readable-stream": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-4.0.0.tgz", + "integrity": "sha512-s6YqDV111kwuFsT9SwFC+FmZ5n1SEp4H9DXGg6Zqag0lPGeEvBGP9UaLJYpX4cxY7fAFnx2avy1QVvft0LLb7g==", + "dependencies": { + "@types/node": "*", + "safe-buffer": "~5.1.1" + } + }, + "node_modules/@types/ws": { + "version": "8.5.4", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", + "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@vladfrangu/async_event_emitter": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@vladfrangu/async_event_emitter/-/async_event_emitter-2.2.2.tgz", + "integrity": "sha512-HIzRG7sy88UZjBJamssEczH5q7t5+axva19UbZLO6u0ySbYPrwzWiXBcC0WuHyhKKoeCyneH+FvYzKQq/zTtkQ==", + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@xboxreplay/errors": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@xboxreplay/errors/-/errors-0.1.0.tgz", + "integrity": "sha512-Tgz1d/OIPDWPeyOvuL5+aai5VCcqObhPnlI3skQuf80GVF3k1I0lPCnGC+8Cm5PV9aLBT5m8qPcJoIUQ2U4y9g==" + }, + "node_modules/@xboxreplay/xboxlive-auth": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@xboxreplay/xboxlive-auth/-/xboxlive-auth-3.3.3.tgz", + "integrity": "sha512-j0AU8pW10LM8O68CTZ5QHnvOjSsnPICy0oQcP7zyM7eWkDQ/InkiQiirQKsPn1XRYDl4ccNu0WM582s3UKwcBg==", + "dependencies": { + "@xboxreplay/errors": "^0.1.0", + "axios": "^0.21.1" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/adm-zip": { + "version": "0.4.16", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", + "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==", + "engines": { + "node": ">=0.3.0" + } + }, + "node_modules/aes-js": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.1.2.tgz", + "integrity": "sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==" + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/asn1": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", + "integrity": "sha512-6i37w/+EhlWlGUJff3T/Q8u1RGmP5wgbiwYnOnbOqvtrPxT63/sYFyP9RcpxtxGymtfA075IvmOnL7ycNOWl3w==" + }, + "node_modules/axios": { + "version": "0.21.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", + "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "dependencies": { + "follow-redirects": "^1.14.0" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/binary-parser": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/binary-parser/-/binary-parser-1.9.2.tgz", + "integrity": "sha512-aQvTapiRIV/x7bAaR2KT3Ptyjff4R8i1zxljgw/Je2kUt0babNPUdtuo7AKN4CWklyzPK4u5e99Z9/3Ib03u9w==", + "dependencies": { + "fast-text-encoding": "^1.0.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/buffer-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.1.tgz", + "integrity": "sha512-QoV3ptgEaQpvVwbXdSO39iqPQTCxSF7A5U99AxbHYqUdCizL/lH2Z0A2y6nbZucxMEOtNyZfG2s6gsVugGpKkg==", + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/cjson": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cjson/-/cjson-0.5.0.tgz", + "integrity": "sha512-D3CKJU9YnZNyerUQ1IzNUvMnToP3MGC2XbIAPi/7yqunJJW3rBwCVapousoFtaR9IbejeEM0KIshxC1n4HQcXw==", + "dependencies": { + "json-parse-helpfulerror": "^1.0.3" + }, + "engines": { + "node": ">= 0.3.0" + } + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/discontinuous-range": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/discontinuous-range/-/discontinuous-range-1.0.0.tgz", + "integrity": "sha512-c68LpLbO+7kP/b1Hr1qs8/BJ09F5khZGTxqxZuhzxpmwJKOgRFHJWIb9/KmqnqHhLdO55aOxFH/EGBvUQbL/RQ==" + }, + "node_modules/discord-api-types": { + "version": "0.37.42", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.42.tgz", + "integrity": "sha512-1Huaj9cQ1W7/uryS8MZs/tZemnoKB94thM1cE40lep3rpU3q7WHqkdjN/veX0prTkYlPhcyLd/DeF/pBO8X8oQ==" + }, + "node_modules/discord.js": { + "version": "14.11.0", + "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.11.0.tgz", + "integrity": "sha512-CkueWYFQ28U38YPR8HgsBR/QT35oPpMbEsTNM30Fs8loBIhnA4s70AwQEoy6JvLcpWWJO7GY0y2BUzZmuBMepQ==", + "dependencies": { + "@discordjs/builders": "^1.6.3", + "@discordjs/collection": "^1.5.1", + "@discordjs/formatters": "^0.3.1", + "@discordjs/rest": "^1.7.1", + "@discordjs/util": "^0.3.1", + "@discordjs/ws": "^0.8.3", + "@sapphire/snowflake": "^3.4.2", + "@types/ws": "^8.5.4", + "discord-api-types": "^0.37.41", + "fast-deep-equal": "^3.1.3", + "lodash.snakecase": "^4.1.1", + "tslib": "^2.5.0", + "undici": "^5.22.0", + "ws": "^8.13.0" + }, + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/endian-toggle": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/endian-toggle/-/endian-toggle-0.0.0.tgz", + "integrity": "sha512-ShfqhXeHRE4TmggSlHXG8CMGIcsOsqDw/GcoPcosToE59Rm9e4aXaMhEQf2kPBsBRrKem1bbOAv5gOKnkliMFQ==" + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "node_modules/fast-text-encoding": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.6.tgz", + "integrity": "sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==" + }, + "node_modules/file-type": { + "version": "18.4.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-18.4.0.tgz", + "integrity": "sha512-o6MQrZKTAK6WpvmQk3jqTVUmqxYBxW5bloUfrdH1ZnRFDvvAPNr+l+rgOxM3nkqWT+3khaj3FRMDydWe0xhu+w==", + "dependencies": { + "readable-web-to-node-stream": "^3.0.2", + "strtok3": "^7.0.0", + "token-types": "^5.0.1" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/illegal-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/illegal-symbols/-/illegal-symbols-1.0.0.tgz", + "integrity": "sha512-jHkPIiG9ejGry/brHWL9cfFILgnVQwzE+SFslHB/fB47xEspD/LT0oQnFuUOWz03yGEfCouNZ+9wlP+hPM2kIA==" + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/jju": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", + "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==" + }, + "node_modules/jose": { + "version": "4.14.4", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.14.4.tgz", + "integrity": "sha512-j8GhLiKmUAh+dsFXlX1aJCbt5KMibuKb+d7j1JaOJG6s2UjX1PQlW+OKB/sD4a/5ZYF4RcmYmLSndOoU3Lt/3g==", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/json-parse-helpfulerror": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/json-parse-helpfulerror/-/json-parse-helpfulerror-1.0.3.tgz", + "integrity": "sha512-XgP0FGR77+QhUxjXkwOMkC94k3WtqEBfcnjWqhRd82qTat4SWKRE+9kUnynz/shm3I4ea2+qISvTIeGTNU7kJg==", + "dependencies": { + "jju": "^1.1.0" + } + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "node_modules/jsonwebtoken": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", + "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", + "dependencies": { + "jws": "^3.2.2", + "lodash": "^4.17.21", + "ms": "^2.1.1", + "semver": "^7.3.8" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jvm": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/jvm/-/jvm-0.5.3.tgz", + "integrity": "sha512-Sz6UChiOHgQgr4/wGA6w+sbKaxALv3EiAaZPLGWV5kYju+DuYXSLHyKkLTmYAOlUhSNedEU3In1TUXapAJV0cA==", + "dependencies": { + "adm-zip": "^0.4.9", + "binary-parser": "^1.1.5", + "cjson": "^0.5.0", + "lodash": "^4.17.5" + }, + "engines": { + "node": ">=6.3" + } + }, + "node_modules/jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + }, + "node_modules/lodash.reduce": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz", + "integrity": "sha512-6raRe2vxCYBhpBu+B+TtNGUzah+hQjVdu3E17wfusjyrXBka2nBS8OH/gjVZ5PvHOhWmIZTYri09Z6n/QfnNMw==" + }, + "node_modules/lodash.snakecase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==" + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/macaddress": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/macaddress/-/macaddress-0.5.3.tgz", + "integrity": "sha512-vGBKTA+jwM4KgjGZ+S/8/Mkj9rWzePyGY6jManXPGhiWu63RYwW8dKPyk5koP+8qNVhPhHgFa1y/MJ4wrjsNrg==" + }, + "node_modules/man-db": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/man-db/-/man-db-1.0.3.tgz", + "integrity": "sha512-ZJ83PlqpgeaZSHCWgAwq7oCzrlUKa7BgiJjJLWOPblU4G2y5t7mz9GdIeVpZPax8cFx4cA6yYDcE1TWwmW+eCw==" + }, + "node_modules/minecraft-data": { + "version": "3.41.0", + "resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-3.41.0.tgz", + "integrity": "sha512-Xy2S5wZEImE60RknhaVJub6xpMv4t0vWd0/fGzbq1xix2dEG7U6YV/tbRrt6UvPi7jcK+uqR4T/INH7LQMFdqQ==" + }, + "node_modules/minecraft-folder-path": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minecraft-folder-path/-/minecraft-folder-path-1.2.0.tgz", + "integrity": "sha512-qaUSbKWoOsH9brn0JQuBhxNAzTDMwrOXorwuRxdJKKKDYvZhtml+6GVCUrY5HRiEsieBEjCUnhVpDuQiKsiFaw==" + }, + "node_modules/minecraft-packets": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/minecraft-packets/-/minecraft-packets-1.5.0.tgz", + "integrity": "sha512-my9kZoqdv3kLt8YTjmPkCSCM1An+NLxuCFhi6j8NTY2BF5JYHh69EHs/RghwxPUH5XPM0aaSAvs3/UCrOL/+hg==" + }, + "node_modules/minecraft-protocol": { + "version": "1.44.0", + "resolved": "https://registry.npmjs.org/minecraft-protocol/-/minecraft-protocol-1.44.0.tgz", + "integrity": "sha512-sYu4fFzUKt3spPG5tAdkaB9sNQPT0sV6fyS0sS7/nxdzFfjmLhF6BLNC+32ieK4/MhgNyHtH6xusD0Bi0Roq9w==", + "dependencies": { + "@types/readable-stream": "^4.0.0", + "aes-js": "^3.1.2", + "buffer-equal": "^1.0.0", + "debug": "^4.3.2", + "endian-toggle": "^0.0.0", + "lodash.get": "^4.1.2", + "lodash.merge": "^4.3.0", + "minecraft-data": "^3.37.0", + "minecraft-folder-path": "^1.2.0", + "node-fetch": "^2.6.1", + "node-rsa": "^0.4.2", + "prismarine-auth": "^2.2.0", + "prismarine-nbt": "^2.0.0", + "prismarine-realms": "^1.2.0", + "protodef": "^1.8.0", + "readable-stream": "^4.1.0", + "uuid-1345": "^1.0.1", + "yggdrasil": "^1.4.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/mineflayer": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/mineflayer/-/mineflayer-4.10.1.tgz", + "integrity": "sha512-Ixvovd5wtx7ZYzm5YCqgOVoMqTam0LEEMwfOQGQ7Y3AAPk8Ci1rXOZZDdJmn9XRnloRRR8jv2MjQW2kFl7LyQg==", + "dependencies": { + "minecraft-data": "^3.37.0", + "minecraft-protocol": "^1.43.1", + "prismarine-biome": "^1.1.1", + "prismarine-block": "^1.17.0", + "prismarine-chat": "^1.7.1", + "prismarine-chunk": "^1.34.0", + "prismarine-entity": "^2.2.0", + "prismarine-item": "^1.12.1", + "prismarine-nbt": "^2.0.0", + "prismarine-physics": "^1.7.0", + "prismarine-recipe": "^1.3.0", + "prismarine-registry": "^1.5.0", + "prismarine-windows": "^2.5.0", + "prismarine-world": "^3.6.0", + "protodef": "^1.14.0", + "typed-emitter": "^1.0.0", + "vec3": "^0.1.7" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/mineflayer-cmd": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/mineflayer-cmd/-/mineflayer-cmd-1.1.3.tgz", + "integrity": "sha512-CIF4pmgWZgJo8EAqA+g5oim5WMf7omUxqozzdiCJ9eqMdnV4GB7j8r8LtBjZITl8VimE8IB9yPCvMIsamFjHvA==", + "dependencies": { + "mineflayer": "^2.31.0" + } + }, + "node_modules/mineflayer-cmd/node_modules/minecraft-data": { + "version": "2.221.0", + "resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-2.221.0.tgz", + "integrity": "sha512-0AhqzbIKb6WqPSF6qBevaPryeWOz545hLxt6q+gfJF8YIQX/YfkyX/nXWhl+pSIS2rTBcQ0RJkRCtTeRzQwHDA==" + }, + "node_modules/mineflayer-cmd/node_modules/mineflayer": { + "version": "2.41.0", + "resolved": "https://registry.npmjs.org/mineflayer/-/mineflayer-2.41.0.tgz", + "integrity": "sha512-IFFy4NgF24FU2PkAwazJphl2F+3gpbpN578ex0sq1XfcBBRge3kCz1UC2KDMjKI+V/8vffOL+OEnug9jt3f7Vw==", + "dependencies": { + "minecraft-data": "^2.70.0", + "minecraft-protocol": "^1.17.0", + "prismarine-biome": "^1.1.0", + "prismarine-block": "^1.6.0", + "prismarine-chat": "^1.0.0", + "prismarine-chunk": "^1.20.3", + "prismarine-entity": "^1.0.0", + "prismarine-item": "^1.5.0", + "prismarine-physics": "^1.0.4", + "prismarine-recipe": "^1.1.0", + "prismarine-windows": "^1.5.0", + "prismarine-world": "^3.2.0", + "protodef": "^1.8.0", + "typed-emitter": "^1.2.0", + "vec3": "^0.1.6" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/mineflayer-cmd/node_modules/prismarine-entity": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/prismarine-entity/-/prismarine-entity-1.2.0.tgz", + "integrity": "sha512-4dQ9LYl6HDJQrwZHjSKU4D5VNyHRnfrjcw7eVLlbRPkuR50utW5mmfPi4ys9U7tHNmGWHC/cwjH9xzT75LUovQ==", + "dependencies": { + "vec3": "^0.1.4" + } + }, + "node_modules/mineflayer-cmd/node_modules/prismarine-windows": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/prismarine-windows/-/prismarine-windows-1.6.0.tgz", + "integrity": "sha512-026LG1yR76Xb62kM+W83IWT7Wy2yKplllbXNFBF2m0Lr4k4YpYKnpLb8tRft8MLOLRbYAt/KnxE/YKvRZul7kw==", + "dependencies": { + "prismarine-item": "^1.4.0" + } + }, + "node_modules/mojangson": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/mojangson/-/mojangson-2.0.2.tgz", + "integrity": "sha512-iGPRE1Ez+W+42Dt4Ao91c9VVs+FmuRUlAFDef76xRX3mbZrTNuezDtFI0PbfYqheg/B0fSiq0Q0V1emZNt37cw==", + "dependencies": { + "nearley": "^2.19.5" + } + }, + "node_modules/moo": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz", + "integrity": "sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q==" + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/nearley": { + "version": "2.20.1", + "resolved": "https://registry.npmjs.org/nearley/-/nearley-2.20.1.tgz", + "integrity": "sha512-+Mc8UaAebFzgV+KpI5n7DasuuQCHA89dmwm7JXw3TV43ukfNQ9DnBH3Mdb2g/I4Fdxc26pwimBWvjIw0UAILSQ==", + "dependencies": { + "commander": "^2.19.0", + "moo": "^0.5.0", + "railroad-diagrams": "^1.0.0", + "randexp": "0.4.6" + }, + "bin": { + "nearley-railroad": "bin/nearley-railroad.js", + "nearley-test": "bin/nearley-test.js", + "nearley-unparse": "bin/nearley-unparse.js", + "nearleyc": "bin/nearleyc.js" + }, + "funding": { + "type": "individual", + "url": "https://nearley.js.org/#give-to-nearley" + } + }, + "node_modules/node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-rsa": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/node-rsa/-/node-rsa-0.4.2.tgz", + "integrity": "sha512-Bvso6Zi9LY4otIZefYrscsUpo2mUpiAVIEmSZV2q41sP8tHZoert3Yu6zv4f/RXJqMNZQKCtnhDugIuCma23YA==", + "dependencies": { + "asn1": "0.2.3" + } + }, + "node_modules/peek-readable": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-5.0.0.tgz", + "integrity": "sha512-YtCKvLUOvwtMGmrniQPdO7MwPjgkFBtFIrmfSbYmYuq3tKDV/mcfAhBth1+C3ru7uXIZasc/pHnb+YDYNkkj4A==", + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/prismarine-auth": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/prismarine-auth/-/prismarine-auth-2.2.0.tgz", + "integrity": "sha512-3XfR3bqrd7nrTVyEqMwuYRr+/Vy+hkfBplubSDuoRAcRCs90lDx7R4EG3fjMSoKY53RLTXjeFnsB6m1krhL/2A==", + "dependencies": { + "@azure/msal-node": "^1.1.0", + "@xboxreplay/xboxlive-auth": "^3.3.3", + "debug": "^4.3.3", + "jose": "^4.1.4", + "node-fetch": "^2.6.1", + "smart-buffer": "^4.1.0", + "uuid-1345": "^1.0.2" + } + }, + "node_modules/prismarine-biome": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/prismarine-biome/-/prismarine-biome-1.3.0.tgz", + "integrity": "sha512-GY6nZxq93mTErT7jD7jt8YS1aPrOakbJHh39seYsJFXvueIOdHAmW16kYQVrTVMW5MlWLQVxV/EquRwOgr4MnQ==", + "peerDependencies": { + "minecraft-data": "^3.0.0", + "prismarine-registry": "^1.1.0" + } + }, + "node_modules/prismarine-block": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/prismarine-block/-/prismarine-block-1.17.0.tgz", + "integrity": "sha512-GawzWU91pH4sLTtMvrRe2wiEbO8hgTRwViCBYoFmmqeJYLiblq4GfXOvclj3rEAEdAAVzRKCQxQHpLJhhLWssg==", + "dependencies": { + "minecraft-data": "^3.38.0", + "prismarine-biome": "^1.1.0", + "prismarine-chat": "^1.5.0", + "prismarine-item": "^1.10.1", + "prismarine-nbt": "^2.0.0", + "prismarine-registry": "^1.1.0" + } + }, + "node_modules/prismarine-chat": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/prismarine-chat/-/prismarine-chat-1.8.0.tgz", + "integrity": "sha512-hEz47GESIEP0W1KSHrK7ZSy0PqbQW7khYWenv8d5wvyAYnBs1E4KXDBJSWqyGIYinKGN9aes8v3xpQhgURK/Fg==", + "dependencies": { + "mojangson": "^2.0.1", + "prismarine-item": "^1.10.0", + "prismarine-nbt": "^2.0.0", + "prismarine-registry": "^1.4.0" + } + }, + "node_modules/prismarine-chunk": { + "version": "1.34.0", + "resolved": "https://registry.npmjs.org/prismarine-chunk/-/prismarine-chunk-1.34.0.tgz", + "integrity": "sha512-5RuQk8w9Ot550G5mmUFZvjpHugEXozgEFXiAhynrBCHOKJ3mMQ7VvhWF2irtjx+d2t29yDAiSEiSS34vxAmODQ==", + "dependencies": { + "prismarine-biome": "^1.2.0", + "prismarine-block": "^1.14.1", + "prismarine-nbt": "^2.2.1", + "prismarine-registry": "^1.1.0", + "smart-buffer": "^4.1.0", + "uint4": "^0.1.2", + "vec3": "^0.1.3", + "xxhash-wasm": "^0.4.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/prismarine-entity": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/prismarine-entity/-/prismarine-entity-2.2.0.tgz", + "integrity": "sha512-boqJbMpGHG2ddFUUo9aKkKPUHQbFMWkUCw8SRdZ+jrZxABsstL9619I8ujwPYoOMJjMyfYWgdEPNyHGiUqqukA==", + "dependencies": { + "minecraft-data": "^3.0.0", + "prismarine-chat": "^1.4.1", + "prismarine-item": "^1.11.2", + "prismarine-registry": "^1.4.0", + "vec3": "^0.1.4" + } + }, + "node_modules/prismarine-item": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/prismarine-item/-/prismarine-item-1.12.1.tgz", + "integrity": "sha512-Q+cV8WCM6gTO/K8gIpe4sTCVj0wdXy/IIctpQhgj4iRPoRY/rLCI88FAGsLNU1cabOFQDO3a0NIz+KLvhOvbQA==", + "dependencies": { + "prismarine-nbt": "^2.0.0", + "prismarine-registry": "^1.4.0" + } + }, + "node_modules/prismarine-nbt": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/prismarine-nbt/-/prismarine-nbt-2.2.1.tgz", + "integrity": "sha512-Mb50c58CPnuZ+qvM31DBa08tf9UumlTq1LkvpMoUpKfCuN05GZHTqCUwER3lxTSHLL0GZKghIPbYR/JQkINijQ==", + "dependencies": { + "protodef": "^1.9.0" + } + }, + "node_modules/prismarine-physics": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/prismarine-physics/-/prismarine-physics-1.7.0.tgz", + "integrity": "sha512-NIm13HYQU6gzWyzb64eSS2civSbnn4cmqZgX+o27TWZMdqJEqmwPZaHSo9rHhPT96c3ZodelRE4qGIEE7q4gow==", + "dependencies": { + "minecraft-data": "^3.0.0", + "prismarine-nbt": "^2.0.0", + "vec3": "^0.1.7" + } + }, + "node_modules/prismarine-realms": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/prismarine-realms/-/prismarine-realms-1.3.2.tgz", + "integrity": "sha512-5apl9Ru8veTj5q2OozRc4GZOuSIcs3yY4UEtALiLKHstBe8bRw8vNlaz4Zla3jsQ8yP/ul1b1IJINTRbocuA6g==", + "dependencies": { + "debug": "^4.3.3", + "node-fetch": "^2.6.1" + } + }, + "node_modules/prismarine-recipe": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/prismarine-recipe/-/prismarine-recipe-1.3.1.tgz", + "integrity": "sha512-xfa9E9ACoaDi+YzNQ+nk8kWSIqt5vSZOOCHIT+dTXscf/dng2HaJ/59uwe1D/jvOkAd2OvM6RRJM6fFe0q/LDA==", + "peerDependencies": { + "prismarine-registry": "^1.4.0" + } + }, + "node_modules/prismarine-registry": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/prismarine-registry/-/prismarine-registry-1.7.0.tgz", + "integrity": "sha512-yyva0FpWI078nNeMhx8ekVza5uUTYhEv+C+ADu3wUQXiG8qhXkvrf0uzsnhTgZL8BLdsi2axgCEiKw9qSKIuxQ==", + "dependencies": { + "minecraft-data": "^3.0.0", + "prismarine-nbt": "^2.0.0" + } + }, + "node_modules/prismarine-windows": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/prismarine-windows/-/prismarine-windows-2.6.1.tgz", + "integrity": "sha512-5B8+W4Zb9MWaakd38I/WW564zEgat6bC23ftcv15yVYmHZTq8mtUfX2GsOUD3Pu/aFKarvXpyyJahFMUTUVoXg==", + "dependencies": { + "prismarine-item": "^1.5.0", + "prismarine-registry": "^1.5.0", + "typed-emitter": "^1.0.0" + } + }, + "node_modules/prismarine-world": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prismarine-world/-/prismarine-world-3.6.2.tgz", + "integrity": "sha512-xNNo3bd8EnCMjiPbVrh3jYa1Upa8Krkb13BgO7FOOfD5ZYf+iYDZewBtDbHYWzZZB2N0JlTtimMOHRhZhDJirw==", + "dependencies": { + "vec3": "^0.1.7" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/protodef": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/protodef/-/protodef-1.15.0.tgz", + "integrity": "sha512-bZ2Omw8dT+DACjJHLrBWZlqN4MlT9g9oSpJDdkUAJOStUzgJp+Zn42FJfPUdwutUxjaxA0PftN0PDlNa2XbneA==", + "dependencies": { + "lodash.get": "^4.4.2", + "lodash.reduce": "^4.6.0", + "protodef-validator": "^1.3.0", + "readable-stream": "^3.0.3" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/protodef-validator": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/protodef-validator/-/protodef-validator-1.3.1.tgz", + "integrity": "sha512-lZ5FWKZYR9xOjpMw1+EfZRfCjzNRQWPq+Dk+jki47Sikl2EeWEPnTfnJERwnU/EwFq6us+0zqHHzSsmLeYX+Lg==", + "dependencies": { + "ajv": "^6.5.4" + }, + "bin": { + "protodef-validator": "cli.js" + } + }, + "node_modules/protodef/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/railroad-diagrams": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz", + "integrity": "sha512-cz93DjNeLY0idrCNOH6PviZGRN9GJhsdm9hpn1YCS879fj4W+x5IFJhhkRZcwVgMmFF7R82UA/7Oh+R8lLZg6A==" + }, + "node_modules/randexp": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/randexp/-/randexp-0.4.6.tgz", + "integrity": "sha512-80WNmd9DA0tmZrw9qQa62GPPWfuXJknrmVmLcxvq4uZBdYqb1wYoKTmnlGUchvVWe0XiLupYkBoXVOxz3C8DYQ==", + "dependencies": { + "discontinuous-range": "1.0.0", + "ret": "~0.1.10" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/randombytes": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.3.tgz", + "integrity": "sha512-lDVjxQQFoCG1jcrP06LNo2lbWp4QTShEXnhActFBwYuHprllQV6VUpwreApsYqCgD+N1mHoqJ/BI/4eV4R2GYg==" + }, + "node_modules/randomstring": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/randomstring/-/randomstring-1.3.0.tgz", + "integrity": "sha512-gY7aQ4i1BgwZ8I1Op4YseITAyiDiajeZOPQUbIq9TPGPhUm5FX59izIaOpmKbME1nmnEiABf28d9K2VSii6BBg==", + "dependencies": { + "randombytes": "2.0.3" + }, + "bin": { + "randomstring": "bin/randomstring" + }, + "engines": { + "node": "*" + } + }, + "node_modules/readable-stream": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.0.tgz", + "integrity": "sha512-kDMOq0qLtxV9f/SQv522h8cxZBqNZXuXNyjyezmfAAuribMyVXziljpQ/uQhfE1XLg2/TLTW2DsnoE4VAi/krg==", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/readable-web-to-node-stream": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.2.tgz", + "integrity": "sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw==", + "dependencies": { + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/readable-web-to-node-stream/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "engines": { + "node": ">=0.12" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/sleep-promise": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/sleep-promise/-/sleep-promise-9.1.0.tgz", + "integrity": "sha512-UHYzVpz9Xn8b+jikYSD6bqvf754xL2uBUzDFwiU6NcdZeifPr6UfgU43xpkPu67VMS88+TI2PSI7Eohgqf2fKA==" + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/strtok3": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-7.0.0.tgz", + "integrity": "sha512-pQ+V+nYQdC5H3Q7qBZAz/MO6lwGhoC2gOAjuouGf/VO0m7vQRh8QNMl2Uf6SwAtzZ9bOw3UIeBukEGNJl5dtXQ==", + "dependencies": { + "@tokenizer/token": "^0.3.0", + "peek-readable": "^5.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/token-types": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-5.0.1.tgz", + "integrity": "sha512-Y2fmSnZjQdDb9W4w4r1tswlMHylzWIeOKpx0aZH9BgGtACHhrk3OkT52AzwcuqTRBZtvvnTjDBh8eynMulu8Vg==", + "dependencies": { + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/ts-mixer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.3.tgz", + "integrity": "sha512-k43M7uCG1AkTyxgnmI5MPwKoUvS/bRvLvUb7+Pgpdlmok8AoqmUaZxUUw8zKM5B1lqZrt41GjYgnvAi0fppqgQ==" + }, + "node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/typed-emitter": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/typed-emitter/-/typed-emitter-1.4.0.tgz", + "integrity": "sha512-weBmoo3HhpKGgLBOYwe8EB31CzDFuaK7CCL+axXhUYhn4jo6DSkHnbefboCF5i4DQ2aMFe0C/FdTWcPdObgHyg==" + }, + "node_modules/uint4": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/uint4/-/uint4-0.1.2.tgz", + "integrity": "sha512-lhEx78gdTwFWG+mt6cWAZD/R6qrIj0TTBeH5xwyuDJyswLNlGe+KVlUPQ6+mx5Ld332pS0AMUTo9hIly7YsWxQ==" + }, + "node_modules/undici": { + "version": "5.22.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.22.1.tgz", + "integrity": "sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw==", + "dependencies": { + "busboy": "^1.6.0" + }, + "engines": { + "node": ">=14.0" + } + }, + "node_modules/urban-dictionary": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/urban-dictionary/-/urban-dictionary-3.0.2.tgz", + "integrity": "sha512-hoYevSg6JNr8NiYRtxz7sqBDBu4RL52Bd45L2jQQ44Rwrz6ACmnKnRcUkH2TIQRILN+viZMT/MYYU3OyBz68AA==", + "engines": { + "node": ">=14.15.1" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/uuid-1345": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/uuid-1345/-/uuid-1345-1.0.2.tgz", + "integrity": "sha512-bA5zYZui+3nwAc0s3VdGQGBfbVsJLVX7Np7ch2aqcEWFi5lsAEcmO3+lx3djM1npgpZI8KY2FITZ2uYTnYUYyw==", + "dependencies": { + "macaddress": "^0.5.1" + } + }, + "node_modules/vec3": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/vec3/-/vec3-0.1.8.tgz", + "integrity": "sha512-LfKrP625Bsg/Tj52YdYPsHmpsJuo+tc6fLxZxXjEo9k2xSspKlPvoYTHehykKhp1FvV9nm+XU3Ehej5/9tpDCg==" + }, + "node_modules/vm2": { + "version": "3.9.19", + "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.19.tgz", + "integrity": "sha512-J637XF0DHDMV57R6JyVsTak7nIL8gy5KH4r1HiwWLf/4GBbb5MKL5y7LpmF4A8E2nR6XmzpmMFQ7V7ppPTmUQg==", + "deprecated": "The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm.", + "dependencies": { + "acorn": "^8.7.0", + "acorn-walk": "^8.2.0" + }, + "bin": { + "vm2": "bin/vm2" + }, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xxhash-wasm": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-0.4.2.tgz", + "integrity": "sha512-/eyHVRJQCirEkSZ1agRSCwriMhwlyUcFkXD5TPVSLP+IPzjsqMVzZwdoczLp1SoQU0R3dxz1RpIK+4YNQbCVOA==" + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/yggdrasil": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/yggdrasil/-/yggdrasil-1.7.0.tgz", + "integrity": "sha512-QBIo5fiNd7688G3FqXXYGr36uyrYzczlNuzpWFy2zL3+R+3KT2lF+wFxm51synfA3l3z6IBiGOc1/EVXWCYY1Q==", + "dependencies": { + "node-fetch": "^2.6.1", + "uuid": "^8.2.0" + } + } + }, + "dependencies": { + "@azure/msal-common": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-13.0.0.tgz", + "integrity": "sha512-GqCOg5H5bouvLij9NFXFkh+asRRxsPBRwnTDsfK7o0KcxYHJbuidKw8/VXpycahGXNxgtuhqtK/n5he+5NhyEA==" + }, + "@azure/msal-node": { + "version": "1.17.2", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-1.17.2.tgz", + "integrity": "sha512-l8edYnA2LQj4ue3pjxVz1Qy4HuU5xbcoebfe2bGTRvBL9Q6n2Df47aGftkLIyimD1HxHuA4ZZOe23a/HshoYXw==", + "requires": { + "@azure/msal-common": "13.0.0", + "jsonwebtoken": "^9.0.0", + "uuid": "^8.3.0" + } + }, + "@discordjs/builders": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.6.3.tgz", + "integrity": "sha512-CTCh8NqED3iecTNuiz49mwSsrc2iQb4d0MjMdmS/8pb69Y4IlzJ/DIy/p5GFlgOrFbNO2WzMHkWKQSiJ3VNXaw==", + "requires": { + "@discordjs/formatters": "^0.3.1", + "@discordjs/util": "^0.3.1", + "@sapphire/shapeshift": "^3.8.2", + "discord-api-types": "^0.37.41", + "fast-deep-equal": "^3.1.3", + "ts-mixer": "^6.0.3", + "tslib": "^2.5.0" + } + }, + "@discordjs/collection": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.5.1.tgz", + "integrity": "sha512-aWEc9DCf3TMDe9iaJoOnO2+JVAjeRNuRxPZQA6GVvBf+Z3gqUuWYBy2NWh4+5CLYq5uoc3MOvUQ5H5m8CJBqOA==" + }, + "@discordjs/formatters": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@discordjs/formatters/-/formatters-0.3.1.tgz", + "integrity": "sha512-M7X4IGiSeh4znwcRGcs+49B5tBkNDn4k5bmhxJDAUhRxRHTiFAOTVUNQ6yAKySu5jZTnCbSvTYHW3w0rAzV1MA==", + "requires": { + "discord-api-types": "^0.37.41" + } + }, + "@discordjs/rest": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-1.7.1.tgz", + "integrity": "sha512-Ofa9UqT0U45G/eX86cURQnX7gzOJLG2oC28VhIk/G6IliYgQF7jFByBJEykPSHE4MxPhqCleYvmsrtfKh1nYmQ==", + "requires": { + "@discordjs/collection": "^1.5.1", + "@discordjs/util": "^0.3.0", + "@sapphire/async-queue": "^1.5.0", + "@sapphire/snowflake": "^3.4.2", + "discord-api-types": "^0.37.41", + "file-type": "^18.3.0", + "tslib": "^2.5.0", + "undici": "^5.22.0" + } + }, + "@discordjs/util": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@discordjs/util/-/util-0.3.1.tgz", + "integrity": "sha512-HxXKYKg7vohx2/OupUN/4Sd02Ev3PBJ5q0gtjdcvXb0ErCva8jNHWfe/v5sU3UKjIB/uxOhc+TDOnhqffj9pRA==" + }, + "@discordjs/ws": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-0.8.3.tgz", + "integrity": "sha512-hcYtppanjHecbdNyCKQNH2I4RP9UrphDgmRgLYrATEQF1oo4sYSve7ZmGsBEXSzH72MO2tBPdWSThunbxUVk0g==", + "requires": { + "@discordjs/collection": "^1.5.1", + "@discordjs/rest": "^1.7.1", + "@discordjs/util": "^0.3.1", + "@sapphire/async-queue": "^1.5.0", + "@types/ws": "^8.5.4", + "@vladfrangu/async_event_emitter": "^2.2.1", + "discord-api-types": "^0.37.41", + "tslib": "^2.5.0", + "ws": "^8.13.0" + } + }, + "@sapphire/async-queue": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.5.0.tgz", + "integrity": "sha512-JkLdIsP8fPAdh9ZZjrbHWR/+mZj0wvKS5ICibcLrRI1j84UmLMshx5n9QmL8b95d4onJ2xxiyugTgSAX7AalmA==" + }, + "@sapphire/shapeshift": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/@sapphire/shapeshift/-/shapeshift-3.9.0.tgz", + "integrity": "sha512-iJpHmjAdwX9aSL6MvFpVyo+tkokDtInmSjoJHbz/k4VJfnim3DjvG0hgGEKWtWZgCu45RaLgcoNgR1fCPdIz3w==", + "requires": { + "fast-deep-equal": "^3.1.3", + "lodash": "^4.17.21" + } + }, + "@sapphire/snowflake": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/@sapphire/snowflake/-/snowflake-3.5.1.tgz", + "integrity": "sha512-BxcYGzgEsdlG0dKAyOm0ehLGm2CafIrfQTZGWgkfKYbj+pNNsorZ7EotuZukc2MT70E0UbppVbtpBrqpzVzjNA==" + }, + "@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==" + }, + "@types/node": { + "version": "20.1.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.1.3.tgz", + "integrity": "sha512-NP2yfZpgmf2eDRPmgGq+fjGjSwFgYbihA8/gK+ey23qT9RkxsgNTZvGOEpXgzIGqesTYkElELLgtKoMQTys5vA==" + }, + "@types/readable-stream": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-4.0.0.tgz", + "integrity": "sha512-s6YqDV111kwuFsT9SwFC+FmZ5n1SEp4H9DXGg6Zqag0lPGeEvBGP9UaLJYpX4cxY7fAFnx2avy1QVvft0LLb7g==", + "requires": { + "@types/node": "*", + "safe-buffer": "~5.1.1" + } + }, + "@types/ws": { + "version": "8.5.4", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", + "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", + "requires": { + "@types/node": "*" + } + }, + "@vladfrangu/async_event_emitter": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@vladfrangu/async_event_emitter/-/async_event_emitter-2.2.2.tgz", + "integrity": "sha512-HIzRG7sy88UZjBJamssEczH5q7t5+axva19UbZLO6u0ySbYPrwzWiXBcC0WuHyhKKoeCyneH+FvYzKQq/zTtkQ==" + }, + "@xboxreplay/errors": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@xboxreplay/errors/-/errors-0.1.0.tgz", + "integrity": "sha512-Tgz1d/OIPDWPeyOvuL5+aai5VCcqObhPnlI3skQuf80GVF3k1I0lPCnGC+8Cm5PV9aLBT5m8qPcJoIUQ2U4y9g==" + }, + "@xboxreplay/xboxlive-auth": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@xboxreplay/xboxlive-auth/-/xboxlive-auth-3.3.3.tgz", + "integrity": "sha512-j0AU8pW10LM8O68CTZ5QHnvOjSsnPICy0oQcP7zyM7eWkDQ/InkiQiirQKsPn1XRYDl4ccNu0WM582s3UKwcBg==", + "requires": { + "@xboxreplay/errors": "^0.1.0", + "axios": "^0.21.1" + } + }, + "abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "requires": { + "event-target-shim": "^5.0.0" + } + }, + "acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==" + }, + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" + }, + "adm-zip": { + "version": "0.4.16", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", + "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==" + }, + "aes-js": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.1.2.tgz", + "integrity": "sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==" + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "asn1": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", + "integrity": "sha512-6i37w/+EhlWlGUJff3T/Q8u1RGmP5wgbiwYnOnbOqvtrPxT63/sYFyP9RcpxtxGymtfA075IvmOnL7ycNOWl3w==" + }, + "axios": { + "version": "0.21.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", + "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "requires": { + "follow-redirects": "^1.14.0" + } + }, + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + }, + "binary-parser": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/binary-parser/-/binary-parser-1.9.2.tgz", + "integrity": "sha512-aQvTapiRIV/x7bAaR2KT3Ptyjff4R8i1zxljgw/Je2kUt0babNPUdtuo7AKN4CWklyzPK4u5e99Z9/3Ib03u9w==", + "requires": { + "fast-text-encoding": "^1.0.3" + } + }, + "buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "buffer-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.1.tgz", + "integrity": "sha512-QoV3ptgEaQpvVwbXdSO39iqPQTCxSF7A5U99AxbHYqUdCizL/lH2Z0A2y6nbZucxMEOtNyZfG2s6gsVugGpKkg==" + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + }, + "busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "requires": { + "streamsearch": "^1.1.0" + } + }, + "cjson": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cjson/-/cjson-0.5.0.tgz", + "integrity": "sha512-D3CKJU9YnZNyerUQ1IzNUvMnToP3MGC2XbIAPi/7yqunJJW3rBwCVapousoFtaR9IbejeEM0KIshxC1n4HQcXw==", + "requires": { + "json-parse-helpfulerror": "^1.0.3" + } + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "discontinuous-range": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/discontinuous-range/-/discontinuous-range-1.0.0.tgz", + "integrity": "sha512-c68LpLbO+7kP/b1Hr1qs8/BJ09F5khZGTxqxZuhzxpmwJKOgRFHJWIb9/KmqnqHhLdO55aOxFH/EGBvUQbL/RQ==" + }, + "discord-api-types": { + "version": "0.37.42", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.42.tgz", + "integrity": "sha512-1Huaj9cQ1W7/uryS8MZs/tZemnoKB94thM1cE40lep3rpU3q7WHqkdjN/veX0prTkYlPhcyLd/DeF/pBO8X8oQ==" + }, + "discord.js": { + "version": "14.11.0", + "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.11.0.tgz", + "integrity": "sha512-CkueWYFQ28U38YPR8HgsBR/QT35oPpMbEsTNM30Fs8loBIhnA4s70AwQEoy6JvLcpWWJO7GY0y2BUzZmuBMepQ==", + "requires": { + "@discordjs/builders": "^1.6.3", + "@discordjs/collection": "^1.5.1", + "@discordjs/formatters": "^0.3.1", + "@discordjs/rest": "^1.7.1", + "@discordjs/util": "^0.3.1", + "@discordjs/ws": "^0.8.3", + "@sapphire/snowflake": "^3.4.2", + "@types/ws": "^8.5.4", + "discord-api-types": "^0.37.41", + "fast-deep-equal": "^3.1.3", + "lodash.snakecase": "^4.1.1", + "tslib": "^2.5.0", + "undici": "^5.22.0", + "ws": "^8.13.0" + } + }, + "dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==" + }, + "ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "endian-toggle": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/endian-toggle/-/endian-toggle-0.0.0.tgz", + "integrity": "sha512-ShfqhXeHRE4TmggSlHXG8CMGIcsOsqDw/GcoPcosToE59Rm9e4aXaMhEQf2kPBsBRrKem1bbOAv5gOKnkliMFQ==" + }, + "event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "fast-text-encoding": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.6.tgz", + "integrity": "sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==" + }, + "file-type": { + "version": "18.4.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-18.4.0.tgz", + "integrity": "sha512-o6MQrZKTAK6WpvmQk3jqTVUmqxYBxW5bloUfrdH1ZnRFDvvAPNr+l+rgOxM3nkqWT+3khaj3FRMDydWe0xhu+w==", + "requires": { + "readable-web-to-node-stream": "^3.0.2", + "strtok3": "^7.0.0", + "token-types": "^5.0.1" + } + }, + "follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" + }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + }, + "illegal-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/illegal-symbols/-/illegal-symbols-1.0.0.tgz", + "integrity": "sha512-jHkPIiG9ejGry/brHWL9cfFILgnVQwzE+SFslHB/fB47xEspD/LT0oQnFuUOWz03yGEfCouNZ+9wlP+hPM2kIA==" + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "jju": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", + "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==" + }, + "jose": { + "version": "4.14.4", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.14.4.tgz", + "integrity": "sha512-j8GhLiKmUAh+dsFXlX1aJCbt5KMibuKb+d7j1JaOJG6s2UjX1PQlW+OKB/sD4a/5ZYF4RcmYmLSndOoU3Lt/3g==" + }, + "json-parse-helpfulerror": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/json-parse-helpfulerror/-/json-parse-helpfulerror-1.0.3.tgz", + "integrity": "sha512-XgP0FGR77+QhUxjXkwOMkC94k3WtqEBfcnjWqhRd82qTat4SWKRE+9kUnynz/shm3I4ea2+qISvTIeGTNU7kJg==", + "requires": { + "jju": "^1.1.0" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "jsonwebtoken": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", + "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", + "requires": { + "jws": "^3.2.2", + "lodash": "^4.17.21", + "ms": "^2.1.1", + "semver": "^7.3.8" + } + }, + "jvm": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/jvm/-/jvm-0.5.3.tgz", + "integrity": "sha512-Sz6UChiOHgQgr4/wGA6w+sbKaxALv3EiAaZPLGWV5kYju+DuYXSLHyKkLTmYAOlUhSNedEU3In1TUXapAJV0cA==", + "requires": { + "adm-zip": "^0.4.9", + "binary-parser": "^1.1.5", + "cjson": "^0.5.0", + "lodash": "^4.17.5" + } + }, + "jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "requires": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" + }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + }, + "lodash.reduce": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz", + "integrity": "sha512-6raRe2vxCYBhpBu+B+TtNGUzah+hQjVdu3E17wfusjyrXBka2nBS8OH/gjVZ5PvHOhWmIZTYri09Z6n/QfnNMw==" + }, + "lodash.snakecase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==" + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } + }, + "macaddress": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/macaddress/-/macaddress-0.5.3.tgz", + "integrity": "sha512-vGBKTA+jwM4KgjGZ+S/8/Mkj9rWzePyGY6jManXPGhiWu63RYwW8dKPyk5koP+8qNVhPhHgFa1y/MJ4wrjsNrg==" + }, + "man-db": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/man-db/-/man-db-1.0.3.tgz", + "integrity": "sha512-ZJ83PlqpgeaZSHCWgAwq7oCzrlUKa7BgiJjJLWOPblU4G2y5t7mz9GdIeVpZPax8cFx4cA6yYDcE1TWwmW+eCw==" + }, + "minecraft-data": { + "version": "3.41.0", + "resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-3.41.0.tgz", + "integrity": "sha512-Xy2S5wZEImE60RknhaVJub6xpMv4t0vWd0/fGzbq1xix2dEG7U6YV/tbRrt6UvPi7jcK+uqR4T/INH7LQMFdqQ==" + }, + "minecraft-folder-path": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minecraft-folder-path/-/minecraft-folder-path-1.2.0.tgz", + "integrity": "sha512-qaUSbKWoOsH9brn0JQuBhxNAzTDMwrOXorwuRxdJKKKDYvZhtml+6GVCUrY5HRiEsieBEjCUnhVpDuQiKsiFaw==" + }, + "minecraft-packets": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/minecraft-packets/-/minecraft-packets-1.5.0.tgz", + "integrity": "sha512-my9kZoqdv3kLt8YTjmPkCSCM1An+NLxuCFhi6j8NTY2BF5JYHh69EHs/RghwxPUH5XPM0aaSAvs3/UCrOL/+hg==" + }, + "minecraft-protocol": { + "version": "1.44.0", + "resolved": "https://registry.npmjs.org/minecraft-protocol/-/minecraft-protocol-1.44.0.tgz", + "integrity": "sha512-sYu4fFzUKt3spPG5tAdkaB9sNQPT0sV6fyS0sS7/nxdzFfjmLhF6BLNC+32ieK4/MhgNyHtH6xusD0Bi0Roq9w==", + "requires": { + "@types/readable-stream": "^4.0.0", + "aes-js": "^3.1.2", + "buffer-equal": "^1.0.0", + "debug": "^4.3.2", + "endian-toggle": "^0.0.0", + "lodash.get": "^4.1.2", + "lodash.merge": "^4.3.0", + "minecraft-data": "^3.37.0", + "minecraft-folder-path": "^1.2.0", + "node-fetch": "^2.6.1", + "node-rsa": "^0.4.2", + "prismarine-auth": "^2.2.0", + "prismarine-nbt": "^2.0.0", + "prismarine-realms": "^1.2.0", + "protodef": "^1.8.0", + "readable-stream": "^4.1.0", + "uuid-1345": "^1.0.1", + "yggdrasil": "^1.4.0" + } + }, + "mineflayer": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/mineflayer/-/mineflayer-4.10.1.tgz", + "integrity": "sha512-Ixvovd5wtx7ZYzm5YCqgOVoMqTam0LEEMwfOQGQ7Y3AAPk8Ci1rXOZZDdJmn9XRnloRRR8jv2MjQW2kFl7LyQg==", + "requires": { + "minecraft-data": "^3.37.0", + "minecraft-protocol": "^1.43.1", + "prismarine-biome": "^1.1.1", + "prismarine-block": "^1.17.0", + "prismarine-chat": "^1.7.1", + "prismarine-chunk": "^1.34.0", + "prismarine-entity": "^2.2.0", + "prismarine-item": "^1.12.1", + "prismarine-nbt": "^2.0.0", + "prismarine-physics": "^1.7.0", + "prismarine-recipe": "^1.3.0", + "prismarine-registry": "^1.5.0", + "prismarine-windows": "^2.5.0", + "prismarine-world": "^3.6.0", + "protodef": "^1.14.0", + "typed-emitter": "^1.0.0", + "vec3": "^0.1.7" + } + }, + "mineflayer-cmd": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/mineflayer-cmd/-/mineflayer-cmd-1.1.3.tgz", + "integrity": "sha512-CIF4pmgWZgJo8EAqA+g5oim5WMf7omUxqozzdiCJ9eqMdnV4GB7j8r8LtBjZITl8VimE8IB9yPCvMIsamFjHvA==", + "requires": { + "mineflayer": "^2.31.0" + }, + "dependencies": { + "minecraft-data": { + "version": "2.221.0", + "resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-2.221.0.tgz", + "integrity": "sha512-0AhqzbIKb6WqPSF6qBevaPryeWOz545hLxt6q+gfJF8YIQX/YfkyX/nXWhl+pSIS2rTBcQ0RJkRCtTeRzQwHDA==" + }, + "mineflayer": { + "version": "2.41.0", + "resolved": "https://registry.npmjs.org/mineflayer/-/mineflayer-2.41.0.tgz", + "integrity": "sha512-IFFy4NgF24FU2PkAwazJphl2F+3gpbpN578ex0sq1XfcBBRge3kCz1UC2KDMjKI+V/8vffOL+OEnug9jt3f7Vw==", + "requires": { + "minecraft-data": "^2.70.0", + "minecraft-protocol": "^1.17.0", + "prismarine-biome": "^1.1.0", + "prismarine-block": "^1.6.0", + "prismarine-chat": "^1.0.0", + "prismarine-chunk": "^1.20.3", + "prismarine-entity": "^1.0.0", + "prismarine-item": "^1.5.0", + "prismarine-physics": "^1.0.4", + "prismarine-recipe": "^1.1.0", + "prismarine-windows": "^1.5.0", + "prismarine-world": "^3.2.0", + "protodef": "^1.8.0", + "typed-emitter": "^1.2.0", + "vec3": "^0.1.6" + } + }, + "prismarine-entity": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/prismarine-entity/-/prismarine-entity-1.2.0.tgz", + "integrity": "sha512-4dQ9LYl6HDJQrwZHjSKU4D5VNyHRnfrjcw7eVLlbRPkuR50utW5mmfPi4ys9U7tHNmGWHC/cwjH9xzT75LUovQ==", + "requires": { + "vec3": "^0.1.4" + } + }, + "prismarine-windows": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/prismarine-windows/-/prismarine-windows-1.6.0.tgz", + "integrity": "sha512-026LG1yR76Xb62kM+W83IWT7Wy2yKplllbXNFBF2m0Lr4k4YpYKnpLb8tRft8MLOLRbYAt/KnxE/YKvRZul7kw==", + "requires": { + "prismarine-item": "^1.4.0" + } + } + } + }, + "mojangson": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/mojangson/-/mojangson-2.0.2.tgz", + "integrity": "sha512-iGPRE1Ez+W+42Dt4Ao91c9VVs+FmuRUlAFDef76xRX3mbZrTNuezDtFI0PbfYqheg/B0fSiq0Q0V1emZNt37cw==", + "requires": { + "nearley": "^2.19.5" + } + }, + "moo": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz", + "integrity": "sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q==" + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "nearley": { + "version": "2.20.1", + "resolved": "https://registry.npmjs.org/nearley/-/nearley-2.20.1.tgz", + "integrity": "sha512-+Mc8UaAebFzgV+KpI5n7DasuuQCHA89dmwm7JXw3TV43ukfNQ9DnBH3Mdb2g/I4Fdxc26pwimBWvjIw0UAILSQ==", + "requires": { + "commander": "^2.19.0", + "moo": "^0.5.0", + "railroad-diagrams": "^1.0.0", + "randexp": "0.4.6" + } + }, + "node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==", + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "node-rsa": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/node-rsa/-/node-rsa-0.4.2.tgz", + "integrity": "sha512-Bvso6Zi9LY4otIZefYrscsUpo2mUpiAVIEmSZV2q41sP8tHZoert3Yu6zv4f/RXJqMNZQKCtnhDugIuCma23YA==", + "requires": { + "asn1": "0.2.3" + } + }, + "peek-readable": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-5.0.0.tgz", + "integrity": "sha512-YtCKvLUOvwtMGmrniQPdO7MwPjgkFBtFIrmfSbYmYuq3tKDV/mcfAhBth1+C3ru7uXIZasc/pHnb+YDYNkkj4A==" + }, + "prismarine-auth": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/prismarine-auth/-/prismarine-auth-2.2.0.tgz", + "integrity": "sha512-3XfR3bqrd7nrTVyEqMwuYRr+/Vy+hkfBplubSDuoRAcRCs90lDx7R4EG3fjMSoKY53RLTXjeFnsB6m1krhL/2A==", + "requires": { + "@azure/msal-node": "^1.1.0", + "@xboxreplay/xboxlive-auth": "^3.3.3", + "debug": "^4.3.3", + "jose": "^4.1.4", + "node-fetch": "^2.6.1", + "smart-buffer": "^4.1.0", + "uuid-1345": "^1.0.2" + } + }, + "prismarine-biome": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/prismarine-biome/-/prismarine-biome-1.3.0.tgz", + "integrity": "sha512-GY6nZxq93mTErT7jD7jt8YS1aPrOakbJHh39seYsJFXvueIOdHAmW16kYQVrTVMW5MlWLQVxV/EquRwOgr4MnQ==", + "requires": {} + }, + "prismarine-block": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/prismarine-block/-/prismarine-block-1.17.0.tgz", + "integrity": "sha512-GawzWU91pH4sLTtMvrRe2wiEbO8hgTRwViCBYoFmmqeJYLiblq4GfXOvclj3rEAEdAAVzRKCQxQHpLJhhLWssg==", + "requires": { + "minecraft-data": "^3.38.0", + "prismarine-biome": "^1.1.0", + "prismarine-chat": "^1.5.0", + "prismarine-item": "^1.10.1", + "prismarine-nbt": "^2.0.0", + "prismarine-registry": "^1.1.0" + } + }, + "prismarine-chat": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/prismarine-chat/-/prismarine-chat-1.8.0.tgz", + "integrity": "sha512-hEz47GESIEP0W1KSHrK7ZSy0PqbQW7khYWenv8d5wvyAYnBs1E4KXDBJSWqyGIYinKGN9aes8v3xpQhgURK/Fg==", + "requires": { + "mojangson": "^2.0.1", + "prismarine-item": "^1.10.0", + "prismarine-nbt": "^2.0.0", + "prismarine-registry": "^1.4.0" + } + }, + "prismarine-chunk": { + "version": "1.34.0", + "resolved": "https://registry.npmjs.org/prismarine-chunk/-/prismarine-chunk-1.34.0.tgz", + "integrity": "sha512-5RuQk8w9Ot550G5mmUFZvjpHugEXozgEFXiAhynrBCHOKJ3mMQ7VvhWF2irtjx+d2t29yDAiSEiSS34vxAmODQ==", + "requires": { + "prismarine-biome": "^1.2.0", + "prismarine-block": "^1.14.1", + "prismarine-nbt": "^2.2.1", + "prismarine-registry": "^1.1.0", + "smart-buffer": "^4.1.0", + "uint4": "^0.1.2", + "vec3": "^0.1.3", + "xxhash-wasm": "^0.4.2" + } + }, + "prismarine-entity": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/prismarine-entity/-/prismarine-entity-2.2.0.tgz", + "integrity": "sha512-boqJbMpGHG2ddFUUo9aKkKPUHQbFMWkUCw8SRdZ+jrZxABsstL9619I8ujwPYoOMJjMyfYWgdEPNyHGiUqqukA==", + "requires": { + "minecraft-data": "^3.0.0", + "prismarine-chat": "^1.4.1", + "prismarine-item": "^1.11.2", + "prismarine-registry": "^1.4.0", + "vec3": "^0.1.4" + } + }, + "prismarine-item": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/prismarine-item/-/prismarine-item-1.12.1.tgz", + "integrity": "sha512-Q+cV8WCM6gTO/K8gIpe4sTCVj0wdXy/IIctpQhgj4iRPoRY/rLCI88FAGsLNU1cabOFQDO3a0NIz+KLvhOvbQA==", + "requires": { + "prismarine-nbt": "^2.0.0", + "prismarine-registry": "^1.4.0" + } + }, + "prismarine-nbt": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/prismarine-nbt/-/prismarine-nbt-2.2.1.tgz", + "integrity": "sha512-Mb50c58CPnuZ+qvM31DBa08tf9UumlTq1LkvpMoUpKfCuN05GZHTqCUwER3lxTSHLL0GZKghIPbYR/JQkINijQ==", + "requires": { + "protodef": "^1.9.0" + } + }, + "prismarine-physics": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/prismarine-physics/-/prismarine-physics-1.7.0.tgz", + "integrity": "sha512-NIm13HYQU6gzWyzb64eSS2civSbnn4cmqZgX+o27TWZMdqJEqmwPZaHSo9rHhPT96c3ZodelRE4qGIEE7q4gow==", + "requires": { + "minecraft-data": "^3.0.0", + "prismarine-nbt": "^2.0.0", + "vec3": "^0.1.7" + } + }, + "prismarine-realms": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/prismarine-realms/-/prismarine-realms-1.3.2.tgz", + "integrity": "sha512-5apl9Ru8veTj5q2OozRc4GZOuSIcs3yY4UEtALiLKHstBe8bRw8vNlaz4Zla3jsQ8yP/ul1b1IJINTRbocuA6g==", + "requires": { + "debug": "^4.3.3", + "node-fetch": "^2.6.1" + } + }, + "prismarine-recipe": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/prismarine-recipe/-/prismarine-recipe-1.3.1.tgz", + "integrity": "sha512-xfa9E9ACoaDi+YzNQ+nk8kWSIqt5vSZOOCHIT+dTXscf/dng2HaJ/59uwe1D/jvOkAd2OvM6RRJM6fFe0q/LDA==", + "requires": {} + }, + "prismarine-registry": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/prismarine-registry/-/prismarine-registry-1.7.0.tgz", + "integrity": "sha512-yyva0FpWI078nNeMhx8ekVza5uUTYhEv+C+ADu3wUQXiG8qhXkvrf0uzsnhTgZL8BLdsi2axgCEiKw9qSKIuxQ==", + "requires": { + "minecraft-data": "^3.0.0", + "prismarine-nbt": "^2.0.0" + } + }, + "prismarine-windows": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/prismarine-windows/-/prismarine-windows-2.6.1.tgz", + "integrity": "sha512-5B8+W4Zb9MWaakd38I/WW564zEgat6bC23ftcv15yVYmHZTq8mtUfX2GsOUD3Pu/aFKarvXpyyJahFMUTUVoXg==", + "requires": { + "prismarine-item": "^1.5.0", + "prismarine-registry": "^1.5.0", + "typed-emitter": "^1.0.0" + } + }, + "prismarine-world": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prismarine-world/-/prismarine-world-3.6.2.tgz", + "integrity": "sha512-xNNo3bd8EnCMjiPbVrh3jYa1Upa8Krkb13BgO7FOOfD5ZYf+iYDZewBtDbHYWzZZB2N0JlTtimMOHRhZhDJirw==", + "requires": { + "vec3": "^0.1.7" + } + }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==" + }, + "protodef": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/protodef/-/protodef-1.15.0.tgz", + "integrity": "sha512-bZ2Omw8dT+DACjJHLrBWZlqN4MlT9g9oSpJDdkUAJOStUzgJp+Zn42FJfPUdwutUxjaxA0PftN0PDlNa2XbneA==", + "requires": { + "lodash.get": "^4.4.2", + "lodash.reduce": "^4.6.0", + "protodef-validator": "^1.3.0", + "readable-stream": "^3.0.3" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } + } + }, + "protodef-validator": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/protodef-validator/-/protodef-validator-1.3.1.tgz", + "integrity": "sha512-lZ5FWKZYR9xOjpMw1+EfZRfCjzNRQWPq+Dk+jki47Sikl2EeWEPnTfnJERwnU/EwFq6us+0zqHHzSsmLeYX+Lg==", + "requires": { + "ajv": "^6.5.4" + } + }, + "punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" + }, + "railroad-diagrams": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz", + "integrity": "sha512-cz93DjNeLY0idrCNOH6PviZGRN9GJhsdm9hpn1YCS879fj4W+x5IFJhhkRZcwVgMmFF7R82UA/7Oh+R8lLZg6A==" + }, + "randexp": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/randexp/-/randexp-0.4.6.tgz", + "integrity": "sha512-80WNmd9DA0tmZrw9qQa62GPPWfuXJknrmVmLcxvq4uZBdYqb1wYoKTmnlGUchvVWe0XiLupYkBoXVOxz3C8DYQ==", + "requires": { + "discontinuous-range": "1.0.0", + "ret": "~0.1.10" + } + }, + "randombytes": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.3.tgz", + "integrity": "sha512-lDVjxQQFoCG1jcrP06LNo2lbWp4QTShEXnhActFBwYuHprllQV6VUpwreApsYqCgD+N1mHoqJ/BI/4eV4R2GYg==" + }, + "randomstring": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/randomstring/-/randomstring-1.3.0.tgz", + "integrity": "sha512-gY7aQ4i1BgwZ8I1Op4YseITAyiDiajeZOPQUbIq9TPGPhUm5FX59izIaOpmKbME1nmnEiABf28d9K2VSii6BBg==", + "requires": { + "randombytes": "2.0.3" + } + }, + "readable-stream": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.0.tgz", + "integrity": "sha512-kDMOq0qLtxV9f/SQv522h8cxZBqNZXuXNyjyezmfAAuribMyVXziljpQ/uQhfE1XLg2/TLTW2DsnoE4VAi/krg==", + "requires": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10" + } + }, + "readable-web-to-node-stream": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.2.tgz", + "integrity": "sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw==", + "requires": { + "readable-stream": "^3.6.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } + } + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==" + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "sleep-promise": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/sleep-promise/-/sleep-promise-9.1.0.tgz", + "integrity": "sha512-UHYzVpz9Xn8b+jikYSD6bqvf754xL2uBUzDFwiU6NcdZeifPr6UfgU43xpkPu67VMS88+TI2PSI7Eohgqf2fKA==" + }, + "smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" + }, + "streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==" + }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "requires": { + "safe-buffer": "~5.2.0" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + } + } + }, + "strtok3": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-7.0.0.tgz", + "integrity": "sha512-pQ+V+nYQdC5H3Q7qBZAz/MO6lwGhoC2gOAjuouGf/VO0m7vQRh8QNMl2Uf6SwAtzZ9bOw3UIeBukEGNJl5dtXQ==", + "requires": { + "@tokenizer/token": "^0.3.0", + "peek-readable": "^5.0.0" + } + }, + "token-types": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-5.0.1.tgz", + "integrity": "sha512-Y2fmSnZjQdDb9W4w4r1tswlMHylzWIeOKpx0aZH9BgGtACHhrk3OkT52AzwcuqTRBZtvvnTjDBh8eynMulu8Vg==", + "requires": { + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + } + }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "ts-mixer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.3.tgz", + "integrity": "sha512-k43M7uCG1AkTyxgnmI5MPwKoUvS/bRvLvUb7+Pgpdlmok8AoqmUaZxUUw8zKM5B1lqZrt41GjYgnvAi0fppqgQ==" + }, + "tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "typed-emitter": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/typed-emitter/-/typed-emitter-1.4.0.tgz", + "integrity": "sha512-weBmoo3HhpKGgLBOYwe8EB31CzDFuaK7CCL+axXhUYhn4jo6DSkHnbefboCF5i4DQ2aMFe0C/FdTWcPdObgHyg==" + }, + "uint4": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/uint4/-/uint4-0.1.2.tgz", + "integrity": "sha512-lhEx78gdTwFWG+mt6cWAZD/R6qrIj0TTBeH5xwyuDJyswLNlGe+KVlUPQ6+mx5Ld332pS0AMUTo9hIly7YsWxQ==" + }, + "undici": { + "version": "5.22.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.22.1.tgz", + "integrity": "sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw==", + "requires": { + "busboy": "^1.6.0" + } + }, + "urban-dictionary": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/urban-dictionary/-/urban-dictionary-3.0.2.tgz", + "integrity": "sha512-hoYevSg6JNr8NiYRtxz7sqBDBu4RL52Bd45L2jQQ44Rwrz6ACmnKnRcUkH2TIQRILN+viZMT/MYYU3OyBz68AA==" + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "requires": { + "punycode": "^2.1.0" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + }, + "uuid-1345": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/uuid-1345/-/uuid-1345-1.0.2.tgz", + "integrity": "sha512-bA5zYZui+3nwAc0s3VdGQGBfbVsJLVX7Np7ch2aqcEWFi5lsAEcmO3+lx3djM1npgpZI8KY2FITZ2uYTnYUYyw==", + "requires": { + "macaddress": "^0.5.1" + } + }, + "vec3": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/vec3/-/vec3-0.1.8.tgz", + "integrity": "sha512-LfKrP625Bsg/Tj52YdYPsHmpsJuo+tc6fLxZxXjEo9k2xSspKlPvoYTHehykKhp1FvV9nm+XU3Ehej5/9tpDCg==" + }, + "vm2": { + "version": "3.9.19", + "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.19.tgz", + "integrity": "sha512-J637XF0DHDMV57R6JyVsTak7nIL8gy5KH4r1HiwWLf/4GBbb5MKL5y7LpmF4A8E2nR6XmzpmMFQ7V7ppPTmUQg==", + "requires": { + "acorn": "^8.7.0", + "acorn-walk": "^8.2.0" + } + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "requires": {} + }, + "xxhash-wasm": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-0.4.2.tgz", + "integrity": "sha512-/eyHVRJQCirEkSZ1agRSCwriMhwlyUcFkXD5TPVSLP+IPzjsqMVzZwdoczLp1SoQU0R3dxz1RpIK+4YNQbCVOA==" + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "yggdrasil": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/yggdrasil/-/yggdrasil-1.7.0.tgz", + "integrity": "sha512-QBIo5fiNd7688G3FqXXYGr36uyrYzczlNuzpWFy2zL3+R+3KT2lF+wFxm51synfA3l3z6IBiGOc1/EVXWCYY1Q==", + "requires": { + "node-fetch": "^2.6.1", + "uuid": "^8.2.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..ecff5f6 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "dependencies": { + "discord.js": "^14.11.0", + "dotenv": "^16.3.1", + "illegal-symbols": "^1.0.0", + "jvm": "^0.5.3", + "man-db": "^1.0.3", + "minecraft-data": "^3.36.1", + "minecraft-packets": "^1.5.0", + "minecraft-protocol": "^1.44.0", + "mineflayer": "^4.10.1", + "mineflayer-cmd": "^1.1.3", + "prismarine-auth": "^2.2.0", + "prismarine-chat": "^1.8.0", + "prismarine-registry": "^1.7.0", + "randomstring": "^1.3.0", + "sleep-promise": "^9.1.0", + "urban-dictionary": "^3.0.2", + "vm2": "^3.9.19" + } +} diff --git a/replit.nix b/replit.nix new file mode 100644 index 0000000..094a23b --- /dev/null +++ b/replit.nix @@ -0,0 +1,12 @@ +{ pkgs }: { + deps = [ + pkgs.python39Full + pkgs.nodejs + pkgs.nodejs-18_x + pkgs.nodejs-16_x + pkgs.nodejs-19_x + pkgs.nodePackages.typescript-language-server + pkgs.yarn + pkgs.replitPackages.jest + ]; +} \ No newline at end of file diff --git a/util/between.js b/util/between.js new file mode 100644 index 0000000..342a396 --- /dev/null +++ b/util/between.js @@ -0,0 +1,7 @@ +function between (min, max) { + return Math.floor( + Math.random() * (max - min) + min + ) +} + +module.exports = between diff --git a/util/blacklist util/blacklist_deop_selfcare.js b/util/blacklist util/blacklist_deop_selfcare.js new file mode 100644 index 0000000..e69de29 diff --git a/util/blacklist util/blacklist_icu_selfcare.js b/util/blacklist util/blacklist_icu_selfcare.js new file mode 100644 index 0000000..e69de29 diff --git a/util/blacklist util/blacklist_mute_selfcare.js b/util/blacklist util/blacklist_mute_selfcare.js new file mode 100644 index 0000000..e69de29 diff --git a/util/blacklist util/usernames.txt b/util/blacklist util/usernames.txt new file mode 100644 index 0000000..e69de29 diff --git a/util/eval_colors.js b/util/eval_colors.js new file mode 100644 index 0000000..98e9498 --- /dev/null +++ b/util/eval_colors.js @@ -0,0 +1,22 @@ +const styles = { + bigint: '\xa76', + boolean: '\xa76', + date: '\xa75', + module: '\xa7n', + name: undefined, + null: '\xa7l', + number: '\xa76', + regexp: '\xa74', + special: '\xa73', + string: '\xa72', + symbol: '\xa72', + undefined: '\xa78' +} + +function stylize (str, styleType) { + const style = styles[styleType] + if (style !== undefined) return `${style}${str}\xa7r` + return str +} + +module.exports = { stylize, styles }