-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(penis): mods+ trumps all #314
base: main
Are you sure you want to change the base?
Conversation
@@ -30,7 +33,7 @@ async def penis(self, ctx, *users: discord.Member): | |||
|
|||
for user in users: | |||
random.seed(user.id) | |||
dongs[user] = "8{}D".format("=" * random.randint(0, DONG_DISTRIBUTION_CONST)) | |||
dongs[user] = "8{}D".format("=" * (random.randint(0, DONG_DISTRIBUTION_CONST), VIP_DONG_CONST)[await is_mod_or_superior(ctx.bot, user)]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
insted of generating the vip dong everytime. move it into the constant
@@ -40,6 +43,9 @@ async def penis(self, ctx, *users: discord.Member): | |||
msg += "**{}'s size:**\n{}\nlol small\n".format(user.display_name, dong) | |||
elif len(dong) <= BIG_DONG_CONST: | |||
msg += "**{}'s size:**\n{}\n".format(user.display_name, dong) | |||
elif len(dong) >= VIP_DONG_CONST: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the vip dong is moved into the constant check it with eq here insted. bit more readable
also @portalBlock do you have the pre-commit hooks installed? it should catch ci pipeline failes early befor you commit |
Should probably also mention this adjustment in the cog docs in the README. |
Added SPECIAL_USER_IDS list and logic override for users in SPECIAL_USER_IDS. |
Can we not commit to other people's branches without discussion? That should be a separate PR anyway, IMO. |
sorting_trollface_algorithm.mp4 |
This reverts commit a40fef9.
Initial Checklist
Details
Does this resolve an issue?
Resolves #313
Changes
Features / Fixes
Breaking Changes
Additional
None