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

Cheat.sh Command - Python cheatsheet #572

Merged
merged 14 commits into from
Feb 5, 2021
Merged

Cheat.sh Command - Python cheatsheet #572

merged 14 commits into from
Feb 5, 2021

Conversation

Shivansh-007
Copy link
Contributor

Relevant Issues

Closes #570

Description

I had to overwrite the error result of the cht.sh as it was not according to our needs and the response always returned a 200 status code. And i also have defaulted the language to python so there is no way to use any other language rn.

Screenshots

Output too long

Screenshot from 2021-01-31 15-11-32

Error Embed

Screenshot from 2021-01-31 15-11-43

Normal Result

Screenshot from 2021-01-31 15-12-51

Additional Details

I thought i had commit my first commit, but i didn't, and hence the first commits' name is Fix Import Order.

Did you:

  • Join the Python Discord Community?
  • If dependencies have been added or updated, run pipenv lock?
  • Lint your code (pipenv run lint)?
  • Set the PR to allow edits from contributors?

Copy link
Member

@ChrisLovering ChrisLovering left a comment

Choose a reason for hiding this comment

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

Only two things I think we should do for this PR. The could do's are optional if you feel like implementing them :)

bot/exts/evergreen/cheatsheet.py Show resolved Hide resolved
bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
…emove headers as chubin/cheat.sh#280 got merged ; improve error embed docstrings
Copy link
Member

@ChrisLovering ChrisLovering left a comment

Choose a reason for hiding this comment

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

Just 1 optional change. I've tested these changes locally and they work nicely! This should definitely help us out in the help channels, good job! :)

bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
Copy link
Member

@ChrisLovering ChrisLovering left a comment

Choose a reason for hiding this comment

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

I meant to approve this, as the only change outstanding is optional.

@Xithrius Xithrius added area: backend Related to internal functionality and utilities level: 1 - intermediate type: feature Relating to the functionality of the application. status: needs review Author is waiting for someone to review and approve labels Feb 1, 2021
bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
@Shivansh-007
Copy link
Contributor Author

@Xithrius @ChrisLovering Requested changes mentioned!

@Shivansh-007 Shivansh-007 requested a review from Xithrius February 2, 2021 00:38
bot/constants.py Outdated Show resolved Hide resolved
bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
Copy link
Member

@Xithrius Xithrius 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 to me, except this one thing.

bot/exts/evergreen/cheatsheet.py Show resolved Hide resolved
@HassanAbouelela HassanAbouelela removed their request for review February 3, 2021 20:12
Copy link
Contributor

@eklipse18 eklipse18 left a comment

Choose a reason for hiding this comment

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

It looks nice overall, just a few minor changes could be done.

bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
bot/exts/evergreen/cheatsheet.py Outdated Show resolved Hide resolved
@Shivansh-007 Shivansh-007 requested a review from Xithrius February 5, 2021 04:04
@Xithrius Xithrius merged commit c6353a8 into python-discord:master Feb 5, 2021
@Shivansh-007 Shivansh-007 deleted the feature/cheat.sh branch February 7, 2021 11:12
@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.

Python Cheat Sheet Command
5 participants