Update README
This commit is contained in:
@@ -9,15 +9,15 @@ Currently running at https://t.me/meme_me_a_meme_bot for my channel.
|
|||||||
Prerequisites:
|
Prerequisites:
|
||||||
|
|
||||||
1. Git
|
1. Git
|
||||||
2. Go 1.24+
|
2. Docker
|
||||||
3. Docker
|
3. [bkit](https://github.com/nightnoryu/bkit)
|
||||||
4. (optional) [BrewKit](https://github.com/ispringtech/brewkit)
|
|
||||||
|
|
||||||
Firstly, clone the repository into your `$GOPATH`:
|
Firstly, clone the repository into your `$GOPATH`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
mkdir -p $GOPATH/src/github.com/nightnoryu
|
mkdir -p $GOPATH/src/github.com/nightnoryu
|
||||||
cd $GOPATH/src/github.com/nightnoryu
|
cd $GOPATH/src/github.com/nightnoryu
|
||||||
|
|
||||||
git clone git@github.com:nightnoryu/anon3anon.git
|
git clone git@github.com:nightnoryu/anon3anon.git
|
||||||
cd anon3anon
|
cd anon3anon
|
||||||
```
|
```
|
||||||
@@ -25,10 +25,7 @@ cd anon3anon
|
|||||||
Then build the project:
|
Then build the project:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
brewkit build
|
bkit build
|
||||||
|
|
||||||
# Alternatively, if you don't want to use BrewKit, you can do it the old-fashioned way:
|
|
||||||
# go build -o ./bin/anon3anon ./cmd/anon3anon
|
|
||||||
```
|
```
|
||||||
|
|
||||||
After that, copy the `docker-compose.override.example.yml` to `docker-compose.override.yml` and set the environment variables:
|
After that, copy the `docker-compose.override.example.yml` to `docker-compose.override.yml` and set the environment variables:
|
||||||
@@ -41,6 +38,9 @@ services:
|
|||||||
ANON3ANON_OWNER_CHAT_ID: 123 # ID of your chat with your bot
|
ANON3ANON_OWNER_CHAT_ID: 123 # ID of your chat with your bot
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> When launching the bot for the first time, leave `ANON3ANON_OWNER_CHAT_ID` empty and write a message to the bot. It will print the chat ID in the logs and after that you can set it up.
|
||||||
|
|
||||||
And you're set! Use `docker compose` to manage the application:
|
And you're set! Use `docker compose` to manage the application:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
Reference in New Issue
Block a user