When you launch the bot it should fetch the world logs and update it's player record according to joins that have happened since you last updated the bot. There are currently 2 problems.
The logs aren't fetched.
If chat comes in before the logs do (almost always) the lastPlayersUpdate key will be updated prematurely, resulting in log joins being ignored.
This should probably be fixed by moving the lastUpdate variable in _updatePlayers to a property that is initialized when the World class is created.
When you launch the bot it should fetch the world logs and update it's player record according to joins that have happened since you last updated the bot. There are currently 2 problems.
lastPlayersUpdate
key will be updated prematurely, resulting in log joins being ignored.This should probably be fixed by moving the
lastUpdate
variable in_updatePlayers
to a property that is initialized when theWorld
class is created.