update disconnected message a bit

This commit is contained in:
ChomeNS 2022-10-25 08:43:51 +07:00
parent 00bacd550f
commit ce2085f1ff

View file

@ -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;