aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com>2020-08-31 13:04:25 +0000
committerMango0x45 <thomasvoss@live.com>2020-08-31 13:04:25 +0000
commit028187ae8a8e660605f50cf15678415003302f38 (patch)
treec651ef7e7aebbaa9f90a867cb3fb2e4fc5cd7ebb /cogs
parent02fac3ab4bb168b2ea84cfda8a120457075b0aef (diff)
downloadsteve-bot-028187ae8a8e660605f50cf15678415003302f38.tar
steve-bot-028187ae8a8e660605f50cf15678415003302f38.tar.gz
steve-bot-028187ae8a8e660605f50cf15678415003302f38.tar.bz2
steve-bot-028187ae8a8e660605f50cf15678415003302f38.tar.lz
steve-bot-028187ae8a8e660605f50cf15678415003302f38.tar.xz
steve-bot-028187ae8a8e660605f50cf15678415003302f38.tar.zst
steve-bot-028187ae8a8e660605f50cf15678415003302f38.zip
Made findseed less stupid
Diffstat (limited to 'cogs')
-rwxr-xr-xcogs/utils.py7
1 files 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"
)