mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Disconnects should be errors
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ client.on('ready', () => {
|
||||
});
|
||||
|
||||
client.on('disconnect', event => {
|
||||
console.log(`[DISCONNECT] Shard ${client.shard.id} disconnected with code ${event.code}.`);
|
||||
console.error(`[DISCONNECT] Shard ${client.shard.id} disconnected with code ${event.code}.`);
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "41.2.0",
|
||||
"version": "41.2.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user