I noticed this bot requests to avatar.lyrebird.ai/api/v0/token on lines 18 to 29.
This step is unnecessary if myvoice.lyrebird.ai/authorize is called with response_type as token. This is described in the documentation as "OAuth 2.0 Implicit Flow".
The functionality is almost identical as the user has to copy the URL either way, so I believe it would be a good way to remove one unnecessary request.
(Note that this method requires OAuth 2.0 Implicit Flow, so it does not work with #4)