From ce2085f1ffe4ed1bb288c79b2410ccdbd17d4e56 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Tue, 25 Oct 2022 08:43:51 +0700 Subject: [PATCH] update disconnected message a bit --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 9df8635..7f1cfe3 100644 --- a/index.js +++ b/index.js @@ -212,8 +212,8 @@ function main() { }, 100); bot.once('end', (reason, event) => { - console.log(`Disconnected (${event} event): ${util.inspect(reason)}`); - channel.send(`Disconnected (${event} event): \`${util.inspect(reason)}\``); + console.log(`Disconnected from ${bot.options.host} (${event} event): ${util.inspect(reason)}`); + channel.send(`Disconnected: \`${util.inspect(reason)}\``); const timeout = config.reconnectTimeout;