git clone https://github.com/Synthintel0/MyGirlGPT
cd MyGirlGPT/TelegramBot
npm install
Get bot token at @BotFather
.
BOT_TOKEN="YOUR BOT TOKEN"
WEBSOCKET_PORT=8081
START_COMMAND_REPLY_TEXT='./src/assets/hello.txt' # file path
START_COMMAND_REPLY_VOICE='./src/assets/hello.oga' # file path
START_COMMAND_REPLY_PHOTO='./src/assets/hello.jpg' # file path
WEBSOCKET_SERVER="ADDRESS OF BOT"
GPT_SERVER="OPENAI API ADDRESS OF TEXT-GENERATION-WEBUI"
TTS_SERVER="ADDRESS FOR TTS"
# alternative. If you want to save chat message for a long time, even if mygirl restarts, it will not be lost. You can achieve this by setting the redis address
REDIS_SERVER="ADDRESS OF REDIS"
npm run start:bot
npm run start:mygirl
Following Env need to be set.
1. BOT_TOKEN
2. GPT_SERVER
3. TTS_SERVER
4. REDIS_SERVER
docker-compose -f docker-compose.yml up -d --remove-orphans
If you do not want to build docker images, you can use images on the dockerhub
- docker pull synthintel2/bot:latest
- docker pull synthintel2/mygirl:latest