Currently every execution of the /register command in the Discord bot reaches out to pretix and gets the paginated record of attendees. We should build in a caching mechanism that stores this data (probably in a dict, it doesn't need to persist). If the user isn't found, then do a full lookup via the API. If the user still isn't found, fail the command. We should probably do an initial API call on startup to prepopulate the dict.
Currently every execution of the
/register
command in the Discord bot reaches out to pretix and gets the paginated record of attendees. We should build in a caching mechanism that stores this data (probably in a dict, it doesn't need to persist). If the user isn't found, then do a full lookup via the API. If the user still isn't found, fail the command. We should probably do an initial API call on startup to prepopulate the dict.