Running '!add games' deletes all state data upon restarting twice
Closedopened 1 year ago by seabass · 1 comments
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
A bug causes
matchbotto fail to read its state from the serialised JSON data if it contains a game literally called
games. This leads
nullto the specified JSON file when it next exits, overwriting all the stored data about players and games.
Steps to reproduce:
As a user on IRC, send the command
!add gamesto the channel which
matchbotis listening in.
Send the command
!listand observe that no data is present, or observe that your chosen JSON data file (specified with the value of the
data-filekey in your
matchbotconfiguration file) contains only the string
Those running instances of
matchbotshould immediately take backups of their JSON data file and update to version 1.0.1 of
matchbotas soon as it is available.
Resolved in pull request #5.