diff --git a/lib/bot.js b/lib/bot.js index 067747f..041921f 100644 --- a/lib/bot.js +++ b/lib/bot.js @@ -104,6 +104,12 @@ class Bot extends EventEmitter { if (err.eresult && login_error_msgs[err.eresult] !== undefined) { winston.error(this.username + ': ' + login_error_msgs[err.eresult]); } + + // Yes, checking for string errors sucks, but we have no other attributes to check + // this error against. + if (err.toString().includes('Proxy connection timed out')) { + this.steamClient.relog(); + } }); this.steamClient.on('disconnected', (eresult, msg) => {