9e38b000ec93caba49bfe2dd163f90976080c2eb
1. Move all pre-defined messages to constants in a separate file 2. Remove pkg/errors dependency
anon3anon
Telegram bot for anonymous messages 🎭✨
Building for local development
Prerequisites:
- Linux
- Git
- Docker
- (optional) BrewKit
Firstly, clone the repository into your $GOPATH:
mkdir -p $GOPATH/src/github.com/nightnoryu
cd $GOPATH/src/github.com/nightnoryu
git clone git@github.com:nightnoryu/anon3anon.git
cd anon3anon
Then build the project:
brewkit 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:
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
And you're set! Use docker compose to manage the application:
# Start
docker compose up -d
# Restart to apply changes
docker restart anon3anon
# Stop
docker compose down
Languages
Go
63.2%
Jsonnet
35.6%
Dockerfile
1.2%