Zero6992 / chatGPT-discord-bot

Integrate ChatGPT into your own discord bot
GNU General Public License v2.0
2.6k stars 699 forks source link

add auto login for Bard and Bing #397

Closed YungPingXu closed 1 year ago

YungPingXu commented 1 year ago

The Google Bard authentication and Microsoft Bing authentication need to manually config and paste the cookie into json file, so I use selenium package to add auto login for Google Bard authentication and Microsoft Bing authentication. Hope this feature will be useful. The difference between my feature and the original project is that you just need to type your account, password and the chrome browser version into .env. By doing this, my implementation will automatically get the cookie we need. Note that your chrome browser need to update to latest version (i.e. 113) or you may get an error.

Zero6992 commented 1 year ago

Hi, nice wok!

I left some comment, and I noticed that if your account has 2FA enabled, it seems to result in login failure. Maybe you can consider making this feature in optional setting, and keep the option to manually input cookies to .env file

YungPingXu commented 1 year ago

Hi, nice wok!

I left some comment, and I noticed that if your account has 2FA enabled, it seems to result in login failure. Maybe you can consider making this feature in optional setting, and keep the option to manually input cookies to .env file

I have put the auto login feature into optional setting.

Zero6992 commented 1 year ago

thanks