Bot crashes when trying to login with 2FA
giorgi-o opened this issue · 1 comments
giorgi-o commented
Riot have added the option for users to enable 2 factor authentication on their account.
When someone tries to /login
with 2FA enabled, the bot crashes with the error:
TypeError: Cannot read properties of undefined (reading 'parameters')
This could easily be fixed by asking people for their 2FA code.
In the meantime:
- To somewhat mitigate the crashing, use a process manager such as pm2 to automatically relaunch the bot when it crashes
- Users with 2FA can login with their
/cookies
using this guide