-
Notifications
You must be signed in to change notification settings - Fork 14
feat(penis): mods+ trumps all #314
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
Open
portalBlock
wants to merge
6
commits into
main
Choose a base branch
from
feat/313_big_mod_energy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7
−1
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
015f049
Resolves #313.
portalBlock f3e2c03
Resolves #313 (for real)
portalBlock 77d0f95
Resolves #313 (for real)
portalBlock 75f3110
Appease the linter
portalBlock a40fef9
PNS-426: Implement SPECIAL_USER_IDS handling.
Alfredooe e3ac19e
Revert "PNS-426: Implement SPECIAL_USER_IDS handling."
rippleFCL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,13 @@ | |
import discord | ||
from redbot.core import commands | ||
from redbot.core.utils.chat_formatting import pagify | ||
from redbot.core.utils.mod import is_mod_or_superior | ||
|
||
DONG_DISTRIBUTION_CONST = 30 | ||
SMALL_DONG_CONST = 6 | ||
BIG_DONG_CONST = DONG_DISTRIBUTION_CONST - SMALL_DONG_CONST | ||
VIP_DONG_CONST = DONG_DISTRIBUTION_CONST + 5 | ||
|
||
|
||
class Penis(commands.Cog): | ||
"""Penis related commands.""" | ||
|
@@ -30,7 +33,7 @@ | |
|
||
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)]) | ||
|
||
random.setstate(state) | ||
dongs = sorted(dongs.items(), key=lambda x: x[1]) | ||
|
@@ -40,6 +43,9 @@ | |
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 commentThe 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 |
||
msg += "**{}'s size:**\n{}\nYou thought you could dick measure your way out of this one?\n"\ | ||
.format(user.display_name, dong) | ||
else: | ||
msg += "**{}'s size:**\n{}\nwow, now that's a dong!\n".format(user.display_name, dong) | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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