Update chatparser.js
This commit is contained in:
parent
a77e4d8425
commit
aa0e0c6536
1 changed files with 11 additions and 17 deletions
|
@ -1,6 +1,4 @@
|
|||
const ChatMessage = require('../util/ChatMessage')('1.19.2');
|
||||
function inject(bot) {
|
||||
|
||||
bot.on('systemChat', (data) => {
|
||||
const msg = ChatMessage.fromNotch(data.formattedMessage);
|
||||
const chatPositions = {
|
||||
|
@ -11,7 +9,3 @@ function inject(bot) {
|
|||
bot.emit('cmessagestr', msg.toString(), chatPositions[data.positionId], msg, null);
|
||||
if (data.positionId === 2) bot.emit('cactionBar', msg, null);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
module.exports = inject;
|
Loading…
Reference in a new issue