Commit 64b8ce12 authored by Isabella Skořepová's avatar Isabella Skořepová
Browse files

Add safety timeout

parent b1ea8b25
......@@ -13,6 +13,7 @@ async function bot(travian) {
const time = await travian.getTimeWhenUpgradePossible(
if(!time) {
console.log('adding lowest level resource building')
await timeout(5000)
await travian.upgradeBuilding(
} else {
const ms = time.getTime() -
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment