Telegram Bot for MyGirlGPT
June 27, 2023 ยท View on GitHub
Installation
Cloning this repo
git clone https://github.com/Synthintel0/MyGirlGPT
cd MyGirlGPT/TelegramBot
Install the package
npm install
Edit .env file
For bot
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
For mygirl
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"
Run the bot & mygirl
npm run start:bot
npm run start:mygirl
How To Run Locally in docker
Edit docker-compose.yaml
Following Env need to be set.
1. BOT_TOKEN
2. GPT_SERVER
3. TTS_SERVER
4. REDIS_SERVER
Docker Local Setup
docker-compose -f docker-compose.yml up -d --remove-orphans
Docker Image
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