From a0e2ec68d33008138aaafdcaccb27f7225ad4655 Mon Sep 17 00:00:00 2001 From: John Sullivan <26159938+antithalian@users.noreply.github.com> Date: Fri, 26 Sep 2025 19:34:02 -0400 Subject: [PATCH 1/2] adds some new messages to duckhunt --- src/bobbit/modules/duckhunt.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bobbit/modules/duckhunt.py b/src/bobbit/modules/duckhunt.py index b20f19e..d25b20c 100644 --- a/src/bobbit/modules/duckhunt.py +++ b/src/bobbit/modules/duckhunt.py @@ -36,13 +36,19 @@ 'WHOOSH! You missed the duck completely!', 'Your gun jammed!', 'Better luck next time.', - 'WTF!? Who are you, Dick Cheney?' + 'WTF!? Who are you, Dick Cheney?', + 'You aimed... at the sky. The duck is unimpressed.', + 'The duck called in air support. You missed in the chaos.', + 'You fired, but only confetti came out. Party time for the duck!' ) SAVE_MISSES = ( "The duck didn't want to be friends, maybe next time.", "Well this is awkward, the duck needs to think about it.", "The duck said no, maybe bribe it with some pizza? Ducks love pizza don't they?", - "Who knew ducks could be so picky?" + "Who knew ducks could be so picky?", + "You offered friendship, but the duck prefers solitude.", + "The duck is on a strict 'no new friends' diet.", + "The duck is busy updating its social media. Try again later." ) COOLDOWN_AMOUNT = 7.0 COOLDOWN_MESSAGE = f'You can try again in {COOLDOWN_AMOUNT} seconds.' From 1f64323c85830df2bd5a2221f8a4aaa37a428b8c Mon Sep 17 00:00:00 2001 From: John Sullivan <26159938+antithalian@users.noreply.github.com> Date: Mon, 13 Oct 2025 14:48:26 -0400 Subject: [PATCH 2/2] raises chance of a miss to 1 in 4 --- src/bobbit/modules/duckhunt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bobbit/modules/duckhunt.py b/src/bobbit/modules/duckhunt.py index d25b20c..8a1fc12 100644 --- a/src/bobbit/modules/duckhunt.py +++ b/src/bobbit/modules/duckhunt.py @@ -5,7 +5,7 @@ Todo: [ ] Add colors [X] Implement gun jamming / reloading -[ ] Add more messages +[X] Add more messages [ ] Make kill/save commands configurable [x] Make channels configurable [ ] Fix plural @@ -112,7 +112,7 @@ async def ducks(bot, message, command, other=None): # Check time (anti-bot) and random chance of missing elapsed = current_time - Ducks[channel] - if elapsed < 1.0 or random.random() > 0.85: + if elapsed < 1.0 or random.random() > 0.75: # Give them a timeout. Cooldowns[channel][nick] = current_time + COOLDOWN_AMOUNT return message.with_body(' '.join([