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

Add update-all command #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add update-all command #24

wants to merge 2 commits into from

Conversation

christopherm99
Copy link
Member

Fixes #13.
Google sheet is now cached and update-sheet can be run to refresh it.
Also fixes error handling for updateUserFromSheet.

TODO: Make /update-all and /update-sheet only runnable by admins.

Fixes #13.
Google sheet is now cached and update-sheet can be run to refresh it
Also fixes error handling for updateUserFromSheet
@christopherm99 christopherm99 marked this pull request as ready for review January 18, 2023 07:32
@colinpcurtis
Copy link
Member

@christopherm99 does everything work according to plan when you test it? If so I'm down to approve and merge

@christopherm99
Copy link
Member Author

@christopherm99 does everything work according to plan when you test it? If so I'm down to approve and merge

Works on my test server.

@colinpcurtis
Copy link
Member

Also @christopherm99 do you have a test sheet, if so you can message it to me and I can test it on my test server just for some more testing before we merge


users.forEach(async (doc) => {
if (doc && ids_in_guild.includes(doc.user_id)) {
updateUserFromSheet(doc.email, doc.user_id, interaction.client);
Copy link
Member

Choose a reason for hiding this comment

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

we should wrap this in try/catch or at least handle the status that's returned from updateUserFromSheet to return an error to the user.

Currently, if we get some issue in that function it will not return anything to the user.

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.

we should have a mass auto-assign role
2 participants