From 028187ae8a8e660605f50cf15678415003302f38 Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Mon, 31 Aug 2020 15:04:25 +0200 Subject: Made findseed less stupid --- cogs/utils.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cogs/utils.py b/cogs/utils.py index c512da2..fdf35b5 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -112,11 +112,8 @@ class Utils(commands.Cog): if ctx.author.id in rigged_findseed: totalEyes = rigged_findseed[ctx.author.id] else: - totalEyes = 0 - for i in range(12): - randomness = randint(1, 10) - if randomness <= 1: - totalEyes += 1 + total_eyes = sum([1 for i in range(12) if randint(1,10) == 1]) + await ctx.send( f"{discord.utils.escape_mentions(ctx.message.author.display_name)} -> your seed is a {totalEyes} eye" ) -- cgit v1.2.3