From f99ccca22ae7ced2a355052de3fdc9d070401df1 Mon Sep 17 00:00:00 2001 From: Kamal Curi Date: Tue, 11 Apr 2023 16:15:56 -0300 Subject: [PATCH] FIX: randrange doesn't actually consider the end of the range as a valid number --- motd | 2 +- utils/commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/motd b/motd index 9ba7fce..d3eda71 100644 --- a/motd +++ b/motd @@ -5,7 +5,7 @@ █ ▄ █ ▄▄▄█ ▄▄▄█ ▄ ██ █▄▄▄█ ▄▄▄█ █ █ █ █ █▄▄▄█ █▄▄▄█ █▄█ █ █ █▄▄▄ █▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█ -Neeble version: 2023.04.04 +Neeble version: 2023.04.04a Bot source can be found by users with the @Neeble Dev role. Thank you! diff --git a/utils/commands.py b/utils/commands.py index 1c6e388..19ee820 100644 --- a/utils/commands.py +++ b/utils/commands.py @@ -445,4 +445,4 @@ async def dice_roll(bot:object, size:int=6) -> str: """ syntax = '--dice_roll ' - return await bot.send(f":game_die: : `{str(randrange(1, size))}`") \ No newline at end of file + return await bot.send(f":game_die: : `{str(randrange(1, size + 1))}`") \ No newline at end of file