This commit is contained in:
ChomeNS 2022-11-06 15:59:56 +07:00
parent bed8a6229f
commit 81d5bc1189

View file

@ -8,6 +8,8 @@ function inject(bot) {
bot._client.on('chat', async (packet) => {
try {
// const message = parse(packet.message);
const parsedMessage = JSON.parse(packet.message);
if (parsedMessage.translate === 'advMode.setCommand.success') return;
const message = ChatMessage.fromNotch(packet.message);
bot.emit('parsed_chat', message, packet);
} catch (e) {