Skip to content

Commit 015f049

Browse files
committed
Resolves #313.
1 parent 4817c4b commit 015f049

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

penis/penis.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
import discord
44
from redbot.core import commands
55
from redbot.core.utils.chat_formatting import pagify
6+
from redbot.core.utils.mod import is_mod_or_superior
67

78
DONG_DISTRIBUTION_CONST = 30
89
SMALL_DONG_CONST = 6
910
BIG_DONG_CONST = DONG_DISTRIBUTION_CONST - SMALL_DONG_CONST
11+
VIP_DONG_CONST = DONG_DISTRIBUTION_CONST + 5
12+
1013

1114
class Penis(commands.Cog):
1215
"""Penis related commands."""
@@ -30,7 +33,8 @@ async def penis(self, ctx, *users: discord.Member):
3033

3134
for user in users:
3235
random.seed(user.id)
33-
dongs[user] = "8{}D".format("=" * random.randint(0, DONG_DISTRIBUTION_CONST))
36+
dongs[user] = ("8{}D".format("=" * random.randint(0, DONG_DISTRIBUTION_CONST)),
37+
VIP_DONG_CONST)[await is_mod_or_superior(ctx.bot, user)]
3438

3539
random.setstate(state)
3640
dongs = sorted(dongs.items(), key=lambda x: x[1])
@@ -41,7 +45,11 @@ async def penis(self, ctx, *users: discord.Member):
4145
elif len(dong) <= BIG_DONG_CONST:
4246
msg += "**{}'s size:**\n{}\n".format(user.display_name, dong)
4347
else:
44-
msg += "**{}'s size:**\n{}\nwow, now that's a dong!\n".format(user.display_name, dong)
48+
if len(dong) == VIP_DONG_CONST:
49+
msg += "**{}'s size:**\n{}\nYou thought you could dick measure your way out of this one?\n"\
50+
.format(user.display_name, dong)
51+
else:
52+
msg += "**{}'s size:**\n{}\nwow, now that's a dong!\n".format(user.display_name, dong)
4553

4654
for page in pagify(msg):
4755
await ctx.send(page)

0 commit comments

Comments
 (0)