Just create a .env
file, with the following variables:
OPENAI_KEY=<Your OpenAi Key>
TELEGRAM_TOKEN: <The token of your chatbot, which you can create with the Botfather>
TELEGRAM_PASSWORD=<The password a user has to enter at the first time to start talking with Chat-GPT, so unauthorized people can't use it and you can share with your friends>
- Create env variables
- Run
yarn
- Run
yarn build
- Run
yarn start or yarn start:pm2