fix error.
This commit is contained in:
parent
3b6e21d4c2
commit
8808c82c90
2 changed files with 5 additions and 5 deletions
|
@ -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) {
|
||||
|
|
|
@ -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}`);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue