From 76077d68350390f4e179fad194bcb210fb20d91b Mon Sep 17 00:00:00 2001 From: Thomas Voss <57815710+Mango0x45@users.noreply.github.com> Date: Fri, 5 Jun 2020 12:30:58 +0200 Subject: Cleaned up findseed() code --- cogs/utils.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'cogs/utils.py') diff --git a/cogs/utils.py b/cogs/utils.py index 7f2b595..f083cad 100644 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -53,16 +53,18 @@ class Utils(commands.Cog): return # Don't ask - if ctx.author.id == 280428276810383370: # Thomas's User ID - totalEyes = 12 - elif ctx.author.id == 199070670221475842: # Kai's User ID - totalEyes = -1 - elif ctx.author.id == 615658069132836865: # no one of consequence - totalEyes = -12 + rigged_findseed = { + 280428276810383370: 12, # Thomas's User ID + 199070670221475842: -1, # Kai's User ID + 615658069132836865: -12 # They didn't use a real name. Sad! + } + + 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) + randomness = randint(1, 10) if randomness == 1: totalEyes += 1 -- cgit v1.2.3