botv12/chatParsers/chat_player.js

20 lines
408 B
JavaScript
Raw Normal View History

2024-10-22 23:11:33 -04:00
const priority = 2
const parse = (data, b) => {
if (data.type === 'player' || data.type === 'profileless') {
return {
parsed: true,
json: data.json,
type: data.type,
subtype: 'generic_player',
uuid: data.uuid,
message: data.message,
nickname: data.nickname,
username: data.username
}
}
return {
parsed: false
}
}
2024-11-19 20:05:19 -05:00
export { priority, parse }