Open permblackshark opened 1 year ago
Hi, @permblackshark I pushed a new code. I removed reading old configs. If you tried the old version and after that when you tried it. I could not work. I removed the reading old config.
COOKIE_FILE=cookies.json
into .env fileThat's it 🎉 I hope It will be work
Hi, @permblackshark I pushed a new code. I removed reading old configs. If you tried the old version and after that when you tried it. I could not work. I removed the reading old config.
- Clone or pull the latest commits
- Login to ChatGPT with your account in Chrome Browser
- Export cookies with Chrome Extension
- Put cookies.json file into project root directory
- Add
COOKIE_FILE=cookies.json
into .env fileThat's it 🎉 I hope It will be work
I'm using your project, but I still get an error in the bot Error: Couldn't get access token: failed to decode response: invalid character '<' looking for beginning of value
@BrellBrell Hi I think it's cloudflare guard. app can't get token because get 403 code from cloudflare. Probably need workaround with JA3 fingeprint like https://github.com/Danny-Dasilva/CycleTLS
func (cfg *Config) LoadSessionFromCookie() error {
filePath := cfg.v.GetString("COOKIE_FILE")
cfg - is chatgpt.json
so, i mod main.go, config.go and env_config.go