Skip to content

Major changes in fun/Counting#42

Merged
youngcoder45 merged 3 commits intomainfrom
yc45
Apr 5, 2026
Merged

Major changes in fun/Counting#42
youngcoder45 merged 3 commits intomainfrom
yc45

Conversation

@youngcoder45
Copy link
Copy Markdown
Contributor

@youngcoder45 youngcoder45 commented Apr 5, 2026

What changed?

Removed the Rock Paper Scissors cog and reworked the Counting game failure flow to use a save system instead of the “Dice of Fate”. Users can now earn and spend personal saves, and servers can accumulate a shared save pool. Daily Quests were updated to include both quiz + counting tasks and to award partial streak-freeze and save rewards with inventory caps.

Why?

This prevents accidental/one-off counting mistakes from ruining a server’s progress and introduces a progression loop (Daily Quests → saves/freezes → protection). It also simplifies the counting failure UX by replacing the dice mechanic with deterministic “use-save-first” behavior.

Link the issue (required for non-trivial changes):

  • Closes #

How to test

1) Static checks (no token needed)

"./.venv/bin/python" -m py_compile bot.py cogs/*.py utils/*.py

Expected: no output and exit code 0.

2) Run the bot (requires token)

export DISCORD_TOKEN="<your token>"
"./.venv/bin/python" bot.py

Expected: bot starts and logs loaded cogs and slash-sync results (or errors if guild IDs aren’t configured).

3) Manual behavior checks in Discord

Counting saves

  1. Set a counting channel (admin): /setcountingchannel #counting
  2. Count normally to establish a sequence (e.g. 1, 2, 3, 4).
  3. Intentionally post the wrong next number (e.g. post 6 when 5 is required).
    • If the author has ≥ 1.0 personal save, the bot should consume it and the count should continue.
    • Else, if the server has ≥ 1.0 server save, the bot should consume it and the count should continue.
    • Else, the bot should reset the count to 0 and announce the ruin.

Server save pool

  • Check pool: ?guildsaves
  • Donate: ?donateguild / ?dg
    • Expected: user loses 1.0 personal save, server gains 0.5 save.

Daily quests + inventory

  • View progress: ?dailyquest (and /dailyquest if you keep it enabled)
  • Inventory: ?inventory
  • Complete either quest:
    • Quiz quest: answer 5 quiz questions correctly
    • Counting quest: successfully count 5 valid numbers
  • Expected reward per quest completion: +0.2 streak-freeze and +0.5 save, capped at 2.0 freezes and 4.0 saves.

Checklist

  • I linked an issue or explained why not
  • I added/updated docs for user-facing changes
  • I added/updated tests (not present in this repo; validated via py_compile + manual Discord checks)
  • I did not commit secrets (tokens, .env, keys)
  • CI should pass for this PR

Screenshots (optional)

N/A (no UI changes outside Discord messages).

@youngcoder45 youngcoder45 requested a review from a team as a code owner April 5, 2026 10:49
@youngcoder45 youngcoder45 requested review from a team as code owners April 5, 2026 11:26
@youngcoder45 youngcoder45 merged commit 92d0a75 into main Apr 5, 2026
1 check passed
@youngcoder45 youngcoder45 changed the title remove unused cogs Major changes in fun/Counting Apr 5, 2026
rokybeast pushed a commit to rokybeast/Eigen-Bot that referenced this pull request Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant