diff --git a/index.js b/index.js index 2f876ff..3e10da8 100644 --- a/index.js +++ b/index.js @@ -3,17 +3,22 @@ let symbol = require('illegal-symbols') var server = 'sus.shhnowisnottheti.me' //NMxigAU6dR1KfgaQkKz87L const readline = require('readline') +let chunk = ('prismarine-chunk') +const protocol = ('minecraft-protocol') +let auth = ('mineflayer-auto-auth') +let bcraw = ('prismarine=chat') let rl = readline.createInterface({ input: process.stdin, output: process.stdout }) + const randomstring = require('randomstring'); const bot = mineflayer.createBot({ host: server, port: 25565, username: randomstring.generate(8), version: 1.17, - + auth: 'mineflayer-auto-auth' }) var sleep = t => new Promise(a => setTimeout(a, t)), @@ -47,41 +52,45 @@ bot.on('login', async () => { // time in ms //change the coords if bot has problems //await sendChat('/tp '+require('randomstring').generate({length:5,charset:'1234567890'})+' 5 '+require('randomstring').generate({length:6,charset:'1234567890'})) - + await sendChat('/world 3') + await sendChat('/tptoggle parker2991') + await sendChat('/tp parker2991') + await sendChat('/tptoggle parker2991') await sendChat('/tptoggle') await sendChat('/online') await sendChat('/v on') await sendChat('/console ') - await sendChat('/username Parker2991') + await sendChat('/username') await sendChat('/c') + await sendChat('/gmc') - await sendChat('/top') + await sendChat('/minecraft:reload') await sendChat('/night') await sendChat('/gamerule doMobSpawning false') await sendChat('/de') await sendChat('/online') await sendChat('/cspy on') await sendChat('/prefix &4[BOT/CONSOLE]') - await sendChat('/sudo parker2991 &8&l[&b&lOwner of the FNFBoyfriendbot&8&l])') - + await sendChat('/sudo parker2991 prefix &8&l[&4&lOwner of the &b&lFNFBoyfriend&4&lbot&8&l]') +await sendChat('/sudo spimtheoctoling prefix &8&l[&&lOwner of the VeemoBot&8&l]') await sendChat(`/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)} command_block replace`) - runInCore ('bcraw ' + prefix + '&b&lOwner &8&lis &4&lParker2991') - runInCore ('bcraw ' + prefix + '&a &lVersion &a1.2') + runInCore ('bcraw ' + prefix + '&b&lOwner &4&lis &4&lParker2991') + runInCore ('bcraw ' + prefix + ' + + runInCore ('bcraw ' + prefix + '&a&l Version &a&l2.0 RELEASE') + runInCore ('bcraw ' + prefix + 'full bot release &8&l1/26/23 &8&l1:47am &8&lCentral &8<ime') - runInCore ('bcraw ' + prefix + '&a&lVersion 2.0 release date is unknown i may release the beta first ^-^ but it is being worked on as of right now but alot of good commands are coming even reworked commands planned release 2/8/23 or 2/10/23') -runInCore ('bcraw ' + prefix + 'i will add commands to the bot that yall request for 2.0 give ideas i will be glad to accept request just dont make it screwed up requests') -runInCore ('bcraw ' + prefix + 'also whitelists are and auto op are stil on hold until i can figure out how to but i will do a early whitelist concept for people that want access to the bot but cant be any people that troll i will ask people questions to see if they can be trusted') - runInCore ('bcraw ' + prefix + 'current people that have access to it logintimedout, CNWPlayer,and Werewolfboy4 im also gonna ask chip on how to add a whitelist or ask ginlang i dont know') - + + runInCore ('bcraw ' + prefix + 'Boffy:im jesus i dont fucking know') + }) const cmd = require('mineflayer-cmd').plugin cmd.allowConsoleInput = false // Optional config argument bot.loadPlugin(cmd) -//kill command function -//test command +//nuke command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -99,7 +108,7 @@ rl.on('line', (line) => { break } }) - +//fakekick command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -107,55 +116,36 @@ rl.on('line', (line) => { switch (command) { case 'fakekick': runInCore('msg ' + args + ' @e @e @e @e @e @e @e @e @e') - + runInCore('bcraw &8&l[&b&m&lFNFBoyfriendbot&8&l] ' + args + ' has been kicked!') break } }) -//powertool command - rl.on('line', (line) => { - let args = line.split(' ') - let command = args.shift() - -switch (command) { - - - - case 'Powertool': - runInCore('sudo ' + args.join + 'pt') - runInCore('bcraw enjoy your new powertool') - - break - } - -}) - +//gmc command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() switch (command) { case 'gmc': - runInCore('sudo * gmc') + runInCore('sudo + botusername gmc') runInCore('bcraw &4DOWN IN OHIO!') break } }) - - - +//deop command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() switch (command) { case 'deop': - setInterval(function() { runInCore('sudo ' + + 'deop @s[type=player]'), 1 }) + setInterval(function() { runInCore('sudo + playerusername deop @s[type=player]'), 1 }) } }) - +//kaboom command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -169,7 +159,7 @@ rl.on('line', (line) => { } }) - +//BOOM command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -190,6 +180,7 @@ runInCore('sudo * /sphere tnt 75') } }) +//kick command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -197,14 +188,14 @@ runInCore('sudo * /sphere tnt 75') switch (command) { case 'kick': - runInCore('/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') + runInCore ('/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') runInCore('bcraw &8&l[&b&m&lBoyfriendbot]&8 ' + args + ' has been kicked!') break } }) - +//greeting command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -212,43 +203,48 @@ rl.on('line', (line) => { switch (command) { case 'greeting': - runInCore('bcraw &e Ayunami2000 Joined the game') + runInCore('bcraw &eAyunami2000 Joined the game') break } }) +//fakeban commnad rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() switch (command) { - case 'ban': + case 'fakeban': runInCore('msg ' + args + ' @e @e @e @e @e @e @e @e @e') runInCore('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': - setInterval(function() { runInCore('essentials:smite *' + args), 1 }) + runInCore('essentials:smite *' + args) + runInCore('bcraw ' + prefix + '&4&lI AM ZEUS') break } }) +//OHHAIL console rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() switch (command) { - case 'console': - runInCore('sudo * c: why not' + args.join(' ')) + case 'OHHAIL': + runInCore('sudo * c: OH HAIL FIRE MOTHER FUCKER' + args.join(' ')) break } }) +//servercrash command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -259,11 +255,7 @@ rl.on('line', (line) => { break } }) - - - - - +//explode command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -277,7 +269,7 @@ rl.on('line', (line) => { break } }) - +//trol command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -296,6 +288,7 @@ rl.on('line', (line) => { break } }) +//cloop command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -308,9 +301,114 @@ rl.on('line', (line) => { } }) +//altcrash command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + switch (command) { + case 'altcrash': + setInterval(function() { runInCore('sudo * execute at @a run give @a diamond_hoe 64'), 1 }) + setInterval(function() { runInCore('bcraw ' + prefix + '&8&l Have fun with hoes =) '), 1 }) + runInCore + break + } +}) +//Myhead command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + switch (command) { + case 'MyHead': + runInCore('give @a minecraft:player_head{SkullOwner:Parker2991}') + break + } +}) +//MYLEG! command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + switch (command) { + case 'MYLEG': + runInCore('bcraw ' + prefix + '&a&lMY LEG!!!') + runInCore('give @a bone 64') + break + } +}) +//KFCFINGERLICKINGOOD command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'KFC': + runInCore('give @a cooked_chicken 64') + runInCore('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': + runInCore('give @a diamond_sword') + runInCore('sudo * enchantall') + runInCore('bcraw ' + prefix + 'GOD SWORD!!!!!!!!!!!!!!!!!') + break + } +}) +//technoblade command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case 'technoblade': + runInCore('sudo * summon pig') + runInCore('bcraw ' + prefix + 'Rest in peace technoblade we will always love and remember what you have done for youtube technoblade if you can here 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': + runInCore('bcraw ' + prefix + 'OH HELL NO DREAM STAN ALERT') + runInCore('kick @e[type=player] @e @e @e') + break + } +}) +// command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case '': + runInCore('') + break + } +}) +// command +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + + switch (command) { + case '': + runInCore('') + break + } +}) +//test command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -323,6 +421,7 @@ rl.on('line', (line) => { break } }) +//soundbreaker rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -331,34 +430,40 @@ rl.on('line', (line) => { case 'soundbreaker': - setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.wolf.hurt master @a ~ ~ ~ 10000 1.5 1 '), 1 }) - + setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.wolf.hurt master @a ~ ~ ~ 10000 1.5 1 '), 1 }) + setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1.5 1 '), 1 }) + setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.wolf.hurt master @a ~ ~ ~ 10000 1 1 '), 1 }) + setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1 1 '), 1 }) + setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.cat.hiss master @a ~ ~ ~ 10000 1.5 1 '), 1 }) + setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.cat.hiss master @a ~ ~ ~ 10000 1 1 '), 1 }) break } }) +//entityspam rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() switch (command) { case 'entityspam': - setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 }) - setInterval(function() { runInCore('summon ender_dragon 115 62 -6'), 1 }) - setInterval(function() { runInCore('summon zombie 115 62 -3'), 1 }) - setInterval(function() { runInCore('summon creeper 115 62 -1'), 1 }) - setInterval(function() { runInCore('summon blazed 115 62 -5'), 1 }) - setInterval(function() { runInCore('summon horse 115 62 -5'), 1 }) - setInterval(function() { runInCore('summon spider 115 62 -5'), 1 }) - setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 }) - setInterval(function() { runInCore('summon ender_dragon 115 62 -6'), 1 }) - setInterval(function() { runInCore('summon zombie 115 62 -3'), 1 }) - setInterval(function() { runInCore('summon creeper 115 62 -1'), 1 }) - setInterval(function() { runInCore('summon blazed 115 62 -5'), 1 }) - setInterval(function() { runInCore('summon horse 115 62 -5'), 1 }) - setInterval(function() { runInCore('summon spider 115 62 -5'), 1 }) + setInterval(function() { runInCore('sudo * summon fireball '), 1 }) + setInterval(function() { runInCore('sudo * summon ender_dragon '), 1 }) + setInterval(function() { runInCore('sudo * summon zombie '), 1 }) + setInterval(function() { runInCore('sudo * summon creeper'), 1 }) + setInterval(function() { runInCore('sudo * blaze'), 1 }) + setInterval(function() { runInCore('sudo * summon horse '), 1 }) + setInterval(function() { runInCore('sudo * summon spider '), 1 }) + setInterval(function() { runInCore('sudo * summon fireball '), 1 }) + setInterval(function() { runInCore('sudo * summon ender_dragon '), 1 }) + setInterval(function() { runInCore('sudo * summon zombie '), 1 }) + setInterval(function() { runInCore('sudo * ummon creeper '), 1 }) + setInterval(function() { runInCore('sudo * summon blazed '), 1 }) + setInterval(function() { runInCore('sudo * summon horse '), 1 }) + setInterval(function() { runInCore('sudo * summon spider '), 1 }) break } }) +//tp command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -369,6 +474,7 @@ rl.on('line', (line) => { break } }) +//gms command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -379,9 +485,7 @@ rl.on('line', (line) => { break } }) - - - +//stop command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -393,40 +497,42 @@ rl.on('line', (line) => { break } }) +//tntspam command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() switch (command) { case 'tntspam': - setInterval(function() { runInCore('summon tnt 600 65 6000'), 1 }) - setInterval(function() { runInCore('summon tnt 100 65 100'), 1 }) - setInterval(function() { runInCore('summon tnt 60045 65 60000'), 1 }) - setInterval(function() { runInCore('summon tnt 60 65 55'), 1 }) - setInterval(function() { runInCore('summon tnt 800 65 60000000'), 1 }) - setInterval(function() { runInCore('summon tnt 600000 65 6000000'), 1 }) - setInterval(function() { runInCore('summon tnt 60000000 65 6500000'), 1 }) - setInterval(function() { runInCore('summon tnt 6600 65 60060'), 1 }) - setInterval(function() { runInCore('summon tnt 6500 65 56000'), 1 }) - setInterval(function() { runInCore('summon tnt 6070 65 777776000'), 1 }) - setInterval(function() { runInCore('summon tnt 888600 65 608700'), 1 }) - setInterval(function() { runInCore('summon tnt 68700 65 987000'), 1 }) - setInterval(function() { runInCore('summon tnt 98000 65 567000'), 1 }) - setInterval(function() { runInCore('summon tnt 56700 65 696700'), 1 }) - setInterval(function() { runInCore('summon tnt 688800 65 6088800'), 1 }) - setInterval(function() { runInCore('summon tnt 2 65 4'), 1 }) - setInterval(function() { runInCore('summon tnt 25 65 80'), 1 }) - setInterval(function() { runInCore('summon tnt 976769 65 56979'), 1 }) - setInterval(function() { runInCore('summon tnt 6979 65 21'), 1 }) - setInterval(function() { runInCore('summon tnt 21 65 600000'), 1 }) - setInterval(function() { runInCore('summon tnt 434 65 60434400'), 1 }) - setInterval(function() { runInCore('summon tnt 640 65 6545450'), 1 }) - setInterval(function() { runInCore('summon tnt 6045450 65 6000'), 1 }) - setInterval(function() { runInCore('summon tnt 6095850 65 6000'), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt'), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt '), 1 }) + setInterval(function() { runInCore('sudo * summon tnt'), 1 }) break } }) +//prefix command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -437,14 +543,14 @@ rl.on('line', (line) => { break } }) -//cloop command +//annoy command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() switch (command) { case 'annoy': - setInterval(function() { runInCore('sudo * bc WHY NO WHY NOT' + ''), 1 }) + setInterval(function() { runInCore('sudo * WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY' + ''), 1 }) setInterval(function() { runInCore('sudo * playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1.5 1' + ''), 1 }) break @@ -534,6 +640,7 @@ rl.on('line', (line) => { break } }) +//sudo command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -545,6 +652,7 @@ rl.on('line', (line) => { break } }) +//tpe command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -569,20 +677,14 @@ rl.on('line', (line) => { break } }) - +//selfdestruct command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() switch (command) { case 'selfdestruct': - - - - - - setInterval(function() { runInCore('day'), 1 }) setInterval(function() { runInCore('night'), 1 }) setInterval(function() { runInCore('clear @a'), 1 })