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

Use the same pride facts for each year #1302

Merged
merged 1 commit into from
Jul 9, 2023
Merged

Use the same pride facts for each year #1302

merged 1 commit into from
Jul 9, 2023

Conversation

ChrisLovering
Copy link
Member

The command args have been changed to accept a number between 1 & 20, rather than a date, to make it easier to select which day of the week you want. This also updates the output of the command so that the selected day, or random is included in the title.

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.

I see no issues in this implementation. Very cool, thank you Chris.

await self.send_random_fact(ctx)
else:
await ctx.send(embed=self.get_fact_embed())
elif isinstance(option, int):
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be before the previous check, otherwise .lower() will be called on the integer and cause an error.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, fixed in forcepush

The command args have been changed to accept a number between 1 & 20, rather than a date, to make it easier to select which day of the week you want.
This also updates the output of the command so that the selected day, or random is included in the title.
@Xithrius Xithrius merged commit 3dfe02f into main Jul 9, 2023
4 checks passed
@Xithrius Xithrius deleted the fix-pride-facts branch July 9, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants