Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve avatar lookup for IRC->Discord messages via webhook.
We will now lookup avatars for IRC message senders by first looking for a matching Discord username, if we don't find one with a matching username, we will then check the user's nickname. I expect this is usually preferred, but if not we can investigate an option or alternate behavior. We will also now fire off a task to query Discord for matching users rather than only relying on the bot's local user cache. This means that if someone speaks in IRC who has not yet spoken in Discord, we should automatically pull down their avatar by the second or third message (depending on network conditions, API, guild size, other factors). This should mean that users no longer need to speak in Discord after the bot is restarted; we should figure out their name within a few messages. It is also much cheaper from a memory standpoint than always aggressively caching the entire guild (especially on very large guilds).
- Loading branch information