protohaven / protohaven_api

API system for protohaven
0 stars 0 forks source link

Discord membership sync bot #3

Open smartin015 opened 9 months ago

smartin015 commented 9 months ago

We can now auto assign the "member" role to discord users. We should attempt to map the existing set of discord users to their neon accounts, then automatically manage their roles based on whether they are active/paying members.

We can also automatically set the nickname of a discord user via the bot - referencing neon - to eliminate manual effort to keep them in sync.

smartin015 commented 6 months ago

Rough plan:

smartin015 commented 2 weeks ago

The new plan is pretty close to what I thought up in March, modulo a few details.

See commands/roles.py for two commands: update_role_intents and enforce_discord_nicknames. The former handles role addition and removal, while the latter handles setting of server display names (i.e. nicknames).

Remaining steps are rollout-y and happening slowly so as not to rock the boat too much: