From a2af62660ce3adc1355418f133b9a9a6c0f2bafa Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 21 Sep 2017 01:20:37 +0000 Subject: [PATCH] Disconnects should be errors --- XiaoBot.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/XiaoBot.js b/XiaoBot.js index 8b90331b..cd475dd2 100644 --- a/XiaoBot.js +++ b/XiaoBot.js @@ -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); }); diff --git a/package.json b/package.json index 2bf1655a..f9e2389e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "41.2.0", + "version": "41.2.1", "description": "Your personal server companion.", "main": "Shard.js", "scripts": {