Break the entire bot

This commit is contained in:
7cc5c4f330d47060 2024-09-19 22:16:09 -04:00
parent 8e7dd2bb4b
commit 2ca476c0cc
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
6 changed files with 18 additions and 23 deletions

View file

@ -1,7 +1,6 @@
const parsePlain = require('../util/chatparse_plain.js')
const parsePlain = require('../../util/chatparse_plain.js')
module.exports = {
load: (b) => {
b.on("chat_unparsed", data => {
parse: (data) => {
if(data.type == "system" || data.type == "legacy"){
if(data.parsed) return
if (data.json.translate === '%s %s %s' || data.json.translate === '[%s] %s %s') {
@ -42,6 +41,6 @@ module.exports = {
}
}
}
})
}
}

View file

@ -1,7 +1,6 @@
const parsePlain = require('../util/chatparse_plain.js')
const parsePlain = require('../../util/chatparse_plain.js')
module.exports = {
load: (b) => {
b.on("chat_unparsed", data => {
parse: (data) => {
if(data.type == "system" || data.type == "legacy"){
if(data.parsed) return
if (data.json.extra && data.json.extra[4] && data.json.extra[3] && data.json.extra[5] && data.json.extra[4].text === ' » ') { // ChipmunkMod format - m_c_player
@ -20,6 +19,6 @@ module.exports = {
})
}
}
})
}
}

View file

@ -1,7 +1,6 @@
const parsePlain = require('../util/chatparse_plain.js')
const parsePlain = require('../../util/chatparse_plain.js')
module.exports = {
load: (b) => {
b.on("chat_unparsed", data => {
parse: (data) => {
if(data.type == "profileless"){
if(data.parsed) return
if (data.playerChatType.translation_key === '%s') {
@ -24,6 +23,6 @@ module.exports = {
})
}
}
})
}
}

View file

@ -1,6 +1,6 @@
module.exports = {
load: (b) => {
b.on("chat_unparsed", data => {
parse: (data) => {
if(data.type == "player" || data.type == "profileless"){
if(data.parsed) return
if (data.type == "profileless" && data.playerChatType.translation_key === '%s') return
@ -14,6 +14,6 @@ module.exports = {
username: data.username
})
}
})
}
}

View file

@ -1,7 +1,7 @@
const parsePlain = require('../util/chatparse_plain.js')
const parsePlain = require('../../util/chatparse_plain.js')
module.exports = {
load: (b) => {
b.on("chat_unparsed", data => {
parse: (data) => {
if(data.type == "system" || data.type == "legacy"){
if(data.parsed) return
if (data.type == "legacy" && data.json.translate === 'chat.type.text') return
@ -24,6 +24,6 @@ module.exports = {
username: username
})
}
})
}
}

View file

@ -1,7 +1,6 @@
const parsePlain = require('../util/chatparse_plain.js')
const parsePlain = require('../../util/chatparse_plain.js')
module.exports = {
load: (b) => {
b.on("chat_unparsed", data => {
parse: (data) => {
if(data.type == "legacy"){
if(data.parsed) return
let subtype = `vanilla_${data.type}`
@ -28,6 +27,5 @@ module.exports = {
})
}
}
})
}
}