Skip to content

Attendance Command #142

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

Merged
merged 11 commits into from
Oct 5, 2024

Conversation

oms125
Copy link
Collaborator

@oms125 oms125 commented Sep 29, 2024

Added /attendance command that will show total signins and signins by type for the user.

@oms125 oms125 requested a review from a team as a code owner September 29, 2024 21:36
@oms125 oms125 linked an issue Sep 29, 2024 that may be closed by this pull request

for _, signinType := range signinTypes {
var entSigninType signin.Type
switch signinType {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@c0untingNumbers I'll pass it for this PR but just as a heads up, I noticed in a few other places we're hard coding the signin types as a string and putting it through a giant switch statement. I'll make an issue about it but could you look into refactoring this?

Ideally, we'd declare both in one place with a simple helper function which can then be called everywhere else (or something along these lines). Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, good idea. Will put that up for an issue.

Copy link
Collaborator

@bootsie123 bootsie123 left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you for the contribution! 🎉

@c0unts c0unts merged commit b327dff into main Oct 5, 2024
4 checks passed
c0unts pushed a commit that referenced this pull request Nov 1, 2024
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.

New slash command to check how many sign-ins you have
3 participants