Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue on second run #2

Closed
jcstein opened this issue Dec 4, 2022 · 5 comments
Closed

issue on second run #2

jcstein opened this issue Dec 4, 2022 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@jcstein
Copy link

jcstein commented Dec 4, 2022

The first time I ran on M2 Mac, binary ran fine and I was able to log in on Chromium. After I logged in it closed out. I DMd the bot, but it did not successfully reply.

I ran the process over again, with a new bot, and then ran into this error.

Screenshot 2022-12-04 at 1 22 57 AM

What would you advise? Thank you for building this useful tool!

@m1guelpf
Copy link
Owner

m1guelpf commented Dec 4, 2022

Make sure you've copied the included env.example file to .env, and added the required variables (see README).

@m1guelpf m1guelpf closed this as completed Dec 4, 2022
@jcstein
Copy link
Author

jcstein commented Dec 4, 2022

It's there and in the right directory 🤔

@jcstein
Copy link
Author

jcstein commented Dec 4, 2022

jcs @ ~/chatgpt-telegram-Darwin-arm64 % ls -al
total 15728
drwx------@  7 joshstein  staff      224 Dec  4 01:45 .
drwxr-x---+ 66 joshstein  staff     2112 Dec  4 01:46 ..
-rw-r--r--@  1 joshstein  staff       85 Dec  4 01:45 .env
-rw-r--r--   1 joshstein  staff     1069 Dec  3 23:55 LICENSE
-rw-r--r--   1 joshstein  staff      742 Dec  3 23:55 README.md
-rwxr-xr-x@  1 joshstein  staff  8035394 Dec  3 23:55 chatgpt-telegram
-rw-r--r--   1 joshstein  staff       29 Dec  3 23:55 env.example
jcs @ ~/chatgpt-telegram-Darwin-arm64 % cat .env
TELEGRAM_ID=<my-telegram-ID>
TELEGRAM_TOKEN=<my-bot-token>

and the error is still:

/Users/joshstein/chatgpt-telegram-Darwin-arm64/chatgpt-telegram ; exit;         
jcs @ ~ % /Users/joshstein/chatgpt-telegram-Darwin-arm64/chatgpt-telegram ; exit;
2022/12/04 01:48:41 Started ChatGPT
2022/12/04 01:48:41 Couldn't load .env file: open .env: no such file or directory

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

and

jcs @ ~ % sudo /Users/joshstein/chatgpt-telegram-Darwin-arm64/chatgpt-telegram
Password:
2022/12/04 01:52:23 Started ChatGPT
2022/12/04 01:52:23 Couldn't load .env file: open .env: no such file or directory

@m1guelpf m1guelpf reopened this Dec 4, 2022
@m1guelpf
Copy link
Owner

m1guelpf commented Dec 4, 2022

hmm, that's very weird, works fine for me 🤔

@m1guelpf m1guelpf added the help wanted Extra attention is needed label Dec 4, 2022
@jcstein
Copy link
Author

jcstein commented Dec 4, 2022

odd, ran it in terminal in VS code vs. iTerm or terminal and it worked

205478824-1790c922-48b1-4287-ade4-6391eac39ec3

@jcstein jcstein closed this as completed Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants