fedora-infra / supybot-fedora

Fedora plugin for Supybot
20 stars 23 forks source link

Remove the user cache #93

Open abompard opened 2 years ago

abompard commented 2 years ago

The current code caches the user list on startup and builds a mapping of nickname to usernames. This should not be necessary with the new account system, it's possible to get a user from and IRC nickname with the API call to: https://fasjson.fedoraproject.org/v1/search/users/?ircnick=nickname

Getting users should also be simple, just a matter of calling https://fasjson.fedoraproject.org/v1/users/username/ and making sure it's not a 404.

The cache causes the following problems: