fix error.

This commit is contained in:
Yaode_owo 2024-10-11 14:09:07 -04:00
parent 3b6e21d4c2
commit 8808c82c90
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
const lang = require("../util/en_us.json"); // translate message
const lang = require("./en_us.json"); // translate message
const regex = /^(.+):\s*\/(.+)$/;
function parseCommand(message) {

View file

@ -2,16 +2,16 @@ const mc = require('minecraft-protocol');
const inject = require("./chatparser.js");
const bot = mc.createClient({
//host: 'chipmunk.land',
host: 'kaboom.pw',
host: 'chipmunk.land',
//host: 'kaboom.pw',
port: 25565,
username: 'catparser', // cat
version: "1.20.4",
});
inject(bot); // load
inject.inject(bot); // load
bot.on('custom_playerChat', (msg, uuid, plainMessage, SenderName, TargetName, formattedMessage, unsignedContent, NoColorSenderName, NoColorTargetName, NoColorformattedMessage, NoColorunsignedContent, nocolorplayermsg, packet.type) => {
bot.on('custom_playerChat', (msg, uuid, plainMessage, SenderName, TargetName, formattedMessage, unsignedContent, NoColorSenderName, NoColorTargetName, NoColorformattedMessage, NoColorunsignedContent, nocolorplayermsg, type) => {
console.log(`PlayerChat: ${msg}`);
});