Remove extraneous comments

This commit is contained in:
7cc5c4f330d47060 2024-07-24 06:19:08 -04:00
parent 71e61e9df1
commit 301fa273e0
6 changed files with 4 additions and 15 deletions

View file

@ -46,7 +46,6 @@ const createBot = function createBot(host,oldId){
version: settings.version_mc
})
bot._client.on("success",()=>{
//console.log(bot);
})
if(typeof oldId !== "undefined"){
for(const i in module.exports.bot[oldId].interval){
@ -68,9 +67,6 @@ const createBot = function createBot(host,oldId){
bot.info=(msg)=>{
console.log(`[${bot.id}] [info] ${msg}`)
}
/*bot.error=(msg){
console.log(`[${bot.id}] [error] ${msg}`)
}*/
loadplug(bot.id);
bot._client.on("error",(err)=>{
console.log(err)

View file

@ -58,7 +58,7 @@ module.exports = {
setTimeout(() => { b.interval.ccqi = setInterval(b.advanceccq, 3) }, 1000) // 1 Second and 3 Milliseconds
b.ccStarted = true;
})
b.on('chat', (data) => { //
b.on('chat', (data) => {
if (!b.ccStarted && (data.json.translate == 'commands.fill.failed' || (data.json.extra && data.json.extra[0] && data.json.extra[0].translate == 'commands.fill.failed') ||
data.json.translate == 'commands.fill.success' || (data.json.extra && data.json.extra[0] && data.json.extra[0].translate == 'commands.fill.success'))) {
b.emit('ccstart')
@ -77,7 +77,6 @@ module.exports = {
}
}
// console.log(b.pos);
b.commandPos = {
x1: Math.floor(a.x),
x2: Math.ceil(a.x) + 3,
@ -86,7 +85,6 @@ module.exports = {
y1: 20,
y2: 10
}
// b.send("/fill ~5 0 ~5 ~-5 0 ~-5 command_block")
b._client.write('teleport_confirm', { teleportId: a.teleportId })
})
b.tellraw = (uuid, message) => {

View file

@ -1,5 +1,3 @@
// copied from u6, u9
// Old name: 020000_console.js
const readln = require('readline')
const index = require('../index.js')
const ConsoleCommand = require('../util/ConsoleCommand.js')

View file

@ -1,9 +1,8 @@
module.exports={//profileless_chat player_chat system_chat
module.exports={
load:()=>{
//console.log("Loaded on global")
},
loadBot:(b)=>{
//console.log(`Loaded on bot ${b.id}`)
b._client.on("login",()=>{
b.interval.chatQueue=setInterval(()=>{
if(b.chatqueue.length!=0){
@ -11,7 +10,6 @@ module.exports={//profileless_chat player_chat system_chat
b.chatqueue.splice(0,1)
}
},150)
//b.chat("Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. Text longer than 256 characters. ")
})
b.chatqueue=[];
b.chat=function chat(msg){

View file

@ -1,7 +1,6 @@
const index = require('../index.js')
module.exports={
load:()=>{
//console.log("Loaded on global")
},
loadBot:(b)=>{
b._client.on("end",()=>{

View file

@ -23,7 +23,7 @@ const consoleColors={
"reset":"\x1B[0m\x1B[38;2;255;255;255m"
}
const hexColorParser=(color)=>{
let out="\x1B[0m";//\x1B[48;2;220;220;220m\x1B[38;2;0;0;0m
let out="\x1B[0m";
const redChannel=Number("0x"+color.slice(1,3));
const greenChannel=Number("0x"+color.slice(3,5));
const blueChannel=Number("0x"+color.slice(5,7));