Repository navigation
Add truth or dare fun command - #51
Conversation
Implements the fun-command part of TheCodeVerseHub#15: /tod (and &tod truth|dare) picks a random prompt from built-in truth/dare lists. Bare &tod now replies with usage instead of failing silently. Documented in the help embed and README command table.
|
The CI didnt passed this PR kindly Check it @goldstac |
ok sir 🫡 give me a few business days |
test_award_message_xp_cooldown was the only test in its class without the get_guild_settings patch, so _load_guild_config fell through to a real Postgres query and failed in CI with 'relation guild_settings does not exist'. Pre-existing: CI has been red on main for this test.
|
@youngcoder45 does this fix it? |
Idk why but it still doesnt fix @goldstac if u can fix its alr u can do, but if u cant just wait till tommorow I will look into it and tryna fix it. |
|
Run pytest tests/ tests/test_achievements.py::test_pending_only_returns_achievements_whose_threshold_is_met PASSED [ 0%] =================================== FAILURES ===================================
E assert None is not None tests/test_rank_card.py:100: AssertionError -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html |
aiohttp 3.14 made stream_writer a required argument of ClientResponse.__init__; aioresponses <= 0.7.9 does not pass it (upstream fix unreleased: pnuckowski/aioresponses#288), so every mocked HTTP test died with TypeError. Tests now inject a stand-in writer on aiohttp >= 3.14; no-op otherwise. Pre-existing failure on main, unmasked by the cooldown-test fix.
Adds the Truth or Dare (TOD) command from #15, which asks for fun commands like TOD/RPS. RPS already existed in
src/cogs/fun.py, so this fills in TOD.What
/tod+&tod truth|dareinsrc/cogs/fun.py: picks a random prompt from built-in lists (15 truths / 15 dares), following the existing8ballhard-coded-list pattern.&todnow replies with usage instead of failing silently.src/cogs/help.py) and the README command table.Testing
ruff check .clean; cog registers with Discord (guild-scoped sync on a test server:todshowschoicewith choices[('Truth','truth'), ('Dare','dare')]).&tod: correct embeds for each, prompts randomized (14 distinct truths across 40 draws)./toddropdown,&tod dare,&tod truth, and bare&todusage reply.CI notes
Two pre-existing failures (also red on main) blocked the required checks and are fixed here, test-only:
test_award_message_xp_cooldownwas missing theget_guild_settingspatch its sibling tests use, so it queried a real database.test_avatar_fetch_cachingdied on aiohttp 3.14's new requiredClientResponse(stream_writer=...)argument (aioresponses <= 0.7.9 does not pass it; upstream fix unreleased, fix: support aiohttp 3.14 required stream_writer argument pnuckowski/aioresponses#288). A conftest shim supplies a stand-in on aiohttp >= 3.14 and is a no-op elsewhere.Full suite: 176 passed locally on aiohttp 3.14.4 / aioresponses 0.7.9 (same as CI).