aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
authorThomas Voss <57815710+Mango0x45@users.noreply.github.com>2020-06-03 22:33:45 +0000
committerGitHub <noreply@github.com>2020-06-03 22:33:45 +0000
commitb6854b629e0f2e354816886b3dd92f6158163b53 (patch)
treed9e9675a80c07db69f485c2f1b3a54549c3830a4 /cogs
parente8346488d81e4188188d10607dcb719f79563d0b (diff)
downloadsteve-bot-b6854b629e0f2e354816886b3dd92f6158163b53.tar
steve-bot-b6854b629e0f2e354816886b3dd92f6158163b53.tar.gz
steve-bot-b6854b629e0f2e354816886b3dd92f6158163b53.tar.bz2
steve-bot-b6854b629e0f2e354816886b3dd92f6158163b53.tar.lz
steve-bot-b6854b629e0f2e354816886b3dd92f6158163b53.tar.xz
steve-bot-b6854b629e0f2e354816886b3dd92f6158163b53.tar.zst
steve-bot-b6854b629e0f2e354816886b3dd92f6158163b53.zip
Small optimization
Diffstat (limited to 'cogs')
-rw-r--r--cogs/utils.py33
1 files changed, 12 insertions, 21 deletions
diff --git a/cogs/utils.py b/cogs/utils.py
index 98efc19..290850f 100644
--- a/cogs/utils.py
+++ b/cogs/utils.py
@@ -51,29 +51,20 @@ class Utils(commands.Cog):
if ctx.message.channel.id != 684787316489060422:
await ctx.message.delete()
return
- totalEyes = 0
- for i in range(12):
- randomness = randint(1,10)
- if randomness == 1:
- totalEyes += randomness
- else:
- continue
-
- # haha sneaky sneaky
- Thomas = self.bot.get_user(280428276810383370)
- Kai = self.bot.get_user(199070670221475842)
- if ctx.message.author == Thomas:
+
+ # Don't ask
+ if ctx.author.id == 280428276810383370: # Thomas's User ID
totalEyes = 12
- elif ctx.message.author == Kai:
+ elif ctx.author.id == 199070670221475842: # Kai's User ID
totalEyes = -1
-
-
- # EDIT: It DID work!! Troll just forgot to reload utils Kappa
- # idfk why this doesnt work but it doesnt ¯\_(ツ)_/¯
- # haha kai time
- # Kai = self.bot.get_user(199070670221475842)
- # if ctx.message.author == Kai:
- # totalEyes = "-1"
+ else:
+ totalEyes = 0
+ for i in range(12):
+ randomness = randint(1,10)
+ if randomness == 1:
+ totalEyes += randomness
+ else:
+ continue
await ctx.send(f"{ctx.message.author.display_name} -> your seed is a {totalEyes} eye")