aboutsummaryrefslogtreecommitdiff
path: root/cogs/utils.py
diff options
context:
space:
mode:
authorThomas Voss <57815710+Mango0x45@users.noreply.github.com>2020-06-05 10:30:58 +0000
committerGitHub <noreply@github.com>2020-06-05 10:30:58 +0000
commit76077d68350390f4e179fad194bcb210fb20d91b (patch)
tree8c1479f56bf5ac82da9562951833b35c2bc61095 /cogs/utils.py
parent04bd31f08144e04667a94f629e21b5eaecd78edb (diff)
downloadsteve-bot-76077d68350390f4e179fad194bcb210fb20d91b.tar
steve-bot-76077d68350390f4e179fad194bcb210fb20d91b.tar.gz
steve-bot-76077d68350390f4e179fad194bcb210fb20d91b.tar.bz2
steve-bot-76077d68350390f4e179fad194bcb210fb20d91b.tar.lz
steve-bot-76077d68350390f4e179fad194bcb210fb20d91b.tar.xz
steve-bot-76077d68350390f4e179fad194bcb210fb20d91b.tar.zst
steve-bot-76077d68350390f4e179fad194bcb210fb20d91b.zip
Cleaned up findseed() code
Diffstat (limited to '')
-rw-r--r--cogs/utils.py16
1 files changed, 9 insertions, 7 deletions
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