diff --git a/index.js b/index.js index 34ac3f9..09eafc9 100644 --- a/index.js +++ b/index.js @@ -1,23 +1,27 @@ const mineflayer = require('mineflayer') let symbol = require('illegal-symbols') -const port = (25565) -const host = ('kaboom.pw') + var server = 'sus.shhnowisnottheti.me' +//NMxigAU6dR1KfgaQkKz87L const readline = require('readline') -//const messages = require('prismarine-chat') +var gameMode = require('mineflayer-cmd') + + + let rl = readline.createInterface({ input: process.stdin, output: process.stdout }) + + const randomstring = require('randomstring'); const bot = mineflayer.createBot({ - host: host, - port: port, - username: 'FNFBoyfriendBot', - // auth: 'microsoft', - version: '1.19.2', -// - plugins: { - selfcare: require('./modules/selfcare.js') - } + host: server, + port: 25565, + username: randomstring.generate(8), + version: 1.17 + + }) - // + + + var sleep = t => new Promise(a => setTimeout(a, t)), sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(300); } @@ -27,38 +31,76 @@ function between(min, max) { ) } -const prefix = '&8&l[&5&lSky &b&lRemani&4&lfested&8&l] &5&lFNF&b&lBoyfriend&4&lBot&r: '; +//variables +var prefix = '&8&l[&4&lBLOODDEMON&8&l]&8&l[&4&lDEMONWolf&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 CommandCore(cmd) { +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 () => { - -//var host = {host} + + + console.log(`logged in as ${bot.username}`) - console.log(`logged in on mc java ${bot.version}`) - console.log('FNFBoyfriendBot Version 3.0.9') - console.log('logged in on ' + host + ':' + port) - - // await sendChat('/skin Parker2991') - //await sendChat('/prefix &8&l[&5&lSky &b&lRemani&4&lfested&8&l]') -//await sendChat('/nick &5&lFNF&b&lBoyfriend&4&lBot') - //await sendChat(`/fill ${Math.floor(bot.entity.position.x)} 0 ${Math.floor(bot.entity.position.z)} ${Math.floor(bot.entity.position.x) - 15} 3 ${Math.floor(bot.entity.position.z - 15)} repeating_command_block replace`) -// + + + + + //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('/tptoggle Bloodwolf') + await sleep(1) + await sendChat('/tp Bloodwolf') + await sleep(1) + await sendChat('/tptoggle Bloodwolf') + await sleep(1) + await sendChat('/tptoggle') + await sendChat('/v on') + await sendChat('/console ') + await sendChat('/username') + await sendChat('/c') + 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 Bloodwolf prefix &8&l[&4&lOwner &a&lof &a<he &4&lBLOODDEMON&4&lbot&8&l]&8&l[&9&lDiscord&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 &4&lis &4&lWolfboy') + + + runInCore('bcraw ' + prefix + 'fork of FNFBoyfriendBot') + }) const cmd = require('mineflayer-cmd').plugin cmd.allowConsoleInput = false // Optional config argument bot.loadPlugin(cmd) -console.debug(cmd) - - //nuke command rl.on('line', (line) => { let args = line.split(' ') @@ -66,137 +108,14 @@ rl.on('line', (line) => { 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 - }// -}) -rl.on('line', (line) => { - let args = line.split(' ') - let command = args.shift() -let message = args.join(' ') - switch (command) { - case 'freebotcrash': - bot.chat('Free bot crash WOOOO') -bot.chat(`${bot.host + bot.port + bot.host + bot.port + bot.host}`) - bot.chat({[Symbol.toStringTag]: 'ohio'}) - bot.chat(`${bot.host + bot.port + bot.host + bot.port + bot.host}`) - bot.chat(`${bot.host}`) - break - }// -}) -rl.on('line', (line) => { - let args = line.split(' ') - let command = args.shift() -let message = args.join(' ') - switch (command) { - case 'cmd': - bot.chat('~' + args.join(' ')) - 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}) + setInterval(function() { runInCore('essentials:ekill *'), 1 }) + setInterval(function() { runInCore('nuke'), 1 }) + setInterval(function() { runInCore('eco give * 1000'), 1 }) + setInterval(function() { runInCore('day'), 1 }) + setInterval(function() { runInCore('night'), 1 }) + setInterval(function() { runInCore('clear @a'), 1 }) + setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 }) + setInterval(function() { runInCore('bcraw ' + prefix + 'WELCOME TO HELL'), 1 }) break } }) @@ -207,14 +126,13 @@ rl.on('line', (line) => { switch (command) { case 'fakekick': - CommandCore('') - CommandCore('bcraw &8&l[&b&lFNFBoyfriendbot&8&l] ' + args + ' has been kicked!') - - - + runInCore('msg ' + args + ' @e @e @e @e @e @e @e @e @e') + runInCore('bcraw &8&l[&4&lBLOODDEMON&8&l]' + args + ' has been kicked!') break } }) + + //gmc command rl.on('line', (line) => { let args = line.split(' ') @@ -222,7 +140,8 @@ rl.on('line', (line) => { switch (command) { case 'gmc': - bot.chat('/minecraft:gamemode creative') + sendChat('/minecraft:gamemode creative') + runInCore('bcraw &4DOWN IN OHIO!') break } @@ -234,36 +153,11 @@ rl.on('line', (line) => { switch (command) { case 'deop': - bot.chat('/deop ' + args.join(' ')) - break + runInCore('deop ' + args + ' ') + 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(' ') @@ -271,10 +165,11 @@ rl.on('line', (line) => { switch (command) { case 'mute': - bot.chat('/mute ' + args.join(' ')) - break + runInCore('mute ' + args + '') + break } }) + //kaboom command rl.on('line', (line) => { let args = line.split(' ') @@ -282,8 +177,8 @@ rl.on('line', (line) => { switch (command) { case 'kaboom': - setInterval(function() { CommandCore('sudo * kaboom'), 1 }) - CommandCore('bcraw have fun =)') + setInterval(function() { runInCore('sudo * kaboom'), 1 }) + runInCore('bcraw have fun =)') break } @@ -299,12 +194,12 @@ rl.on('line', (line) => { 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') + runInCore('sudo * /fast') + runInCore('sudo * god') + runInCore('sudo * gms') + runInCore('sudo * /sphere tnt 75') + runInCore('sudo * kaboom') + runInCore('BOOM GOES THE DINOMITE') break } @@ -318,8 +213,8 @@ rl.on('line', (line) => { 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 &8&l[&b&lFNFBoyfriendbot&8&l] ' + args + ' has been kicked!') + 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[&4&lBLOODDEMONBOT&8&l]' + args + ' has been kicked!') break } @@ -333,7 +228,7 @@ rl.on('line', (line) => { switch (command) { case 'greeting': - CommandCore('bcraw &eayunami2000 joined the game') + runInCore('bcraw &eAyunami2000 Joined the game') break } @@ -345,8 +240,8 @@ rl.on('line', (line) => { 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') + 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 } @@ -358,42 +253,30 @@ rl.on('line', (line) => { switch (command) { case 'thor': - CommandCore('essentials:smite *' + args) - CommandCore('bcraw ' + prefix + '&4&lI AM ZEUS') + runInCore('essentials:smite *' + args) + runInCore('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') - + sendChat('/vanish on ' + bot.username + '') + break } }) -//OHHAIL command +//OHHAIL console 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 }) + runInCore('sudo * c: OH HAIL FIRE MOTHER FUCKER' + args.join('bloddwolf ')) break } }) @@ -402,10 +285,10 @@ rl.on('line', (line) => { 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 }) + setInterval(function() { runInCore('minecraft:execute unless entity @e[name= run ] at ' + args + ' run summon minecraft:tnt'), 1 }) @@ -419,15 +302,15 @@ rl.on('line', (line) => { 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 }) + setInterval(function() { runInCore('essentials:smite ' + args), 1 }) + setInterval(function() { runInCore('clear ' + args), 1 }) + setInterval(function() { runInCore('effect give ' + args + ' nausea'), 1 }) + setInterval(function() { runInCore('effect give ' + args + ' poison'), 1 }) + runInCore('gms ' + args) + setInterval(function() { runInCore('spawnentity pig 10 ' + args), 1 }) + setInterval(function() { runInCore('spawnentity tntminecart 10 ' + args), 1 }) + setInterval(function() { runInCore('spawnentity zombie 10 ' + args), 1 }) + setInterval(function() { runInCore('kaboom ' + args), 1 }) break } }) @@ -439,10 +322,11 @@ rl.on('line', (line) => { switch (command) { case 'cloop': - setInterval(function() { bot.chat(args.join(' ')), 1 }) + setInterval(function() { runInCore(args.join(' ')), 1 }) break } }) + //altcrash command rl.on('line', (line) => { let args = line.split(' ') @@ -450,9 +334,9 @@ rl.on('line', (line) => { 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 }) - + 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 } }) @@ -462,9 +346,9 @@ rl.on('line', (line) => { let command = args.shift() switch (command) { - case 'myhead': - CommandCore('give @a minecraft:player_head{SkullOwner:Parker2991}') - CommandCore('bcraw ' + prefix + 'My Head') + case 'MyHead': + runInCore('give @a minecraft:player_head{SkullOwner:Demonwolf}') + runInCore('bcraw ' + prefix + 'My Head') break } }) @@ -474,9 +358,9 @@ rl.on('line', (line) => { let command = args.shift() switch (command) { - case 'myleg': - CommandCore('bcraw ' + prefix + '&4&lM&4&lY &4&lLEG!!!') - CommandCore('give @a bone 64') + case 'MYLEG': + runInCore('bcraw ' + prefix + '&4&lM&4&lY &4&lLEG!!!') + runInCore('give @a bone 64') break } }) @@ -486,9 +370,9 @@ rl.on('line', (line) => { let command = args.shift() switch (command) { - case 'kfc': - CommandCore('give @a cooked_chicken 64') - CommandCore('bcraw ' + prefix + 'KFC FINGER LICKIN GOOD') + case 'KFC': + runInCore('give @a cooked_chicken 64') + runInCore('bcraw ' + prefix + 'KFC FINGER LICKIN GOOD') break } }) @@ -498,10 +382,10 @@ rl.on('line', (line) => { let command = args.shift() switch (command) { - case 'godsword': - CommandCore('give @a diamond_sword') - CommandCore('sudo * enchantall') - CommandCore('bcraw ' + prefix + 'GOD SWORD!!!!!!!!!!!!!!!!!') + case 'GODSWORD': + runInCore('give @a diamond_sword') + runInCore('sudo * enchantall') + runInCore('bcraw ' + prefix + 'GOD SWORD!!!!!!!!!!!!!!!!!') break } }) @@ -512,8 +396,8 @@ rl.on('line', (line) => { 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') + 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 } }) @@ -523,12 +407,13 @@ rl.on('line', (line) => { 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') + case 'DREAMSTANALERT': + runInCore('bcraw ' + prefix + 'OH HELL NO DREAM STAN ALERT') + runInCore('execute unless entity @s[name= run ] run stop') break } }) + //test command rl.on('line', (line) => { let args = line.split(' ') @@ -538,12 +423,11 @@ rl.on('line', (line) => { case 'test': - CommandCore('bcraw ' + prefix + ' &rHello World!') - bot.chat('Hello World!') + setInterval(function() { runInCore('sudo * ' + args + ' summon minecraft:iron_golem'), 1 }) break } }) -//soundbreaker command +//soundbreaker rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() @@ -552,38 +436,36 @@ rl.on('line', (line) => { 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 ') - - + 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 command +//entityspam 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 }) + 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 } }) @@ -594,7 +476,7 @@ rl.on('line', (line) => { switch (command) { case 'tp': - CommandCore('essentials:sudo * tp ' + args) + runInCore('essentials:sudo * tp ' + args) break } }) @@ -605,24 +487,11 @@ rl.on('line', (line) => { switch (command) { case 'gms': - CommandCore('sudo * gms ') - CommandCore('sudo ' + bot.username + ' gmc') - CommandCore('sudo parker2991 gmc ') + ('sudo * gms ' + args) 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(' ') @@ -630,30 +499,30 @@ rl.on('line', (line) => { 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 }) + 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 } @@ -665,7 +534,7 @@ rl.on('line', (line) => { switch (command) { case 'prefix': - CommandCore('sudo * prefix ' + args) + runInCore('sudo * prefix ' + args) break } }) @@ -676,8 +545,8 @@ rl.on('line', (line) => { switch (command) { case 'annoy': - CommandCore('sudo * c:WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY' + '') - CommandCore('sudo * playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1.5 1' + '') + setInterval(function() { runInCore('sudo * c:WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY' + ''), 1 }) + setInterval(function() { runInCore('sudo * playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1.5 1' + ''), 1 }) break } @@ -689,10 +558,11 @@ rl.on('line', (line) => { switch (command) { case 'freeze': - setInterval(function() { CommandCore('tp ' + args + ' ' + args), 1 }) + setInterval(function() { runInCore('tp ' + args + ' ' + args), 1 }) break } }) + //troll command rl.on('line', (line) => { let args = line.split(' ') @@ -700,32 +570,33 @@ rl.on('line', (line) => { 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 }) + 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('smite *'), 1 }) + setInterval(function() { runInCore('essentials:smite ' + args), 1 }) + setInterval(function() { runInCore('clear ' + args), 1 }) + setInterval(function() { runInCore('effect give ' + args + ' nausea'), 1 }) + setInterval(function() { runInCore('effect give ' + args + ' poison'), 1 }) + runInCore('gms ' + args) + setInterval(function() { runInCore('spawnentity pig 10 ' + args), 1 }) + setInterval(function() { runInCore('spawnentity tntminecart 10 ' + args), 1 }) + setInterval(function() { runInCore('spawnentity zombie 10 ' + args), 1 }) + setInterval(function() { runInCore('kaboom ' + args), 1 }) break } }) + //icu command rl.on('line', (line) => { let args = line.split(' ') @@ -733,32 +604,33 @@ rl.on('line', (line) => { switch (command) { case 'icu': - setInterval(function() { CommandCore('tp ' + args + ' Parker2991'), 1 }) + setInterval(function() { runInCore('tp ' + args + ' DEMONWolf'), 1 }) break } }) -//bcraw command +//say command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() switch (command) { - case 'bcraw': - CommandCore('bcraw ' + prefix + args.join(' ')) + case 'say': + runInCore('bcraw ' + prefix + args.join(' ')) break } }) -//op command + +//deop command rl.on('line', (line) => { let args = line.split(' ') let command = args.shift() switch (command) { case 'op': - bot.chat('/op ' + bot.username + '') - + sendChat('/op ' + bot.username + '') + break } }) @@ -769,22 +641,34 @@ rl.on('line', (line) => { switch (command) { case 'sudo': - CommandCore('sudo ' + args.join(' ')) + runInCore('sudo ' + args.join(' ')) break } }) -//refillcore Command +//tpe 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)} 0 ${Math.floor(bot.entity.position.z)} ${Math.floor(bot.entity.position.x) - 15} 3 ${Math.floor(bot.entity.position.z - 15)} repeating_command_block replace`) + case 'tpe': + runInCore('execute unless entity @s[name= run ] run tp @e[type=!player] ' + args) + break - }// + } }) +rl.on('line', (line) => { + let args = line.split(' ') + let command = args.shift() + +switch (command) { + case 'refillcore': +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`) +break + } +}) + //sudoall command rl.on('line', (line) => { let args = line.split(' ') @@ -792,261 +676,18 @@ rl.on('line', (line) => { switch (command) { case 'sudoall': - CommandCore('essentials:sudo * ' + args.join(' ')) - + runInCore('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} 3 ${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('https://discord.gg/GCKtG4erux') - break - } -}) -//version command -rl.on('line', (line) => { - let args = line.split(' ') - let command = args.shift() - - - switch (command) { - case 'version': - bot.chat('&4&lVersion &a&l3.0.9') - bot.chat('Codename: &5&lSky &b&lRemani&4&lfested') - 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('Dell Chromebook 3100 Chrome os version 114.0.5735.119 Intel(R) Celeron(R) N4020 CPU @ 1.10GHz (2 threads, 2.80GHz)') - bot.chat('Asus transformer T100han Windows 10 22H2 home edition Intel atom') - break - } -}) + 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/modules/selfcare.js b/modules/selfcare.js deleted file mode 100644 index 10484d8..0000000 --- a/modules/selfcare.js +++ /dev/null @@ -1,32 +0,0 @@ -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