aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar astieman <[email protected]>2019-02-15 15:06:21 -0700
committerGravatar astieman <[email protected]>2019-02-15 15:06:21 -0700
commite915fbb58e410238451b32597cf4420b305d8a43 (patch)
tree320bb514435f29291652175fc88262484ec8ed71
parentCode review changes implemented. Reverted so error handling is done by base bot. (diff)
2nd code review complete. Default roll once and warning to roll at least once implemented.
-rw-r--r--bot/seasons/evergreen/fun.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/fun.py b/bot/seasons/evergreen/fun.py
index afe70462..b531e82f 100644
--- a/bot/seasons/evergreen/fun.py
+++ b/bot/seasons/evergreen/fun.py
@@ -15,11 +15,11 @@ class Fun:
self.bot = bot
@commands.command()
- async def roll(self, ctx, num_rolls: int):
+ async def roll(self, ctx, num_rolls: int = 1):
output = ""
if num_rolls > 6:
num_rolls = 6
- elif num_rolls < 0:
+ elif num_rolls < 1:
output = ":no_entry: You must roll at least once."
for _ in range(num_rolls):
output += ":terning%d: " % random.randint(1, 6)