After running the bot for 10hrs (rarely happen)
bot goes resupply after its done resupplying, double checked everything, still it goes resupplying
after reopening the bot, it works fine again
please check the needresupply function
using this code
local cap = tonumber(getuseroption('Capacity'))
if (needresupply(cap, 'sup')) then
gotolabel('to bank')
end