This is a community bot of Глубокий Рефакторинг (Deep Refactoring). It can handle various things including producing sarcastic comments on every [@achikin]1 post (not enabled by default).
- In telegram open dialog with [@BotFather]2
- Follow instructions there to create bot and obtain api_key
- Install [Go 1.8+]3
- Download code to
$GOPATH/src/github.com/deeprefactoring/deeprefactoring-bot
folder:
mkdir -p github.com/deeprefactoring
cd github.com/deeprefactoring
git clone github.com/deeprefactoring/deeprefactoring-bot
- Copy
config.yml.example
toconfig.yml
- Use api_key from previous steps in
config.yaml
- Install dependencies
make deps
- Build
make build
, producesdeeprefactoring-bot
binary - Run tests
make test
[1]: Famous deep refactoring collaborator Anton Chikin in Telegram ↩
[2]: https://telegram.me/BotFather ↩
[3]: https://golang.org/dl ↩