Danyc0 / Society-voting-bot

A Discord bot for doing society elections
Apache License 2.0
2 stars 4 forks source link

Allow candidates names to be changed. #12

Closed JTWWilson closed 3 years ago

JTWWilson commented 3 years ago

Both for general satisfaction and from an inclusivity point of view, we should allow candidates' names to be changed. This could either be through a committee action or the candidates themselves

Danyc0 commented 3 years ago

The problem is that on an on-demand basis, the names are scraped from the guild website. I really didn't want any caching of members, because then there will be inevitable issues with people registering at the last minute.

I'll have a think, but it'll probably involve having a lookup/replace in get_members() into a dict (which would need to be cached to a file) of {:}. Then some command in order to set the preferred name. From an inclusivity point of view, being done by the candidate would be best, but from a moderation point of view a committee member doing it would be best. Therefore it might be that two commands are needed, one for a candidate to change it, and one for a committee member to undo the change (in case it's inappropriate).