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

Discord Bot is not in Sync with Hasura #1672

Open
Seroxdesign opened this issue Dec 13, 2023 · 1 comment
Open

Discord Bot is not in Sync with Hasura #1672

Seroxdesign opened this issue Dec 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Seroxdesign
Copy link
Contributor

What happened?

The bot is failing to sync memberships in Metagame

What did you expect to happen?

When a role is given in discord, the bot will automatically provide membership in the MG guild

How can we reproduce the problem (as minimally as possible)?

Give a player role to member in Discord, then test if they are included in the Guild

Is there anything else we need to know?

No response

Browser and operating system used (if applicable)

No response

@Seroxdesign Seroxdesign added the bug Something isn't working label Dec 13, 2023
@alalonde
Copy link
Contributor

I spent 2+ hours looking this and don't think there's an issue with the sync process at all. With your user, the issue is that there is no discordId attached, so we can't identify you as being in our discord server with the Player role. The way we had been doing this was with the set-eth-address command handled by the Discord bot, but we ditched all that when we moved away from sourcecred.

So we would need a new way to associate players with their Discord account. The best way to do this would be somewhere in the onboarding flow, but we would need a way for existing players to do it as well. Most of the code for authenticating via Discord already exists.

The other option would be to move away from the Discord integration entirely for our "verified" guild memberships. Now that we don't reliably have discord associations with players, this way of determining guild membership is much less reliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants