mirror of
https://github.com/uditkarode/bing-chat-telegram.git
synced 2025-02-22 09:12:21 +00:00
added production and build instructions
This commit is contained in:
parent
5b4666edc3
commit
4de1f643eb
12
README.md
12
README.md
@ -3,16 +3,22 @@
|
|||||||
A Telegram bot that lets you interact with the Bing AI from chats that you allow in the config.
|
A Telegram bot that lets you interact with the Bing AI from chats that you allow in the config.
|
||||||
|
|
||||||
**> To start using this project,**
|
**> To start using this project,**
|
||||||
|
- Git clone and cd into cloned dir
|
||||||
- Run `yarn install` to install the dependencies.
|
- Run `yarn install` to install the dependencies.
|
||||||
- Create a `.env` file or set environment variables according to the reference file `.env.example`
|
- Create a `.env` file or set environment variables according to the reference file `.env.example`
|
||||||
- Run `yarn dev` or `yarn build && yarn start` to start the bot.
|
- Run `yarn dev` or `yarn build && yarn start` to start the bot.
|
||||||
|
|
||||||
**> To start using this project using Docker,**
|
**> To start using this project using Docker,**
|
||||||
|
- Git clone and cd into cloned dir
|
||||||
- Run `docker compose -f .build/docker-compose.yml build` to build the container
|
- Run `docker compose -f .build/docker-compose.yml build` to build the container.
|
||||||
- Create a `.env` file or set environment variables according to the reference file `.env.example`
|
- Create a `.env` file or set environment variables according to the reference file `.env.example`
|
||||||
- Run `docker compose up -d` to start the bot.
|
- Run `docker compose up -d` to start the bot.
|
||||||
|
- Run `docker compose -f .build/docker-compose.yml push` to push container to registry.
|
||||||
|
|
||||||
|
**> To start using this project using Docker in prod**
|
||||||
|
- Create `docker-compose.yml` with the content from `docker-compose.yml` in repo.
|
||||||
|
- Create `.env` with the required variables. (see .env.example in repo)
|
||||||
|
- Run `docker compose up -d` to start the bot.
|
||||||
|
|
||||||
**> To enable Telegram command autocompletion,**
|
**> To enable Telegram command autocompletion,**
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user