Swiddis / word-debt-bot

A Discord bot for running a little reading game.
MIT License
2 stars 2 forks source link

Store accumulative words read #25

Closed Swiddis closed 4 months ago

Swiddis commented 6 months ago

Based on multiple requests (both in the server using the bot and e.g. in #23), it seems like storing accumulative words might be worth implementing. This can be added to the log command and stored as another value in a user.

Swiddis commented 6 months ago

To handle built-in migration and play nicely with beartype, it's probably a good idea to type hint it as None | int and add a __post_init__ method that initializes it to 0 if it's missing.

Swiddis commented 4 months ago

On second thought, this can probably be handled better by reusing the existing journal. Instead we can maybe try introducing a class that can access/read it?