lekro / elosensei

[unmaintained] Discord bot implementing the Elo rating system
GNU General Public License v3.0
3 stars 2 forks source link

Keep match history and user status different for each guild #21

Open lekro opened 6 years ago

lekro commented 6 years ago

We have a few options to accomplish this.

lekro commented 6 years ago

On second thought, the players and events dataframes can be simply loaded from listing the contents of the data directory. This can be all done at init time. But if a particular guild doesn't have a set of dataframes, that has to be done at runtime.

We can have a dict of guild -> tuples instead, where tuple is (lock, events, users)? But tuples are immutable so we'd have to make a new tuple when saving things.