Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

portalBlock
Copy link
Member

Initial Checklist

  • Has @tigattack been added as a reviewer?
  • If applicable, have the relevant project(s), milestone(s), and label(s) been applied?
  • If applicable, have you added details of the cog to the readme as per README.md?

Details

Does this resolve an issue?
Resolves #313

Changes

Features / Fixes

  • Implements VIP treatment as requested

Breaking Changes

  • None

Additional

None

@portalBlock portalBlock added enhancement Cog enhancements. cog-penis Issues related to the penis cog. labels Mar 3, 2025
@portalBlock portalBlock requested a review from tigattack March 3, 2025 03:21
@rippleFCL rippleFCL self-requested a review March 3, 2025 12:47
@@ -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)])
Copy link
Contributor

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:
Copy link
Contributor

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

@rippleFCL
Copy link
Contributor

also @portalBlock do you have the pre-commit hooks installed? it should catch ci pipeline failes early befor you commit

@tigattack
Copy link
Member

Should probably also mention this adjustment in the cog docs in the README.

@tigattack tigattack changed the title Implement #313 feat(penis): mods+ trumps all Mar 3, 2025
@Alfredooe
Copy link

Alfredooe commented Mar 3, 2025

Added SPECIAL_USER_IDS list and logic override for users in SPECIAL_USER_IDS.

@Alfredooe Alfredooe requested a review from rippleFCL March 3, 2025 19:41
@tigattack
Copy link
Member

Can we not commit to other people's branches without discussion? That should be a separate PR anyway, IMO.

@Alfredooe
Copy link

sorting_trollface_algorithm.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cog-penis Issues related to the penis cog. enhancement Cog enhancements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] Penis cog should consider Moderator roles as max length.
4 participants