This commit is contained in:
Parker2991 2024-02-13 16:44:50 +00:00
parent b57fd74b16
commit cee12661bf

View file

@ -1,10 +1,10 @@
const mineflayer = require('mineflayer') const mineflayer = require('mineflayer')
let symbol = require('illegal-symbols') let symbol = require('illegal-symbols')
var server = 'play.chipmunk.land' var server = 'sus.shhnowisnottheti.me'
//NMxigAU6dR1KfgaQkKz87L //NMxigAU6dR1KfgaQkKz87L
const readline = require('readline') const readline = require('readline')
let command = require('mineflayer-cmd')
const prismarine = require('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');
@ -47,12 +47,12 @@ bot.on('login', async () => { // time in ms
//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('/de')
await sendChat('/tptoggle') await sendChat('/tptoggle')
await sendChat('/online') await sendChat('/online')
await sendChat('/v on') await sendChat('/v on')
await sendChat('/console ')
await sendChat('/username ') await sendChat('/username Parker2991')
await sendChat('/c') await sendChat('/c')
await sendChat('/gmc') await sendChat('/gmc')
await sendChat('/top') await sendChat('/top')
@ -80,7 +80,8 @@ const cmd = require('mineflayer-cmd').plugin
cmd.allowConsoleInput = false // Optional config argument cmd.allowConsoleInput = false // Optional config argument
bot.loadPlugin(cmd) bot.loadPlugin(cmd)
//nuke command //kill command function
//test 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()
@ -98,7 +99,7 @@ rl.on('line', (line) => {
break break
} }
}) })
//fakekick 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()
@ -112,8 +113,24 @@ rl.on('line', (line) => {
}) })
//powertool command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'Powertool':
runInCore('sudo ' + args.join + 'pt')
runInCore('bcraw enjoy your new powertool')
break
}
})
//gmc command
rl.on('line', (line) => { rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
@ -128,7 +145,7 @@ rl.on('line', (line) => {
}) })
//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()
@ -138,7 +155,7 @@ rl.on('line', (line) => {
setInterval(function() { runInCore('sudo ' + + 'deop @s[type=player]'), 1 }) setInterval(function() { runInCore('sudo ' + + 'deop @s[type=player]'), 1 })
} }
}) })
//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()
@ -152,7 +169,7 @@ rl.on('line', (line) => {
} }
}) })
//boom 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()
@ -173,7 +190,6 @@ runInCore('sudo * /sphere tnt 75')
} }
}) })
//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()
@ -188,7 +204,7 @@ switch (command) {
} }
}) })
//greeting 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()
@ -201,41 +217,25 @@ rl.on('line', (line) => {
break break
} }
}) })
// 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 '': case 'ban':
runInCore('')
break
}
})
//fakeban command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'fakeban':
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 &4&l&mConsole Has Perm Banned ' + args + 'For 22 Days And 14 Hours') runInCore('bcraw &4&l&mConsole Has Perm Banned ' + args + 'For 22 Days And 14 Hours')
break break
} }
}) })
//thor 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 'thor': case 'thor':
runInCore('essentials:smite *' + args) setInterval(function() { runInCore('essentials:smite *' + args), 1 })
runInCore('bcraw I AM ZUE')
break break
} }
}) })
@ -253,16 +253,6 @@ rl.on('line', (line) => {
let args = line.split(' ') let args = line.split(' ')
let command = args.shift() let command = args.shift()
switch (command) {
case 'reload':
runInCore('reload')
break
}
})
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) { switch (command) {
case 'servercrash': case 'servercrash':
setInterval(function() { runInCore('essentials:sudo * kick @e[type=player] @e @e @e'), 1 }) setInterval(function() { runInCore('essentials:sudo * kick @e[type=player] @e @e @e'), 1 })
@ -626,18 +616,10 @@ switch (command) {
}) })
//pt command
rl.on('line', (line) => {
let args = line.split(' ')
let command = args.shift()
switch (command) {
case 'pt':
runInCore("sudo " + player + args + "pt")
break
}
})
bot.on('message', async (chatMessage) => { bot.on('message', async (chatMessage) => {
//prevents the command set message //prevents the command set message