Compare commits

...
3 Commits
Author SHA1 Message Date
Parker2991 da4f7e3f28 v3.0-beta 2024-02-13 16:54:28 +00:00
Parker2991 fb3c11b46f v2.2 2024-02-13 16:51:35 +00:00
Parker2991 d873e16aea v2.0-revision 2024-02-13 16:49:27 +00:00
+412 -193
View File
@@ -1,26 +1,29 @@
const mineflayer = require('mineflayer') const mineflayer = require('mineflayer')
let symbol = require('illegal-symbols') let symbol = require('illegal-symbols')
var server = 'sus.shhnowisnottheti.me'
//NMxigAU6dR1KfgaQkKz87L
const readline = require('readline') 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 }) let rl = readline.createInterface({ input: process.stdin, output: process.stdout })
const randomstring = require('randomstring'); const randomstring = require('randomstring');
const bot = mineflayer.createBot({ const bot = mineflayer.createBot({
host: server,
host: 'mcslot.eu',
port: 25565, port: 25565,
username: randomstring.generate(8), username: 'FNFBoyfriendbot',
version: 1.17, version: '1.19',
auth: 'mineflayer-auto-auth'
}) })
var sleep = t => new Promise(a => setTimeout(a, t)), var sleep = t => new Promise(a => setTimeout(a, t)),
sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(300); } sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(300); }
@@ -31,59 +34,51 @@ function between(min, max) {
} }
//variables //variables
var prefix = '&8&l[&b&lFNFBoyfriendBot&8&l]&8&l[&a&lConsole&8&l]&8&l[&4&lParker2991&8&l]'; var prefix = '&8&l[&5&lFNF&b&lBoyfriend&4&lBot&8&l][&b&lblue-balled corrup&4&l&ktion&r&8&l]';
var consoleprefix = 'bcraw &8&l[&b&lFNFBoyfriendBot&8&l]&8&l[&a&lConsole&8&l]&8&l[&4&lParker2991&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 runInCore(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._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 bot.on('login', async () => {
console.log(`logged in as ${bot.username}`) console.log(`logged in as ${bot.username}`)
//change the coords if bot has problems //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('/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('/v on')
await sendChat('/console ') await sendChat('/nick &5&lFNF&b&lBoyfriend&4&lBot')
await sendChat('/username') await sendChat('/prefix &8&l[&b&lblue-balled corrup&4&l&ktion&r&8&l]')
await sendChat('/c') await sendChat('/gmc')
await sendChat('/world 3')
await sendChat('/gmc') await sendChat('/tptoggle')
await sendChat('/minecraft:reload')
await sendChat('/night')
await sendChat('/gamerule doMobSpawning false') await sendChat('/gamerule doMobSpawning false')
await sendChat('/de')
await sendChat('/online')
await sendChat('/cspy on') await sendChat('/cspy on')
await sendChat('/prefix &4[BOT/CONSOLE]')
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`) await sendChat('/bcraw ' + prefix + 'Owner is &8&l[&9&lDiscord&8&l]&r&4Parker&02991')
runInCore ('bcraw ' + prefix + '&b&lOwner &4&lis &4&lParker2991')
runInCore ('bcraw ' + prefix + ' await sendChat('/bcraw ' + prefix + ' &5&lVersion &a&l3.0 &4&lBeta&8&l codename:&b&lblue-balled corrup&4&l&ktion')
runInCore ('bcraw ' + prefix + '&a&l Version &a&l2.0 RELEASE') await sendChat('/bcraw ' + prefix + ' &b&l1.0 full bot release 1/26/23 1:47am central time')
runInCore ('bcraw ' + prefix + 'full bot release &8&l1/26/23 &8&l1:47am &8&lCentral &8&ltime')
runInCore ('bcraw ' + prefix + 'Boffy:im jesus i dont fucking know')
}) })
const cmd = require('mineflayer-cmd').plugin const cmd = require('mineflayer-cmd').plugin
@@ -98,13 +93,13 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'nuke': case 'nuke':
setInterval(function() { runInCore('essentials:ekill *'), 1 }) setInterval(function() { runInCore('essentials:ekill *'), 1 })
setInterval(function() { runInCore('nuke'), 1 }) setInterval(function() { runInCore('nuke'), 50 })
setInterval(function() { runInCore('eco give * 1000'), 1 }) setInterval(function() { runInCore('eco give * 1000'), 50 })
setInterval(function() { runInCore('day'), 1 }) setInterval(function() { runInCore('day'), 50 })
setInterval(function() { runInCore('night'), 1 }) setInterval(function() { runInCore('night'), 50 })
setInterval(function() { runInCore('clear @a'), 1 }) setInterval(function() { runInCore('clear @a'), 50 })
setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 }) setInterval(function() { runInCore('summon fireball 115 62 -5'), 50 })
setInterval(function() { runInCore('bcraw ' + prefix + 'WELCOME TO HELL'), 1 }) setInterval(function() { runInCore('bcraw ' + prefix + 'WELCOME TO HELL'), 50 })
break break
} }
}) })
@@ -116,47 +111,82 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'fakekick': case 'fakekick':
runInCore('msg ' + args + ' @e @e @e @e @e @e @e @e @e') 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!') runInCore('bcraw &8&l[&b&lFNFBoyfriendbot&8&l] ' + args + ' has been kicked!')
break break
} }
}) })
//gmc command //gmc command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'gmc': case 'gmc':
runInCore('sudo + botusername gmc') sendChat('/minecraft:gamemode creative')
runInCore('bcraw &4DOWN IN OHIO!') break
break
} }
}) })
//deop command //deop command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'deop': case 'deop':
setInterval(function() { runInCore('sudo + playerusername deop @s[type=player]'), 1 }) sendChat('/deop ' + args.join(' '))
break
}
})
//cloopdeop command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'cloopdeop':
setInterval(function() {
sendChat('/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() {
sendChat('/mute ' + args.join(' ')), 1
})
break
}
})
//mute command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'mute':
sendChat('/mute ' + args.join(' '))
break
} }
}) })
//kaboom command //kaboom command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'kaboom': case 'kaboom':
setInterval(function() { runInCore('sudo * kaboom'), 8}) setInterval(function() { runInCore('sudo * kaboom'), 1 })
runInCore('bcraw have fun =)') runInCore('bcraw have fun =)')
break break
} }
}) })
//BOOM command //BOOM command
@@ -164,37 +194,37 @@ rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) {
case 'BOOM':
runInCore('sudo * /fast')
runInCore('sudo * god')
runInCore('sudo * gms')
runInCore('sudo * /sphere tnt 75')
runInCore('sudo * kaboom')
runInCore('BOOM GOES THE DINOMITE')
break
} switch (command) {
case 'BOOM':
runInCore('sudo * /fast')
runInCore('sudo * god')
runInCore('sudo * gms')
runInCore('sudo * /sphere tnt 75')
runInCore('sudo * kaboom')
runInCore('BOOM GOES THE DINOMITE')
break
}
}) })
//kick command //kick command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
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('bcraw &8&l[&b&m&lBoyfriendbot]&8 ' + args + ' has been kicked!')
break switch (command) {
}
}) case 'kick':
runInCore('/me @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&lFNFBoyfriendbot&8&l] ' + args + ' has been kicked!')
break
}
})
//greeting command //greeting command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
@@ -203,7 +233,7 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'greeting': case 'greeting':
runInCore('bcraw &eAyunami2000 Joined the game') runInCore('bcraw &eayunami2000 Joined the game')
break break
} }
@@ -233,6 +263,18 @@ rl.on('line', (line) => {
break break
} }
}) })
//vanish command`
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'vanish':
sendChat('/vanish')
break
}
})
//OHHAIL console //OHHAIL console
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
@@ -240,7 +282,7 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'OHHAIL': case 'OHHAIL':
runInCore('sudo * c: OH HAIL FIRE MOTHER FUCKER' + args.join(' ')) runInCore('sudo * c: OH HAIL ' + args.join(' '))
break break
} }
}) })
@@ -300,7 +342,6 @@ rl.on('line', (line) => {
break break
} }
}) })
//altcrash command //altcrash command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
@@ -308,9 +349,9 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'altcrash': case 'altcrash':
setInterval(function() { runInCore('sudo * execute at @a run give @a diamond_hoe 64'), 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 }) setInterval(function() { runInCore('bcraw ' + prefix + '&8&l Have fun with hoes =) '), 1 })
runInCore
break break
} }
}) })
@@ -320,8 +361,9 @@ rl.on('line', (line) => {
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'MyHead': case 'myhead':
runInCore('give @a minecraft:player_head{SkullOwner:Parker2991}') runInCore('give @a minecraft:player_head{SkullOwner:Parker2991}')
runInCore('bcraw ' + prefix + 'My Head')
break break
} }
}) })
@@ -331,8 +373,8 @@ rl.on('line', (line) => {
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'MYLEG': case 'myleg':
runInCore('bcraw ' + prefix + '&a&lMY LEG!!!') runInCore('bcraw ' + prefix + '&4&lM&4&lY &4&lLEG!!!')
runInCore('give @a bone 64') runInCore('give @a bone 64')
break break
} }
@@ -343,7 +385,7 @@ rl.on('line', (line) => {
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'KFC': case 'kfc':
runInCore('give @a cooked_chicken 64') runInCore('give @a cooked_chicken 64')
runInCore('bcraw ' + prefix + 'KFC FINGER LICKIN GOOD') runInCore('bcraw ' + prefix + 'KFC FINGER LICKIN GOOD')
break break
@@ -355,7 +397,7 @@ rl.on('line', (line) => {
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'GODSWORD': case 'godsword':
runInCore('give @a diamond_sword') runInCore('give @a diamond_sword')
runInCore('sudo * enchantall') runInCore('sudo * enchantall')
runInCore('bcraw ' + prefix + 'GOD SWORD!!!!!!!!!!!!!!!!!') runInCore('bcraw ' + prefix + 'GOD SWORD!!!!!!!!!!!!!!!!!')
@@ -370,7 +412,7 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'technoblade': case 'technoblade':
runInCore('sudo * summon pig') 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') runInCore('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 break
} }
}) })
@@ -380,31 +422,9 @@ rl.on('line', (line) => {
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'DREAMSTANALERT': case 'dreamstanalert':
runInCore('bcraw ' + prefix + 'OH HELL NO DREAM STAN ALERT') runInCore('bcraw ' + prefix + 'OH HELL NO DREAM STAN ALERT')
runInCore('kick @e[type=player] @e @e @e') runInCore('execute unless entity @s[name= run ] run stop')
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 break
} }
}) })
@@ -417,7 +437,7 @@ rl.on('line', (line) => {
case 'test': case 'test':
setInterval(function() { runInCore('minecraft:execute unless entity @s[name= run ] at ' + args + ' run summon minecraft:iron_golem'), 1 }) setInterval(function() { runInCore('sudo * ' + args + ' summon minecraft:iron_golem'), 1 })
break break
} }
}) })
@@ -430,12 +450,14 @@ rl.on('line', (line) => {
case 'soundbreaker': case 'soundbreaker':
setInterval(function() { runInCore('sudo * execute at @a run playsound minecraft:entity.wolf.hurt master @a ~ ~ ~ 10000 1.5 1 '), 1 }) runInCore('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.cat.hurt master @a ~ ~ ~ 10000 1.5 1 '), 1 }) runInCore('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 1 '), 1 }) runInCore('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.cat.hurt master @a ~ ~ ~ 10000 1 1 '), 1 }) runInCore('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.cat.hiss master @a ~ ~ ~ 10000 1.5 1 '), 1 }) runInCore('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.cat.hiss master @a ~ ~ ~ 10000 1 1 '), 1 }) runInCore('sudo * execute at @a run playsound minecraft:entity.ender_dragon.death master @a ~ ~ ~ 10000 0.5 1 ')
break break
} }
}) })
@@ -456,7 +478,7 @@ rl.on('line', (line) => {
setInterval(function() { runInCore('sudo * summon fireball '), 1 }) setInterval(function() { runInCore('sudo * summon fireball '), 1 })
setInterval(function() { runInCore('sudo * summon ender_dragon '), 1 }) setInterval(function() { runInCore('sudo * summon ender_dragon '), 1 })
setInterval(function() { runInCore('sudo * summon zombie '), 1 }) setInterval(function() { runInCore('sudo * summon zombie '), 1 })
setInterval(function() { runInCore('sudo * ummon creeper '), 1 }) setInterval(function() { runInCore('sudo * summon creeper '), 1 })
setInterval(function() { runInCore('sudo * summon blazed '), 1 }) setInterval(function() { runInCore('sudo * summon blazed '), 1 })
setInterval(function() { runInCore('sudo * summon horse '), 1 }) setInterval(function() { runInCore('sudo * summon horse '), 1 })
setInterval(function() { runInCore('sudo * summon spider '), 1 }) setInterval(function() { runInCore('sudo * summon spider '), 1 })
@@ -481,7 +503,9 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'gms': case 'gms':
setInterval(function() { runInCore('sudo * gms ' + args), 1 }) runInCore('sudo * gms ')
runInCore('sudo ' + bot.username + ' gmc')
runInCore('sudo parker2991 gmc ')
break break
} }
}) })
@@ -550,8 +574,8 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'annoy': case 'annoy':
setInterval(function() { runInCore('sudo * WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY' + ''), 1 }) runInCore('sudo * c:WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY' + '')
setInterval(function() { runInCore('sudo * playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1.5 1' + ''), 1 }) runInCore('sudo * playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1.5 1' + '')
break break
} }
@@ -567,7 +591,6 @@ rl.on('line', (line) => {
break break
} }
}) })
//troll command //troll command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
@@ -587,21 +610,20 @@ rl.on('line', (line) => {
setInterval(function() { runInCore('give @a tnt'), 1 }) setInterval(function() { runInCore('give @a tnt'), 1 })
setInterval(function() { runInCore('give @a crafting_table'), 1 }) setInterval(function() { runInCore('give @a crafting_table'), 1 })
setInterval(function() { runInCore('give @a diamond_block'), 1 }) setInterval(function() { runInCore('give @a diamond_block'), 1 })
setInterval(function() { runInCore('smite *'), 1 }) setInterval(function() { runInCore('smite * '), 1 })
setInterval(function() { runInCore('essentials:smite ' + args), 1 }) setInterval(function() { runInCore('essentials:smite * '), 1 })
setInterval(function() { runInCore('clear ' + args), 1 }) setInterval(function() { runInCore('clear @a '), 1 })
setInterval(function() { runInCore('effect give ' + args + ' nausea'), 1 }) setInterval(function() { runInCore('effect give @a nausea'), 1 })
setInterval(function() { runInCore('effect give ' + args + ' poison'), 1 }) setInterval(function() { runInCore('effect give @a poison'), 1 })
runInCore('gms ' + args) runInCore('sudo * gms ')
setInterval(function() { runInCore('spawnentity pig 10 ' + args), 1 }) setInterval(function() { runInCore('sudo * summon pig'), 1 })
setInterval(function() { runInCore('spawnentity tntminecart 10 ' + args), 1 }) setInterval(function() { runInCore('sudo * tntminecart '), 1 })
setInterval(function() { runInCore('spawnentity zombie 10 ' + args), 1 }) setInterval(function() { runInCore('sudo * summon zombie '), 1 })
setInterval(function() { runInCore('kaboom ' + args), 1 }) setInterval(function() { runInCore('sudo * kaboom '), 1 })
break break
} }
}) })
//icu command //icu command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
@@ -620,23 +642,21 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'say': case 'bcraw':
runInCore('bcraw ' + prefix + args.join(' ')) runInCore('bcraw ' + prefix + args.join(' '))
break break
} }
}) })
//deop command //deop command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'serverdeop': case 'op':
setInterval(function() { runInCore('sudo * deop @e[type=player] ' + args), 1 }) sendChat('/op ' + bot.username + '')
setInterval(function() { runInCore('op @s[type=player] ' + args), 1 })
setInterval(function() { runInCore('op parker2991 ' + args), 1 })
break break
} }
}) })
@@ -652,19 +672,17 @@ rl.on('line', (line) => {
break break
} }
}) })
//tpe command //refillcore Command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'tpe': case 'refillcore':
runInCore('execute unless entity @s[name= run ] run tp @e[type=!player] ' + args) 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)} repeating_command_block replace`)
break break
} }
}) })
//sudoall command //sudoall command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
@@ -673,7 +691,7 @@ rl.on('line', (line) => {
switch (command) { switch (command) {
case 'sudoall': case 'sudoall':
runInCore('essentials:sudo * ' + args.join(' ')) runInCore('essentials:sudo * ' + args.join(' '))
console.log("succesfully execute sudo command " + args)
break break
} }
}) })
@@ -682,22 +700,22 @@ rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) { switch (command) {
case 'selfdestruct': case 'selfdestruct':
setInterval(function() { runInCore('day'), 1 }) setInterval(function() { runInCore('day'), 1 })
setInterval(function() { runInCore('night'), 1 }) setInterval(function() { runInCore('night'), 1 })
setInterval(function() { runInCore('clear @a'), 1 }) setInterval(function() { runInCore('clear @a'), 1 })
setInterval(function() { runInCore('effect give @a nausea'), 1 }) setInterval(function() { runInCore('effect give @a nausea'), 1 })
setInterval(function() { runInCore('effect give @a slowness'), 1 }) setInterval(function() { runInCore('effect give @a slowness'), 1 })
setInterval(function() { runInCore('give @a bedrock'), 1 }) setInterval(function() { runInCore('give @a bedrock'), 1 })
setInterval(function() { runInCore('give @a sand'), 1 }) setInterval(function() { runInCore('give @a sand'), 1 })
setInterval(function() { runInCore('give @a dirt'), 1 }) setInterval(function() { runInCore('give @a dirt'), 1 })
setInterval(function() { runInCore('give @a diamond'), 1 }) setInterval(function() { runInCore('give @a diamond'), 1 })
setInterval(function() { runInCore('give @a tnt'), 1 }) setInterval(function() { runInCore('give @a tnt'), 1 })
setInterval(function() { runInCore('give @a crafting_table'), 1 }) setInterval(function() { runInCore('give @a crafting_table'), 1 })
setInterval(function() { runInCore('give @a diamond_block'), 1 }) setInterval(function() { runInCore('give @a diamond_block'), 1 })
setInterval(function() { runInCore('smite *'), 1 }) setInterval(function() { runInCore('smite *'), 1 })
setInterval(function() { runInCore('kaboom'), 1 }) setInterval(function() { runInCore('kaboom'), 1 })
setInterval(function() { runInCore('essentials:ekill *'), 1 }) setInterval(function() { runInCore('essentials:ekill *'), 1 })
setInterval(function() { runInCore('nuke'), 1 }) setInterval(function() { runInCore('nuke'), 1 })
@@ -706,26 +724,227 @@ switch (command) {
setInterval(function() { runInCore('night'), 1 }) setInterval(function() { runInCore('night'), 1 })
setInterval(function() { runInCore('clear @a'), 1 }) setInterval(function() { runInCore('clear @a'), 1 })
setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 }) setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 })
setInterval(function() { runInCore('sudo * /fast'), 1 }) setInterval(function() { runInCore('sudo * /fast'), 1 })
setInterval(function() { runInCore('sudo * gms'), 1 }) setInterval(function() { runInCore('sudo * gms'), 1 })
setInterval(function() { runInCore('sudo * /sphere tnt 75'), 1 }) setInterval(function() { runInCore('sudo * /sphere tnt 75'), 1 })
setInterval(function() { runInCore('sudo * kaboom'), 1 }) setInterval(function() { runInCore('sudo * kaboom'), 1 })
break break
} }
}) })
//ckill command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'ckill':
setInterval(function() { runInCore('ekill ' + args), 1 })
break
}
})
//serversuicidal command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'serversuicidal':
setInterval(function() { runInCore('sudo * suicide'), 1 })
break
}
})
//say commmand
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'say':
sendChat(args.join(' '))
break
}
})
//destroycore command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'destroycore':
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)} air replace repeating_command_block`)
break
}
})
//discord command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'discord':
sendChat('https://discord.gg/jVyDnWGhRy')
break
}
})
//version command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'version':
sendChat('&a&lVersion &b&l3&8&l.&5&l0 &4&lBeta codename:&b&lblue-balled corrup&4&l&ktion')
break
}
})
//sussy command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'sussy':
sendChat('NO NO NO &4&lඞ &r*sees the imposter and runs* AHHHHH')
break
}
})
//online command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'online':
sendChat('/online')
break
}
})
//list command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'list':
runInCore('/list')
break
}
})
//endmysuffering command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'endmysuffering':
runInCore('sudo * c:END MY SUFFERING')
break
}
})
//fnf command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'fnf':
sendChat('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':
sendChat('/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':
sendChat('I OWN YOU ' + args.join(' '))
break
}
})
//wafflehouse command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'wafflehouse':
sendChat('the waffle house found its new host')
sendChat('the waffle house found its new host')
sendChat('the waffle house found its new host')
sendChat('the waffle house found its new host')
sendChat('the waffle house found its new host')
sendChat('the waffle house found its new host')
sendChat('the waffle house found its new host')
sendChat('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':
sendChat('WHOPPER WHOPPER WHOPPER JUNIOR DOUBLE TRIPPLE WHOPPER :trollface:')
break
}
})
// command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case '':
runInCore('')
break
}
})
bot.on('message', async (chatMessage) => { bot.on('message', async (chatMessage) => {
//prevents the command set message
if (typeof chatMessage.translate === 'string' && chatMessage.translate.startsWith('advMode.')) return if (typeof chatMessage.translate === 'string' && chatMessage.translate.startsWith('advMode.')) return
console.log(chatMessage.toAnsi()) console.log(chatMessage.toAnsi())
}) })