add kick_disconnect listener for better debug
This commit is contained in:
parent
7f462942c0
commit
ad16e93405
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
@ -124,6 +124,10 @@ client.on("end", function(reason){
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
client.on("kick_disconnect", function(packet){
|
||||||
|
console.log(packet)
|
||||||
|
})
|
||||||
|
|
||||||
client.on("error", function(err){
|
client.on("error", function(err){
|
||||||
console.log(err)
|
console.log(err)
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
|
|
Loading…
Reference in a new issue