2024-02-12 20:47:20 +00:00
const mineflayer = require ( 'mineflayer' )
2024-02-12 21:09:05 +00:00
let symbol = require ( 'illegal-symbols' )
2024-02-13 16:51:35 +00:00
var server = 'play.kaboom.pw'
2024-02-12 21:09:05 +00:00
//NMxigAU6dR1KfgaQkKz87L
const readline = require ( 'readline' )
2024-02-13 16:49:27 +00:00
2024-02-13 16:44:50 +00:00
2024-02-12 21:09:05 +00:00
let rl = readline . createInterface ({ input : process . stdin , output : process . stdout })
2024-02-12 20:47:20 +00:00
2024-02-13 16:46:59 +00:00
2024-02-13 16:51:35 +00:00
2024-02-12 21:09:05 +00:00
const randomstring = require ( 'randomstring' );
2024-02-12 20:47:20 +00:00
const bot = mineflayer . createBot ({
host : server ,
port : 25565 ,
2024-02-13 16:51:35 +00:00
username : 'FNFBoyfriendbot' ,
version : 1.17 ,
auth : 'prismarine-auth'
})
2024-02-13 16:49:27 +00:00
2024-02-12 20:47:20 +00:00
2024-02-13 16:49:27 +00:00
2024-02-12 21:01:57 +00:00
var sleep = t => new Promise ( a => setTimeout ( a , t )),
sendChat = async function ( m ) { bot . chat ( m . slice ( 0 , 256 )); await sleep ( 300 ); }
2024-02-12 20:47:20 +00:00
2024-02-12 21:01:57 +00:00
function between ( min , max ) {
2024-02-12 20:47:20 +00:00
return Math . floor (
Math . random () * ( max - min ) + min
)
}
//variables
2024-02-13 16:51:35 +00:00
var prefix = '&8&l[&5&lFNF&b&lBoyfriend&4&lBot&8&l]&8&l[&b&lWoomyBot&8&l][&b&lVersion&a&l2&8&l.&4&l2&8&l]&8&l[&4&lParker&0&l2991&8&l]' ;
2024-02-12 20:47:20 +00:00
2024-02-13 16:49:27 +00:00
2024-02-12 20:47:20 +00:00
function runInCore ( cmd ) {
2024-02-13 16:49:27 +00:00
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 });
2024-02-12 20:47:20 +00:00
}
2024-02-13 16:49:27 +00:00
bot . on ( 'login' , async () => {
2024-02-13 16:51:35 +00:00
2024-02-13 16:49:27 +00:00
2024-02-13 16:41:40 +00:00
console . log ( `logged in as ${ bot . username } ` )
2024-02-13 16:49:27 +00:00
2024-02-12 21:09:05 +00:00
//change the coords if bot has problems
2024-02-13 16:49:27 +00:00
//await sendChat('/tp '+require('randomstring').generate({length:5,charset:'1234567890'})+' 5 '+require('randomstring').generate({length:6,charset:'1234567890'}))
2024-02-13 16:51:35 +00:00
await sendChat ( '/nick &5FNF&bBoyfriend&4bot' )
await sleep ( 1 )
await sendChat ( '/world 3' )
await sleep ( 1 )
await sendChat ( '/tptoggle parker2991' )
await sleep ( 1 )
await sendChat ( '/tp parker2991' )
await sleep ( 1 )
await sendChat ( '/tptoggle parker2991' )
await sleep ( 1 )
2024-02-13 16:44:50 +00:00
await sendChat ( '/console ' )
2024-02-13 16:51:35 +00:00
await sleep ( 1 )
await sendChat ( '/c on' )
await sleep ( 1 )
2024-02-12 21:01:57 +00:00
await sendChat ( '/night' )
2024-02-13 16:51:35 +00:00
await sleep ( 1 )
2024-02-12 21:01:57 +00:00
await sendChat ( '/gamerule doMobSpawning false' )
2024-02-13 16:51:35 +00:00
await sleep ( 1 )
await sendChat ( '/gamerule commandBlockOutput false' )
await sleep ( 1 )
2024-02-12 21:01:57 +00:00
await sendChat ( '/de' )
2024-02-13 16:51:35 +00:00
await sleep ( 1 )
await sendChat ( '/gamerule sendCommandFeedback false' )
await sleep ( 1 )
2024-02-12 20:47:20 +00:00
await sendChat ( '/online' )
2024-02-13 16:51:35 +00:00
await sleep ( 1 )
2024-02-12 21:01:57 +00:00
await sendChat ( '/cspy on' )
2024-02-13 16:51:35 +00:00
await sleep ( 1 )
await sendChat ( '/sudo parker2991 nick &4Parker&02991' )
await sleep ( 1 )
await sendChat ( '/prefix &4[BOT/CONSOLE]' )
await sleep ( 1 )
await sendChat ( '/sudo parker2991 prefix &8&l[&9&lDiscord&8&l]&8&l[&4&lOwner &a&lof &a<he &5&lFNF&b&lBoyfriend&4&lBot &8&land &b&lWoomyBot&8&l]' )
await sleep ( 1 )
2024-02-13 16:49:27 +00:00
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` )
2024-02-13 16:51:35 +00:00
runInCore ( 'bcraw ' + prefix + '&b&lOwner &4&lis &4Parker&02991' )
2024-02-13 16:49:27 +00:00
2024-02-13 16:51:35 +00:00
runInCore ( 'bcraw ' + prefix + 'no longer in developement but forked for a smaller bot' )
2024-02-13 16:46:59 +00:00
2024-02-12 21:12:19 +00:00
})
2024-02-12 20:47:20 +00:00
const cmd = require ( 'mineflayer-cmd' ). plugin
2024-02-12 21:09:05 +00:00
cmd . allowConsoleInput = false // Optional config argument
2024-02-12 20:47:20 +00:00
bot . loadPlugin ( cmd )
2024-02-13 16:46:59 +00:00
//nuke command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'nuke' :
setInterval ( function () { runInCore ( 'essentials:ekill *' ), 1 })
2024-02-13 16:51:35 +00:00
setInterval ( function () { runInCore ( 'nuke' ), 50 })
setInterval ( function () { runInCore ( 'eco give * 1000' ), 50 })
setInterval ( function () { runInCore ( 'day' ), 50 })
setInterval ( function () { runInCore ( 'night' ), 50 })
setInterval ( function () { runInCore ( 'clear @a' ), 50 })
setInterval ( function () { runInCore ( 'summon fireball 115 62 -5' ), 50 })
setInterval ( function () { runInCore ( 'bcraw ' + prefix + 'WELCOME TO HELL' ), 50 })
2024-02-12 21:09:05 +00:00
break
}
})
2024-02-13 16:46:59 +00:00
//fakekick command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'fakekick' :
runInCore ( 'msg ' + args + ' @e @e @e @e @e @e @e @e @e' )
2024-02-13 16:51:35 +00:00
runInCore ( 'bcraw &8&l[&b&lFNFBoyfriendbot&8&l] ' + args + ' has been kicked!' )
2024-02-13 16:49:27 +00:00
break
2024-02-12 21:09:05 +00:00
}
})
2024-02-12 21:01:57 +00:00
2024-02-12 21:12:19 +00:00
2024-02-13 16:46:59 +00:00
//gmc command
2024-02-13 16:49:27 +00:00
rl . on ( 'line' , ( line ) => {
2024-02-12 21:09:05 +00:00
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'gmc' :
2024-02-13 16:49:27 +00:00
sendChat ( '/minecraft:gamemode creative' )
break
2024-02-12 21:09:05 +00:00
}
2024-02-12 21:01:57 +00:00
2024-02-13 16:49:27 +00:00
})
2024-02-13 16:46:59 +00:00
//deop command
2024-02-13 16:49:27 +00:00
rl . on ( 'line' , ( line ) => {
2024-02-12 21:09:05 +00:00
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
2024-02-12 21:12:19 +00:00
case 'deop' :
2024-02-13 16:51:35 +00:00
sendChat ( '/deop ' + args . join ( ' ' ))
break
2024-02-12 21:09:05 +00:00
}
})
2024-02-13 16:51:35 +00:00
//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 () {
sendC ( '/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
}
})
2024-02-13 16:46:59 +00:00
//kaboom command
2024-02-12 21:12:19 +00:00
rl . on ( 'line' , ( line ) => {
2024-02-12 21:15:17 +00:00
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-13 16:49:27 +00:00
switch ( command ) {
case 'kaboom' :
2024-02-13 16:51:35 +00:00
setInterval ( function () { runInCore ( 'sudo * kaboom' ), 1 })
2024-02-12 21:09:05 +00:00
runInCore ( 'bcraw have fun =)' )
2024-02-13 16:49:27 +00:00
break
}
2024-02-12 21:01:57 +00:00
2024-02-12 21:09:05 +00:00
})
2024-02-13 16:46:59 +00:00
//BOOM command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-13 16:49:27 +00:00
switch ( command ) {
case 'BOOM' :
2024-02-12 21:09:05 +00:00
runInCore ( 'sudo * /fast' )
2024-02-13 16:49:27 +00:00
runInCore ( 'sudo * god' )
runInCore ( 'sudo * gms' )
runInCore ( 'sudo * /sphere tnt 75' )
runInCore ( 'sudo * kaboom' )
runInCore ( 'BOOM GOES THE DINOMITE' )
2024-02-12 21:09:05 +00:00
2024-02-13 16:49:27 +00:00
break
}
2024-02-12 21:01:57 +00:00
2024-02-12 21:09:05 +00:00
})
2024-02-13 16:46:59 +00:00
//kick command
2024-02-13 16:49:27 +00:00
rl . on ( 'line' , ( line ) => {
2024-02-12 21:15:17 +00:00
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-13 16:49:27 +00:00
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' )
2024-02-13 16:51:35 +00:00
runInCore ( 'bcraw &8&l[&b&lFNFBoyfriendbot&8&l] ' + args + ' has been kicked!' )
2024-02-12 20:47:20 +00:00
2024-02-13 16:49:27 +00:00
break
}
})
2024-02-13 16:46:59 +00:00
//greeting command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'greeting' :
2024-02-12 20:47:20 +00:00
2024-02-13 16:46:59 +00:00
runInCore ( 'bcraw &eAyunami2000 Joined the game' )
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
break
}
})
2024-02-13 16:46:59 +00:00
//fakeban commnad
2024-02-13 16:43:10 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
2024-02-13 16:46:59 +00:00
case 'fakeban' :
2024-02-12 21:09:05 +00:00
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' )
2024-02-12 21:01:57 +00:00
2024-02-12 21:09:05 +00:00
break
}
})
2024-02-13 16:46:59 +00:00
//thor commnad
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'thor' :
2024-02-13 16:46:59 +00:00
runInCore ( 'essentials:smite *' + args )
runInCore ( 'bcraw ' + prefix + '&4&lI AM ZEUS' )
2024-02-12 21:09:05 +00:00
break
}
})
2024-02-13 16:49:27 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'vanish' :
sendChat ( '/vanish on ' + bot . username + '' )
break
}
})
2024-02-13 16:46:59 +00:00
//OHHAIL console
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
2024-02-13 16:46:59 +00:00
case 'OHHAIL' :
runInCore ( 'sudo * c: OH HAIL FIRE MOTHER FUCKER' + args . join ( ' ' ))
2024-02-13 16:43:10 +00:00
break
}
})
2024-02-13 16:46:59 +00:00
//servercrash command
2024-02-13 16:43:10 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'servercrash' :
setInterval ( function () { runInCore ( 'essentials:sudo * kick @e[type=player] @e @e @e' ), 1 })
break
}
})
2024-02-13 16:46:59 +00:00
//explode command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'explode' :
setInterval ( function () { runInCore ( 'minecraft:execute unless entity @e[name= run ] at ' + args + ' run summon minecraft:tnt' ), 1 })
2024-02-12 21:01:57 +00:00
2024-02-12 21:09:05 +00:00
break
}
})
2024-02-13 16:46:59 +00:00
//trol command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'trol' :
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
}
})
2024-02-13 16:46:59 +00:00
//cloop command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'cloop' :
2024-02-12 21:01:57 +00:00
2024-02-12 21:09:05 +00:00
setInterval ( function () { runInCore ( args . join ( ' ' )), 1 })
break
}
})
2024-02-13 16:41:40 +00:00
2024-02-13 16:46:59 +00:00
//altcrash command
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'altcrash' :
2024-02-13 16:49:27 +00:00
setInterval ( function () { runInCore ( 'sudo * execute at @a run give @a diamond_hoe 64' ), 1 })
2024-02-13 16:46:59 +00:00
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 ) {
2024-02-13 16:51:35 +00:00
case 'myhead' :
2024-02-13 16:46:59 +00:00
runInCore ( 'give @a minecraft:player_head{SkullOwner:Parker2991}' )
2024-02-13 16:49:27 +00:00
runInCore ( 'bcraw ' + prefix + 'My Head' )
2024-02-13 16:46:59 +00:00
break
}
})
//MYLEG! command
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
2024-02-13 16:51:35 +00:00
case 'myleg' :
2024-02-13 16:49:27 +00:00
runInCore ( 'bcraw ' + prefix + '&4&lM&4&lY &4&lLEG!!!' )
2024-02-13 16:46:59 +00:00
runInCore ( 'give @a bone 64' )
break
}
})
//KFCFINGERLICKINGOOD command
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
2024-02-13 16:51:35 +00:00
case 'kfc' :
2024-02-13 16:46:59 +00:00
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 ) {
2024-02-13 16:51:35 +00:00
case 'godsword' :
2024-02-13 16:46:59 +00:00
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' )
2024-02-13 16:51:35 +00:00
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' )
2024-02-13 16:46:59 +00:00
break
}
})
//DREAMSTANALERT command
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-13 16:41:40 +00:00
2024-02-13 16:46:59 +00:00
switch ( command ) {
2024-02-13 16:51:35 +00:00
case 'dreamstanalert' :
2024-02-13 16:46:59 +00:00
runInCore ( 'bcraw ' + prefix + 'OH HELL NO DREAM STAN ALERT' )
2024-02-13 16:49:27 +00:00
runInCore ( 'execute unless entity @s[name= run ] run stop' )
2024-02-13 16:46:59 +00:00
break
}
})
2024-02-13 16:41:40 +00:00
2024-02-13 16:46:59 +00:00
//test command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 21:01:57 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'test' :
2024-02-12 21:01:57 +00:00
2024-02-12 20:47:20 +00:00
2024-02-13 16:49:27 +00:00
setInterval ( function () { runInCore ( 'sudo * ' + args + ' summon minecraft:iron_golem' ), 1 })
2024-02-12 21:09:05 +00:00
break
}
})
2024-02-13 16:46:59 +00:00
//soundbreaker
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
2024-02-12 21:15:17 +00:00
case 'soundbreaker' :
2024-02-12 21:01:57 +00:00
2024-02-13 16:51:35 +00:00
runInCore ( 'sudo * execute at @a run playsound minecraft:entity.wolf.hurt master @a ~ ~ ~ 10000 1.5 1 ' )
runInCore ( 'sudo * execute at @a run playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1.5 1 ' )
runInCore ( 'sudo * execute at @a run playsound minecraft:entity.wolf.hurt master @a ~ ~ ~ 10000 1 1 ' )
runInCore ( 'sudo * execute at @a run playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1 1 ' )
runInCore ( 'sudo * execute at @a run playsound minecraft:entity.cat.hiss master @a ~ ~ ~ 10000 1.5 1 ' )
runInCore ( 'sudo * execute at @a run playsound minecraft:entity.cat.hiss master @a ~ ~ ~ 10000 1 1 ' )
2024-02-12 21:09:05 +00:00
break
}
})
2024-02-13 16:46:59 +00:00
//entityspam
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'entityspam' :
2024-02-13 16:46:59 +00:00
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 })
2024-02-13 16:51:35 +00:00
setInterval ( function () { runInCore ( 'sudo * summon creeper ' ), 1 })
2024-02-13 16:46:59 +00:00
setInterval ( function () { runInCore ( 'sudo * summon blazed ' ), 1 })
setInterval ( function () { runInCore ( 'sudo * summon horse ' ), 1 })
setInterval ( function () { runInCore ( 'sudo * summon spider ' ), 1 })
2024-02-12 21:09:05 +00:00
break
}
})
2024-02-13 16:46:59 +00:00
//tp command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'tp' :
runInCore ( 'essentials:sudo * tp ' + args )
break
}
})
2024-02-13 16:46:59 +00:00
//gms command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'gms' :
2024-02-13 16:51:35 +00:00
runInCore ( 'sudo * gms ' )
runInCore ( 'sudo ' + bot . username + ' gmc' )
runInCore ( 'sudo parker2991 gmc ' )
2024-02-12 21:09:05 +00:00
break
}
})
2024-02-13 16:46:59 +00:00
//stop command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'stop' :
runInCore ( 'bcraw ' + prefix + 'STOPPING SERVER.....' )
setInterval ( function () { runInCore ( 'execute unless entity @s[name= run ] run stop' ), 1 })
break
}
})
2024-02-13 16:46:59 +00:00
//tntspam command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'tntspam' :
2024-02-13 16:46:59 +00:00
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 })
2024-02-12 21:09:05 +00:00
break
}
})
2024-02-13 16:46:59 +00:00
//prefix command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'prefix' :
runInCore ( 'sudo * prefix ' + args )
break
}
})
2024-02-13 16:46:59 +00:00
//annoy command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 21:01:57 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'annoy' :
2024-02-13 16:51:35 +00:00
runInCore ( 'sudo * c:WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY' + '' )
runInCore ( 'sudo * playsound minecraft:entity.cat.hurt master @a ~ ~ ~ 10000 1.5 1' + '' )
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
break
}
})
//freeze command
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
case 'freeze' :
setInterval ( function () { runInCore ( 'tp ' + args + ' ' + args ), 1 })
break
}
})
//troll command
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'troll' :
2024-02-12 21:01:57 +00:00
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 })
2024-02-13 16:51:35 +00:00
setInterval ( function () { runInCore ( 'smite * ' ), 1 })
setInterval ( function () { runInCore ( 'essentials:smite * ' ), 1 })
setInterval ( function () { runInCore ( 'clear @a ' ), 1 })
setInterval ( function () { runInCore ( 'effect give @a nausea' ), 1 })
setInterval ( function () { runInCore ( 'effect give @a poison' ), 1 })
runInCore ( 'sudo * gms ' )
setInterval ( function () { runInCore ( 'sudo * summon pig' ), 1 })
setInterval ( function () { runInCore ( 'sudo * tntminecart ' ), 1 })
setInterval ( function () { runInCore ( 'sudo * summon zombie ' ), 1 })
setInterval ( function () { runInCore ( 'sudo * kaboom ' ), 1 })
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
break
}
2024-02-12 20:47:20 +00:00
})
2024-02-12 21:09:05 +00:00
//icu command
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'icu' :
2024-02-12 21:15:17 +00:00
setInterval ( function () { runInCore ( 'tp ' + args + ' Parker2991' ), 1 })
2024-02-12 21:09:05 +00:00
break
}
2024-02-12 20:47:20 +00:00
})
2024-02-12 21:09:05 +00:00
//say command
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'say' :
runInCore ( 'bcraw ' + prefix + args . join ( ' ' ))
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
break
}
2024-02-12 20:47:20 +00:00
})
2024-02-12 21:09:05 +00:00
//deop command
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
switch ( command ) {
2024-02-13 16:49:27 +00:00
case 'op' :
sendChat ( '/op ' + bot . username + '' )
2024-02-12 21:09:05 +00:00
break
}
2024-02-12 20:47:20 +00:00
})
2024-02-13 16:46:59 +00:00
//sudo command
2024-02-12 21:09:05 +00:00
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 21:01:57 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'sudo' :
runInCore ( 'sudo ' + args . join ( ' ' ))
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
break
}
2024-02-12 20:47:20 +00:00
})
2024-02-13 16:49:27 +00:00
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
}
})
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
//sudoall command
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 20:47:20 +00:00
2024-02-12 21:09:05 +00:00
switch ( command ) {
case 'sudoall' :
runInCore ( 'essentials:sudo * ' + args . join ( ' ' ))
2024-02-13 16:49:27 +00:00
2024-02-12 21:09:05 +00:00
break
2024-02-12 20:47:20 +00:00
}
})
2024-02-13 16:46:59 +00:00
//selfdestruct command
2024-02-12 21:12:19 +00:00
rl . on ( 'line' , ( line ) => {
2024-02-12 21:15:17 +00:00
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-13 16:49:27 +00:00
switch ( command ) {
2024-02-12 21:12:19 +00:00
case 'selfdestruct' :
2024-02-13 16:49:27 +00:00
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 })
2024-02-12 21:15:17 +00:00
setInterval ( function () { runInCore ( 'give @a diamond' ), 1 })
2024-02-13 16:49:27 +00:00
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 })
2024-02-12 21:15:17 +00:00
setInterval ( function () { runInCore ( 'kaboom' ), 1 })
setInterval ( function () { runInCore ( 'essentials:ekill *' ), 1 })
setInterval ( function () { runInCore ( 'nuke' ), 1 })
setInterval ( function () { runInCore ( 'eco give * 1000' ), 1 })
2024-02-12 21:12:19 +00:00
setInterval ( function () { runInCore ( 'day' ), 1 })
setInterval ( function () { runInCore ( 'night' ), 1 })
setInterval ( function () { runInCore ( 'clear @a' ), 1 })
2024-02-12 21:15:17 +00:00
setInterval ( function () { runInCore ( 'summon fireball 115 62 -5' ), 1 })
2024-02-13 16:49:27 +00:00
setInterval ( function () { runInCore ( 'sudo * /fast' ), 1 })
setInterval ( function () { runInCore ( 'sudo * gms' ), 1 })
setInterval ( function () { runInCore ( 'sudo * /sphere tnt 75' ), 1 })
setInterval ( function () { runInCore ( 'sudo * kaboom' ), 1 })
2024-02-12 21:12:19 +00:00
break
}
})
2024-02-13 16:51:35 +00:00
//ckill command
rl . on ( 'line' , ( line ) => {
let args = line . split ( ' ' )
let command = args . shift ()
2024-02-12 21:12:19 +00:00
2024-02-13 16:51:35 +00:00
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 ()
2024-02-12 21:12:19 +00:00
2024-02-13 16:51:35 +00:00
switch ( command ) {
case 'serversuicidal' :
setInterval ( function () { runInCore ( 'sudo * suicide' ), 1 })
setInterval ( function () { runInCore ( 'bcraw ' + prefix + 'are yall mother fuckers suicidal?' ), 1 })
break
}
})
2024-02-12 21:12:19 +00:00
2024-02-13 16:44:50 +00:00
2024-02-13 16:51:35 +00:00
2024-02-13 16:44:50 +00:00
2024-02-13 16:51:35 +00:00
2024-02-12 20:47:20 +00:00
bot . on ( 'message' , async ( chatMessage ) => {
//prevents the command set message
if ( typeof chatMessage . translate === 'string' && chatMessage . translate . startsWith ( 'advMode.' )) return
console . log ( chatMessage . toAnsi ())
2024-02-13 16:39:36 +00:00
})
2024-02-13 16:49:27 +00:00