mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
fix
also i might use prismarine-chat but too lazy
This commit is contained in:
parent
76ea644bf8
commit
158eabaa45
1 changed files with 2 additions and 2 deletions
|
@ -80,8 +80,8 @@ function inject (bot, dcclient, config) {
|
|||
target.on('error', () => {})
|
||||
|
||||
target.on('end', targetEndListener)
|
||||
target.on('kick_disconnect', targetEndListener)
|
||||
target.on('disconnect', targetEndListener)
|
||||
target.on('kick_disconnect', ({ reason }) => targetEndListener(JSON.parse(reason)))
|
||||
target.on('disconnect', ({ reason }) => targetEndListener(JSON.parse(reason)))
|
||||
|
||||
function targetEndListener (reason) {
|
||||
target.end()
|
||||
|
|
Loading…
Reference in a new issue