diff --git a/main/chatparser.js b/main/chatparser.js index 7b2573d..a041d93 100644 --- a/main/chatparser.js +++ b/main/chatparser.js @@ -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) { diff --git a/main/main.js b/main/main.js index 2a0f6ad..038ba99 100644 --- a/main/main.js +++ b/main/main.js @@ -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}`); });