Skip to content

Tech Leaders Pride #614

Merged
ChrisLovering merged 15 commits into
python-discord:mainfrom
Shivansh-007:feature/pride-leaders
Jun 4, 2021
Merged

Tech Leaders Pride #614
ChrisLovering merged 15 commits into
python-discord:mainfrom
Shivansh-007:feature/pride-leaders

Conversation

@Shivansh-007
Copy link
Copy Markdown
Contributor

Relevant Issues

Closes #208
Continuation #485

Description

Adds a command .prideleader which will give a pretty embed containing information given in a resources/pride/prideleader.json. It also links to the wikipedia command for that particular Pride Leader so that the user can get some more information on that. In case of Pride Leader not contained in the resources, it will add it to the hackbot.log with level TRACE and give link to the wikipedia command for that Pride Leader.

Reasoning

Approved by a staff member.

Screenshots

Tim Cook

Screenshot from 2021-03-08 14-03-12

Error Embed

Screenshot from 2021-03-08 14-03-02

Did you:

  • Lint your code (pipenv run lint)?
  • Set the PR to allow edits from contributors?

@Xithrius Xithrius added area: backend Related to internal functionality and utilities season: pride status: needs review Author is waiting for someone to review and approve type: feature Relating to the functionality of the application. labels Mar 10, 2021
Copy link
Copy Markdown
Contributor

@Kronifer Kronifer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far, will review once at a computer and can test

Comment thread bot/exts/pride/pride_leader.py Outdated
Comment thread bot/exts/pride/pride_leader.py Outdated
Copy link
Copy Markdown
Contributor

@RohanJnr RohanJnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the minor changes mentioned above, everything else looks good and tested!

Base automatically changed from master to main March 13, 2021 20:09
Copy link
Copy Markdown
Contributor

@anand2312 anand2312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few minor changes.

Comment thread bot/exts/pride/pride_leader.py Outdated
Comment thread bot/exts/pride/pride_leader.py Outdated
The entire `name_verifier` function can be replaced with just a dict.get
@Shivansh-007 Shivansh-007 requested a review from anand2312 April 30, 2021 02:05
Copy link
Copy Markdown
Contributor

@anand2312 anand2312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

Comment thread bot/exts/pride/pride_leader.py Outdated
Comment thread bot/exts/pride/pride_leader.py Outdated
Comment thread bot/exts/pride/pride_leader.py Outdated
Comment thread bot/exts/pride/pride_leader.py Outdated
Comment thread bot/exts/pride/pride_leader.py Outdated
Shivansh-007 and others added 3 commits May 18, 2021 10:56
* Use read_text rather a with open
* Remove Redundant list comprehension
Co-authored-by: ToxicKidz <78174417+ToxicKidz@users.noreply.github.com>
@ToxicKidz ToxicKidz self-requested a review May 18, 2021 13:03
Comment thread bot/exts/pride/pride_leader.py Outdated
Copy link
Copy Markdown
Contributor

@kosayoda kosayoda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command does not work correctly when given a pride leader. Example: .pl Alan Joyce.
image

Additionally, I don't think the error embed should the wiki info for an unavailable leader. Perhaps a message saying to contribute to the list instead?

image

Neat work otherwise.

@Shivansh-007 Shivansh-007 requested review from Xithrius and kosayoda June 3, 2021 14:27
Comment thread bot/exts/pride/pride_leader.py
Comment thread bot/exts/pride/pride_leader.py Outdated
@Shivansh-007 Shivansh-007 requested a review from kosayoda June 4, 2021 02:03
@ChrisLovering ChrisLovering merged commit a40d5ad into python-discord:main Jun 4, 2021
@Shivansh-007 Shivansh-007 deleted the feature/pride-leaders branch June 5, 2021 04:04
@Xithrius Xithrius removed the status: needs review Author is waiting for someone to review and approve label Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: backend Related to internal functionality and utilities type: feature Relating to the functionality of the application.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tech Leaders Pride

8 participants