Swiddis / word-debt-bot

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

Add shop command #43

Closed azhitian closed 5 months ago

azhitian commented 5 months ago

Closes #37.

I called it shop instead because I kept getting "store" mixed up in my head with storing things in general. It also sounds casual and fun

I added price logging to the journal entries under the assumption the price list could be modified in a way that isn't tracked in the journal, but I don't know what to do about handling the entries that already exist right now without prices (I mean there's only two items right now, so it's probably not a huge deal, but it would need to be handled in the journal replay code)

codecov-commenter commented 5 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (1f078db) 90.72% compared to head (6317984) 91.31%. Report is 4 commits behind head on dev.

Files Patch % Lines
src/word_debt_bot/cogs/game_commands.py 95.65% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #43 +/- ## ========================================== + Coverage 90.72% 91.31% +0.59% ========================================== Files 10 10 Lines 291 311 +20 ========================================== + Hits 264 284 +20 Misses 27 27 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

azhitian commented 5 months ago

Fixed default prices