Skip to content

Conversation

@sirhcm
Copy link
Contributor

@sirhcm sirhcm commented Jan 18, 2023

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
@sirhcm sirhcm marked this pull request as ready for review January 18, 2023 07:32
@sirhcm sirhcm requested a review from colinpcurtis 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

@sirhcm
Copy link
Contributor Author

sirhcm commented Jan 20, 2023

@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

3 participants