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

Automatically update player alias when RSN changes #238

Open
Trottero opened this issue Feb 5, 2024 · 0 comments
Open

Automatically update player alias when RSN changes #238

Trottero opened this issue Feb 5, 2024 · 0 comments

Comments

@Trottero
Copy link

Trottero commented Feb 5, 2024

Currently whenever a player changes their name on OSRS they have to manually execute /setrsn in order to update their alias for the discord bot. With some modifications to the bots database model it should be possible to automatically propagate the OSRS name change to bots configuration as well.

I propose to, upon setting an alias, instead of resolving the player and storing just the username, to additionally also store their playerId. The bot would then whenever this discord user executes a command use the playerId instead of the registered username. This of course means that the downstream API's require support for playerId to be passed when looking up stats instead of the username. Further impact analysis is required.

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

No branches or pull requests

1 participant