51 lines
1.1 KiB
Markdown
51 lines
1.1 KiB
Markdown
# :performing_arts: anon3anon
|
|
|
|
Telegram bot for anonymous messages.
|
|
|
|
## Local development
|
|
|
|
Prerequisites:
|
|
|
|
1. Git
|
|
2. Docker
|
|
3. [brewkit](https://github.com/ispringtech/brewkit)
|
|
|
|
Clone the repository:
|
|
|
|
```shell
|
|
git clone ssh://git@gitea.nightnoryu.com:2222/nightnoryu/anon3anon.git
|
|
cd anon3anon
|
|
```
|
|
|
|
Then build the project:
|
|
|
|
```shell
|
|
brewkit build
|
|
```
|
|
|
|
After that, copy the `docker-compose.override.example.yml` to `docker-compose.override.yml` and set the environment variables:
|
|
|
|
```yaml
|
|
services:
|
|
anon3anon:
|
|
environment:
|
|
ANON3ANON_TELEGRAM_BOT_TOKEN: 123:ABC # The token for your bot, obtained from t.me/BotFather
|
|
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:
|
|
|
|
```shell
|
|
# Start
|
|
docker compose up -d
|
|
|
|
# Restart to apply changes
|
|
docker restart anon3anon
|
|
|
|
# Stop
|
|
docker compose down
|
|
```
|