fix ii
This commit is contained in:
parent
3d702a4d37
commit
f8712bd513
2 changed files with 6 additions and 6 deletions
|
@ -114,10 +114,10 @@ function inject (bot) {
|
|||
|
||||
bot.on('chat', message => {
|
||||
const stringifyOptions = { lang: bot.registry.language }
|
||||
bot.emit('chat_plain', plainStringify(message, stringifyOptions))
|
||||
bot.emit('chat_color_code', colorCodeStringify(message, stringifyOptions))
|
||||
bot.emit('chat_ansi', ansiStringify(message, stringifyOptions))
|
||||
bot.emit('chat_html', htmlStringify(message, stringifyOptions))
|
||||
bot.emit('chat_plain', plainStringify(message, stringifyOptions), message)
|
||||
bot.emit('chat_color_code', colorCodeStringify(message, stringifyOptions), message)
|
||||
bot.emit('chat_ansi', ansiStringify(message, stringifyOptions), message)
|
||||
bot.emit('chat_html', htmlStringify(message, stringifyOptions), message)
|
||||
|
||||
if (bot.chat.shouldLog(message)) bot.console.log(message)
|
||||
})
|
||||
|
|
|
@ -14,8 +14,8 @@ function inject (bot, options) {
|
|||
|
||||
const startTime = Date.now()
|
||||
|
||||
bot.on('chat_html', html => {
|
||||
if (!bot.chat.shouldLog(html)) return
|
||||
bot.on('chat_html', (html, message) => {
|
||||
if (!bot.chat.shouldLog(message)) return
|
||||
sendMessage(html)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue