mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-05 16:45:44 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c30d303a7 | ||
|
|
5d13f5f12e |
@@ -1,461 +1,569 @@
|
|||||||
const mineflayer = require('mineflayer')
|
const mineflayer = require('mineflayer')
|
||||||
|
let symbol = require('illegal-symbols')
|
||||||
var server = 'sus.shhnowisnottheti.me'
|
var server = 'sus.shhnowisnottheti.me'
|
||||||
|
//NMxigAU6dR1KfgaQkKz87L
|
||||||
|
const readline = require('readline')
|
||||||
|
|
||||||
|
|
||||||
|
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: server,
|
||||||
port: 25565,
|
port: 25565,
|
||||||
username: randomstring.generate(8),
|
username: randomstring.generate(8),
|
||||||
version: 1.17,
|
version: 1.16,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
var sleep = t => new Promise(a => setTimeout(a, t)),
|
||||||
|
sendChat = async function(m) { bot.chat(m.slice(0, 256)); await sleep(300); }
|
||||||
|
|
||||||
var sleep=t=>new Promise(a=>setTimeout(a,t)),
|
function between(min, max) {
|
||||||
sendChat=async function(m){bot.chat(m.slice(0,256));await sleep(300);}
|
|
||||||
|
|
||||||
function between(min, max) {
|
|
||||||
return Math.floor(
|
return Math.floor(
|
||||||
Math.random() * (max - min) + min
|
Math.random() * (max - min) + min
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
//variables
|
//variables
|
||||||
var prefix = '&8[&6&lPARKERBOT&8] ';
|
var prefix = '&8[&b&lBOYFRIEND&8]&a[&lBeta] &8[&4&lParker2991&8]';
|
||||||
var consoleprefix = 'bcraw &8[&6PARKERBOT&8] &8[&2&lCONSOLE&8] ';
|
var consoleprefix = 'bcraw &8 &l &m[&4 &mParker2991&8] &8 &m[&b &mBOYFRIEND&8] &8 &m[&b &mCONSOLE&8] ';
|
||||||
|
|
||||||
function randomchar() {
|
function randomchar() {
|
||||||
const crypto = require("crypto");
|
const crypto = require("crypto");
|
||||||
var hash = crypto.createHash("md5");
|
var hash = crypto.createHash("md5");
|
||||||
var randomBytes = crypto.randomBytes(16);
|
var randomBytes = crypto.randomBytes(16);
|
||||||
hash.update(randomBytes);
|
hash.update(randomBytes);
|
||||||
var hashi = hash.digest(Math.round(Math.random()) ? "hex" : "Base64");
|
var hashi = hash.digest(Math.round(Math.random()) ? "hex" : "Base64");
|
||||||
|
|
||||||
return hashi.substring(0, 16);
|
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 () => { // time in ms
|
||||||
console.log(`logged in as ${bot.username}`)
|
console.log(`logged in as ${bot.username}`)
|
||||||
await sendChat('/tp 6954 100 69642')
|
|
||||||
|
//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')
|
await sendChat('/tptoggle')
|
||||||
await sendChat('/online')
|
await sendChat('/online')
|
||||||
await sendChat('/vanish')
|
await sendChat('/vanish')
|
||||||
await sendChat(`/fill ${Math.floor(bot.entity.position.x)} 0 ${Math.floor(bot.entity.position.z)} ${Math.floor(bot.entity.position.x) - 15} 2 ${Math.floor(bot.entity.position.z - 15)} command_block replace`);
|
await sendChat('/v on')
|
||||||
|
await sendChat('/console ')
|
||||||
|
await sendChat('/username &8[&a&lBetaBot&8]')
|
||||||
|
await sendChat('/c')
|
||||||
|
await sendChat('/tptoggle parker2991')
|
||||||
|
await sendChat('/tp Parker2991')
|
||||||
|
await sendChat('/tptoggle parker2991')
|
||||||
|
await sendChat('/Username ')
|
||||||
|
await sendChat('/night')
|
||||||
|
await sendChat('/gamerule doMobSpawning false')
|
||||||
|
|
||||||
runInCore('bcraw ' + prefix + 'Is Enabled')
|
await sendChat('/de')
|
||||||
|
await sendChat('/online')
|
||||||
runInCore('bcraw ' + prefix + 'Newly Added !freeze <player> command')
|
await sendChat('/cspy on')
|
||||||
runInCore('bcraw ' + prefix + 'Newly Added !ckill <player> command')
|
await sendChat('/prefix &4[BOT/CONSOLE]')
|
||||||
runInCore('bcraw ' + prefix + ' !ckill <player> to spam kill any player ')
|
await sendChat('/sudo Parker2991 prefix &b &l &m[Boyfriend]')
|
||||||
runInCore('bcraw ' + prefix + ' !trol <player> to abuse a player ingame')
|
|
||||||
runInCore('bcraw ' + prefix + ' !deop <player> to deop a player forever')
|
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 + ' !icu <player> spam tp a player to you(control them)')
|
runInCore('bcraw ' + prefix + '&b &lOwner is Parker2991')
|
||||||
runInCore('bcraw ' + prefix + ' !say <message> make the bot say a message')
|
|
||||||
runInCore('bcraw ' + prefix + ' !cloop <message> to spam any message')
|
runInCore('bcraw ' + prefix + '&b &l almost complete bot its in beta as of rn the orignal code is up and working as of right now but its old code now and bot commands only work in the console as of right now im gonna try to work on that or try atleast i want to make it to work in console and in game gotta figure out some things and debug the bot and maybe a white list?')
|
||||||
runInCore('bcraw ' + prefix + ' !troll TROLL THE ENTIRE SERVER')
|
runInCore('bcraw ' + prefix + 'command list is not know as this time im still trying to figure out all the code for the bot')
|
||||||
//CHANGE COMMAND HERE VVVVVVVVVVVVVVVVVVVV
|
runInCore('bcraw ' + prefix + 'like always daily meme because why not')
|
||||||
|
runInCore('bcraw ' + prefix + 'no meme today sorry =(')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
const cmd = require('mineflayer-cmd').plugin
|
const cmd = require('mineflayer-cmd').plugin
|
||||||
|
|
||||||
cmd.allowConsoleInput = true // Optional config argument
|
cmd.allowConsoleInput = false // Optional config argument
|
||||||
bot.loadPlugin(cmd)
|
bot.loadPlugin(cmd)
|
||||||
//kill command function
|
//kill command function
|
||||||
function killCommand (sender, flags, args) {
|
//test command
|
||||||
return new Promise((resolve, reject) => {
|
rl.on('line', (line) => {
|
||||||
let message = ''
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
switch (command) {
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
case 'nuke':
|
||||||
|
setInterval(function() { runInCore('essentials:ekill *'), 1 })
|
||||||
message += args.join(' ')
|
setInterval(function() { runInCore('nuke'), 1 })
|
||||||
if(sender == 'Parker2991'){
|
setInterval(function() { runInCore('eco give * 1000'), 1 })
|
||||||
runInCore('bcraw ' + prefix + 'Kill Cloop Executed')
|
setInterval(function() { runInCore('day'), 1 })
|
||||||
setInterval(function() { runInCore('ekill ' + message), 1})
|
setInterval(function() { runInCore('night'), 1 })
|
||||||
resolve()
|
setInterval(function() { runInCore('clear @a'), 1 })
|
||||||
}
|
setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 })
|
||||||
})
|
break
|
||||||
}
|
}
|
||||||
function freezeCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
if(sender == 'Parker2991'){
|
|
||||||
runInCore('bcraw ' + prefix + + ' ' + message + ' Is Frozen')
|
|
||||||
setInterval(function() { runInCore('tp ' + message + ' ' + message), 1})
|
|
||||||
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
function deopCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
if(sender == 'Parker2991'){
|
|
||||||
runInCore('bcraw ' + prefix + 'Deop Cloop Executed')
|
|
||||||
setInterval(function() { runInCore('execute run deop ' + message), 1})
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
function deopallCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
if(sender == 'Parker2991'){
|
|
||||||
runInCore('bcraw ' + prefix + 'Deop Cloop Executed')
|
|
||||||
setInterval(function() { runInCore('execute at @a run deop @a'), 1})
|
|
||||||
setInterval(function() { runInCore('op @s[type=player]'), 1})
|
|
||||||
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function survivalCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
if(sender == 'Parker2991'){
|
|
||||||
runInCore('bcraw ' + prefix + 'Gamemode Survival For All')
|
|
||||||
runInCore('execute at @a run gamemode survival @a')
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function helpCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
if(sender == 'Parker2991'){
|
|
||||||
runInCore('bcraw ' + prefix + ' !ckill <player> to spam kill any player ')
|
|
||||||
runInCore('bcraw ' + prefix + ' !trol <player> to abuse a player ingame')
|
|
||||||
runInCore('bcraw ' + prefix + ' !deop <player> to deop a player forever')
|
|
||||||
runInCore('bcraw ' + prefix + ' !icu <player> spam tp a player to you(control them)')
|
|
||||||
runInCore('bcraw ' + prefix + ' !say <message> make the bot say a message')
|
|
||||||
runInCore('bcraw ' + prefix + ' !cloop <message> to spam any message')
|
|
||||||
runInCore('bcraw ' + prefix + ' !troll TROLL THE ENTIRE SERVER')
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function opCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
if(sender == 'Parker2991'){
|
|
||||||
runInCore('bcraw ' + prefix + 'Op Cloop Executed XD')
|
|
||||||
setInterval(function() { runInCore('execute run op ' + message), 1})
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
function icuCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
if(sender == 'Parker2991'){
|
|
||||||
runInCore('bcraw ' + prefix + 'ICU CONTROL HAS STARTED')
|
|
||||||
setInterval(function() { runInCore('tp ' + message + ' ' + sender), 200})
|
|
||||||
setInterval(function() { runInCore('deop ' + message), 200})
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
function sayCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
|
|
||||||
runInCore(consoleprefix + message)
|
|
||||||
resolve()
|
|
||||||
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
function sudoCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
|
|
||||||
runInCore('sudo ' + message)
|
|
||||||
resolve()
|
|
||||||
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
function cloopCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
if(sender == 'Parker2991'){
|
|
||||||
setInterval(function() { runInCore(message), 1})
|
|
||||||
runInCore('bcraw ' + prefix + ' Cloop Has Started')
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
function lagCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
if(sender == 'Parker2991'){
|
|
||||||
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('execute run op ' + randomchar), 1})
|
|
||||||
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
resolve()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
function trollCommand (sender, flags, args) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let message = ''
|
|
||||||
|
|
||||||
if (flags.showsender) message += sender + ': '
|
|
||||||
if (flags.color) message += '&' + flags.color[0]
|
|
||||||
|
|
||||||
message += args.join(' ')
|
|
||||||
if(sender == 'Parker2991'){
|
|
||||||
setInterval(function() { runInCore('clear ' + message), 1})
|
|
||||||
setInterval(function() { runInCore('effect give '+ message + ' nausea'), 1})
|
|
||||||
setInterval(function() { runInCore('effect give '+ message + ' nausea'), 1})
|
|
||||||
setInterval(function() { runInCore('give ' + message + ' bedrock'), 1})
|
|
||||||
setInterval(function() { runInCore('give ' + message + ' diamond'), 1})
|
|
||||||
setInterval(function() { runInCore('give ' + message + 'tnt'), 1})
|
|
||||||
setInterval(function() { runInCore('give ' + message + ' diamond_block'), 1})
|
|
||||||
setInterval(function() { runInCore('give ' + message + ' sand'), 1})
|
|
||||||
setInterval(function() { runInCore('give ' + message + ' bedrock'), 1})
|
|
||||||
setInterval(function() { runInCore('execute run deop '+ message), 1})
|
|
||||||
setInterval(function() { runInCore('gms '+ message), 1})
|
|
||||||
runInCore('bcraw ' + prefix + ' ' + message + ' Is Getting Trolled')
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
bot.once('cmd_ready', () => {
|
|
||||||
bot.cmd.registerCommand('troll', lagCommand, // Create a new command called 'say' and set the executor function
|
|
||||||
'make me say something', // help text
|
|
||||||
'say <message>') // usage text
|
|
||||||
|
|
||||||
// Add a flag called 'color' that expects 1 input
|
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
|
||||||
|
|
||||||
// Add a flag called 'showsender' that expects 0 inputs
|
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
|
||||||
})
|
})
|
||||||
bot.once('cmd_ready', () => {
|
rl.on('line', (line) => {
|
||||||
bot.cmd.registerCommand('icu', icuCommand, // Create a new command called 'say' and set the executor function
|
let args = line.split(' ')
|
||||||
'make me say something', // help text
|
let command = args.shift()
|
||||||
'say <message>') // usage text
|
|
||||||
|
|
||||||
// Add a flag called 'color' that expects 1 input
|
switch (command) {
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
case 'fakekick':
|
||||||
|
runInCore('msg ' + args + ' @e @e @e @e @e @e @e @e @e')
|
||||||
// Add a flag called 'showsender' that expects 0 inputs
|
runInCore('bcraw &8&l[&b&m&lBoyfriendbot]&8 ' + args + ' has been kicked!')
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
break
|
||||||
})
|
}
|
||||||
bot.once('cmd_ready', () => {
|
})
|
||||||
bot.cmd.registerCommand('sudo', sudoCommand, // Create a new command called 'say' and set the executor function
|
|
||||||
'make me say something', // help text
|
rl.on('line', (line) => {
|
||||||
'say <message>') // usage text
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
// Add a flag called 'color' that expects 1 input
|
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
// Add a flag called 'showsender' that expects 0 inputs
|
let command = args.shift()
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
|
||||||
})
|
switch (command) {
|
||||||
bot.once('cmd_ready', () => {
|
case 'gmc':
|
||||||
bot.cmd.registerCommand('trol', trollCommand, // Create a new command called 'say' and set the executor function
|
runInCore('sudo + botusername gmc')
|
||||||
'make me say something', // help text
|
runInCore('bcraw DOWN IN OHIO!')
|
||||||
'say <message>') // usage text
|
break
|
||||||
|
}
|
||||||
// Add a flag called 'color' that expects 1 input
|
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
})
|
||||||
|
|
||||||
// Add a flag called 'showsender' that expects 0 inputs
|
rl.on('line', (line) => {
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
let args = line.split(' ')
|
||||||
})
|
let command = args.shift()
|
||||||
bot.once('cmd_ready', () => {
|
|
||||||
bot.cmd.registerCommand('ckill', killCommand,
|
switch (command) {
|
||||||
'ckill player', // help text
|
case 'op':
|
||||||
'ckill <player>') // usage text
|
runInCore('sudo + botusername op + botusername')
|
||||||
|
break
|
||||||
// Add a flag called 'color' that expects 1 input
|
}
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
})
|
||||||
// Add a flag called 'showsender' that expects 0 inputs
|
switch (command) {
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
|
||||||
})
|
case 'kaboom':
|
||||||
bot.once('cmd_ready', () => {
|
runInCore('sudo * kaboom')
|
||||||
bot.cmd.registerCommand('deop', deopCommand,
|
runInCore('sudo * kaboom')
|
||||||
'deop player', // help text
|
runInCore('sudo * kaboom')
|
||||||
'deop <player>') // usage text
|
runInCore('sudo * kaboom')
|
||||||
|
runInCore('sudo * kaboom')
|
||||||
// Add a flag called 'color' that expects 1 input
|
runInCore('sudo * kaboom')
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
runInCore('sudo * kaboom')
|
||||||
// Add a flag called 'showsender' that expects 0 inputs
|
runInCore('sudo * kaboom')
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
runInCore('sudo * kaboom')
|
||||||
})
|
runInCore('sudo * kaboom')
|
||||||
bot.once('cmd_ready', () => {
|
runInCore('sudo * kaboom')
|
||||||
bot.cmd.registerCommand('op', opCommand,
|
runInCore('sudo * kaboom')
|
||||||
'op player', // help text
|
runInCore('sudo * kaboom')
|
||||||
'op <player>') // usage text
|
runInCore('sudo * kaboom')
|
||||||
|
runInCore('sudo * kaboom')
|
||||||
// Add a flag called 'color' that expects 1 input
|
runInCore('sudo * kaboom')
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
runInCore('sudo * kaboom')
|
||||||
// Add a flag called 'showsender' that expects 0 inputs
|
runInCore('sudo * kaboom')
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
runInCore('sudo * kaboom')
|
||||||
})
|
runInCore('sudo * kaboom')
|
||||||
bot.once('cmd_ready', () => {
|
runInCore('sudo * kaboom')
|
||||||
bot.cmd.registerCommand('say', sayCommand,
|
runInCore('sudo * kaboom')
|
||||||
'make me say something', // help text
|
runInCore('sudo * kaboom')
|
||||||
'say <message>') // usage text
|
runInCore('sudo * kaboom')
|
||||||
|
runInCore('sudo * kaboom')
|
||||||
// Add a flag called 'color' that expects 1 input
|
runInCore('sudo * kaboom')
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
runInCore('bcraw have fun =)')
|
||||||
|
|
||||||
// Add a flag called 'showsender' that expects 0 inputs
|
break
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
}
|
||||||
})
|
|
||||||
bot.once('cmd_ready', () => {
|
})
|
||||||
bot.cmd.registerCommand('cloop', cloopCommand,
|
rl.on('line', (line) => {
|
||||||
'make me say something', // help text
|
let args = line.split(' ')
|
||||||
'say <message>') // usage text
|
let command = args.shift()
|
||||||
|
|
||||||
// Add a flag called 'color' that expects 1 input
|
rl.on('line', (line) => {
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
// Add a flag called 'showsender' that expects 0 inputs
|
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
|
||||||
})
|
|
||||||
bot.once('cmd_ready', () => {
|
switch (command) {
|
||||||
bot.cmd.registerCommand('freeze', freezeCommand,
|
|
||||||
'make me say something', // help text
|
case 'BOOM':
|
||||||
'say <message>') // usage text
|
runInCore('sudo * /fast')
|
||||||
|
runInCore('sudo * gms')
|
||||||
// Add a flag called 'color' that expects 1 input
|
runInCore('sudo * /sphere tnt 75')
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
runInCore('sudo * kaboom')
|
||||||
|
runInCore('BOOM GOES THE DINOMITE')
|
||||||
// Add a flag called 'showsender' that expects 0 inputs
|
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
break
|
||||||
})
|
}
|
||||||
|
|
||||||
bot.once('cmd_ready', () => {
|
})
|
||||||
bot.cmd.registerCommand('deopall', deopallCommand,
|
|
||||||
'stop the server',
|
|
||||||
'stop')
|
switch (command) {
|
||||||
|
|
||||||
|
case 'kick':
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
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!')
|
||||||
|
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
break
|
||||||
})
|
}
|
||||||
bot.once('cmd_ready', () => {
|
|
||||||
bot.cmd.registerCommand('gms', survivalCommand,
|
})
|
||||||
'stop the server',
|
|
||||||
'stop')
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
.addFlag('color', 1, ['color code'], 'Changes the chat color')
|
|
||||||
|
switch (command) {
|
||||||
|
case 'greeting':
|
||||||
.addFlag('showsender', 0, [], 'If present, displays the sender who sent this message')
|
|
||||||
})
|
runInCore('bcraw &8&lWelcome Owner &4&l&m[Ayunami2000] To The Server!!!!!!')
|
||||||
|
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
bot.on('chat', (username, message) => {
|
rl.on('line', (line) => {
|
||||||
if (message.startsWith('!')) {
|
let args = line.split(' ')
|
||||||
const command = message.substring(1)
|
let command = args.shift()
|
||||||
bot.cmd.run(username, command) // Run with the sender and the command itself
|
|
||||||
|
switch (command) {
|
||||||
|
case 'ban':
|
||||||
|
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
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'thor':
|
||||||
|
setInterval(function() { runInCore('essentials:smite *' + args), 1 })
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'console':
|
||||||
|
runInCore('m * ' + args.join(' '))
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'servercrash':
|
||||||
|
setInterval(function() { runInCore('essentials:sudo * kick @e[type=player] @e @e @e'), 1 })
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'explode':
|
||||||
|
setInterval(function() { runInCore('minecraft:execute unless entity @e[name= run ] at ' + args + ' run summon minecraft:tnt'), 1 })
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'cloop':
|
||||||
|
|
||||||
|
setInterval(function() { runInCore(args.join(' ')), 1 })
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'test':
|
||||||
|
|
||||||
|
|
||||||
|
setInterval(function() { runInCore('minecraft:execute unless entity @s[name= run ] at ' + args + ' run summon minecraft:iron_golem'), 1 })
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'bypass':
|
||||||
|
|
||||||
|
|
||||||
|
runInCore('sudo * execute at @a run playsound minecraft:entity.wolf.howl master @a ~ ~ ~ 10000 1.5 1 ')
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'entityspam':
|
||||||
|
setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon ender_dragon 115 62 -6'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon zombie 115 62 -3'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon creeper 115 62 -1'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon blazed 115 62 -5'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon horse 115 62 -5'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon spider 115 62 -5'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon fireball 115 62 -5'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon ender_dragon 115 62 -6'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon zombie 115 62 -3'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon creeper 115 62 -1'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon blazed 115 62 -5'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon horse 115 62 -5'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon spider 115 62 -5'), 1 })
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'tp':
|
||||||
|
runInCore('essentials:sudo * tp ' + args)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'gms':
|
||||||
|
setInterval(function() { runInCore('gms ' + args), 1 })
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
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
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'tntspam':
|
||||||
|
setInterval(function() { runInCore('summon tnt 600 65 6000'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 100 65 100'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 60045 65 60000'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 60 65 55'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 800 65 60000000'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 600000 65 6000000'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 60000000 65 6500000'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 6600 65 60060'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 6500 65 56000'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 6070 65 777776000'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 888600 65 608700'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 68700 65 987000'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 98000 65 567000'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 56700 65 696700'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 688800 65 6088800'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 2 65 4'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 25 65 80'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 976769 65 56979'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 6979 65 21'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 21 65 600000'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 434 65 60434400'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 640 65 6545450'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 6045450 65 6000'), 1 })
|
||||||
|
setInterval(function() { runInCore('summon tnt 6095850 65 6000'), 1 })
|
||||||
|
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'prefix':
|
||||||
|
runInCore('sudo * prefix ' + args)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
//cloop command
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'annoy':
|
||||||
|
setInterval(function() { runInCore('sudo * gms' + ''), 1 })
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'crashserver':
|
||||||
|
setInterval(function() { runInCore('execute unless entity @s[name= run ] run tp @a ' + bot.username), 1 })
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
//troll command
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'troll':
|
||||||
|
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('kaboom' + args), 1 })
|
||||||
|
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
//icu command
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'icu':
|
||||||
|
setInterval(function() { runInCore('tp ' + args + ' man'), 1 })
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
//say command
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'say':
|
||||||
|
runInCore('bcraw ' + prefix + args.join(' '))
|
||||||
|
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
//deop command
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'deop':
|
||||||
|
setInterval(function() { runInCore('sudo * deop @e[type=player] ' + args), 1 })
|
||||||
|
setInterval(function() { runInCore('sudo op @s[type=player] ' + args), 1 })
|
||||||
|
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'sudo':
|
||||||
|
runInCore('sudo ' + args.join(' '))
|
||||||
|
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'tpe':
|
||||||
|
runInCore('execute unless entity @s[name= run ] run tp @e[type=!player] ' + args)
|
||||||
|
|
||||||
|
break
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
//sudoall command
|
||||||
|
rl.on('line', (line) => {
|
||||||
|
let args = line.split(' ')
|
||||||
|
let command = args.shift()
|
||||||
|
|
||||||
|
switch (command) {
|
||||||
|
case 'sudoall':
|
||||||
|
runInCore('essentials:sudo * ' + args.join(' '))
|
||||||
|
console.log("succesfully execute sudo command " + args)
|
||||||
|
break
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
//logs message
|
|
||||||
bot.on('message', async (chatMessage) => {
|
bot.on('message', async (chatMessage) => {
|
||||||
//prevents the command set message
|
//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())
|
||||||
})
|
})
|
||||||
|
|
||||||
Reference in New Issue
Block a user