From 239b03e4862bcc0c46e561207db48b9a14b2301e Mon Sep 17 00:00:00 2001 From: Kamal Curi Date: Thu, 5 Oct 2023 16:40:39 -0300 Subject: [PATCH] ADD: Respin after five shots in --roulette --- motd | 2 +- utils/commands.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/motd b/motd index 27adaaf..1e1bd4f 100644 --- a/motd +++ b/motd @@ -5,7 +5,7 @@ █ ▄ █ ▄▄▄█ ▄▄▄█ ▄ ██ █▄▄▄█ ▄▄▄█ █ █ █ █ █▄▄▄█ █▄▄▄█ █▄█ █ █ █▄▄▄ █▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█ -Neeble version: 2023.09.26 +Neeble version: 2023.10.05 Help with the development of neeble-bot in https://brejela.club/gitea/neeble-club/neeble Thank you! diff --git a/utils/commands.py b/utils/commands.py index 861c72a..585ed74 100644 --- a/utils/commands.py +++ b/utils/commands.py @@ -579,6 +579,16 @@ async def roulette(bot:object) -> str: comlock['roulette'] = False return 0 else: + if chamber == 4: + chamber = -1 + drum = [] + drum.extend(['click']*6) + spin = randrange(0, 6) + drum[spin] = 'bang' + comlock['roulette'] = False + await bot.send("Click!") + return await bot.send("FIFTH SHOT! Re-spinning the drum...") + await bot.send("Click!") comlock['roulette'] = False return 0