/link prompts a user to log-in to AniList and authenticate (token is encrypted before storing in MongoDB) their Discord profile, allowing them to perform mutations straight from a Discord server (/unlink clears their token from memory)
/update allows users to increment/decrement episodes, or change the rating of a given anime
/add allows users to add a new anime to their list
Linking an AniList account also automatically updates/creates a new alias for the user - to provide the user with options, alias will remain fully functional and the main basis for commands like /url, /wp, /progress, etc.
Note
This is a large update, and particularly sensitive security-wise. A lot of time went into guaranteeing the safety of the user's details, and ensuring that only the user could alter their AniList data. Nevertheless, other bugs (hopefully mostly UI-related) will be likely as there's only so much testing I can do with 1-2 dummy users. This PR will help see how the update scales.
Mutations
/link
prompts a user to log-in to AniList and authenticate (token is encrypted before storing in MongoDB) their Discord profile, allowing them to perform mutations straight from a Discord server (/unlink
clears their token from memory)/update
allows users to increment/decrement episodes, or change the rating of a given anime/add
allows users to add a new anime to their list/url
,/wp
,/progress
, etc.Note
This is a large update, and particularly sensitive security-wise. A lot of time went into guaranteeing the safety of the user's details, and ensuring that only the user could alter their AniList data. Nevertheless, other bugs (hopefully mostly UI-related) will be likely as there's only so much testing I can do with 1-2 dummy users. This PR will help see how the update scales.