Closed codesidian closed 4 years ago
confirm and agree
Completed here - https://github.com/codesidian/Python-MissionChiefBot/commit/e9f2d9e49b65b518cc672d37f2498cee9ad21ddb and here https://github.com/codesidian/Python-MissionChiefBot/commit/e5c0584002aebd656bd537a1bd3d123ef2092b2f
Not sure if we'll need to keep track of how many missions we have as it'll refresh after sleep timeout.
Since missions can time out, our current implementation of loading missions can fail if the user's mission amount is too big. We have a list of some timed out missions which cannot be dispatched.
A solution to the problem would be to change the logic to do missions in batches of 10 or any arbitrary number, rather than all at once. Load batch, dispatch batch and repeat.