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

Matchday command #22

Merged
merged 18 commits into from
May 24, 2020
Merged

Matchday command #22

merged 18 commits into from
May 24, 2020

Conversation

maxUser
Copy link
Contributor

@maxUser maxUser commented Mar 15, 2020

Description

  • Added a Discord bot command which displays the results for all matches on the specified matchday in the specified season.

image

Resolves #19

Special Notes

  • Still do not have testing for retrieving matchday data - this is a priority!

Expected Version Bump

  • Major
  • Minor
  • Patch
  • None

Checklist:

  • I have run black .
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@maxUser maxUser added the enhancement New feature or request label Mar 15, 2020
@maxUser maxUser added this to the Alligator milestone Mar 15, 2020
@maxUser maxUser requested a review from nikola-rados March 15, 2020 14:09
Copy link
Contributor

@nikola-rados nikola-rados left a comment

Choose a reason for hiding this comment

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

This looks good @maxUser! We should probably remove some files but otherwise the code looks great!

.gitignore Outdated
@@ -1,4 +1,5 @@
venv
__pycache__
cogs/__pycache__
the_mines/.DS_Store
the_mines/data/.DS_Store
Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be getting added. Is it part of the .gitignore?

cogs/stats_commands.py Outdated Show resolved Hide resolved
cogs/stats_commands.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
the_mines/get_data.py Show resolved Hide resolved
underScore.egg-info/SOURCES.txt Show resolved Hide resolved
underScore.egg-info/dependency_links.txt Show resolved Hide resolved
underScore.egg-info/top_level.txt Show resolved Hide resolved
utils/messages.py Outdated Show resolved Hide resolved
Comment on lines +32 to +33
name=value[0][0] + "-" + value[1][0],
value=value[0][1] + "-" + value[1][1],
Copy link
Contributor

Choose a reason for hiding this comment

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

There may be a cleaner way of joining the items in the tuple rather than indexing. Indexing can be difficult to understand if you don't know the exact structure of the tuple being passed in. Maybe we could look into using an iterator with .join()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great idea. Can you help me implement this?

@nikola-rados
Copy link
Contributor

@maxUser LGTM, merge away.

@nikola-rados nikola-rados merged commit 43b224b into master May 24, 2020
@nikola-rados nikola-rados deleted the matchday-command branch May 26, 2020 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command for matchday data
2 participants