diff --git a/client-modes/bot-mode.js b/client-modes/bot-mode.js index 04da316..ebf7945 100644 --- a/client-modes/bot-mode.js +++ b/client-modes/bot-mode.js @@ -46,6 +46,9 @@ function foundProto(func) { function connect() { client.connectGame(process.argv[2], process.argv[3] || '[BOT]', function(success, msg) { + if (!success) { + setTimeout(connect, 1000); + } }); }