An open API service indexing awesome lists of open source software.

https://github.com/vansosnin/billy-tc-bot

🤖 Telegram bot for TeamCity builds monitoring
https://github.com/vansosnin/billy-tc-bot

bot monitoring-builds teamcity telegram-bot

Last synced: 8 months ago
JSON representation

🤖 Telegram bot for TeamCity builds monitoring

Awesome Lists containing this project

README

          

# TeamCity Telegram Bot

[![Build Status](https://travis-ci.org/vansosnin/billy-tc-bot.svg?branch=master)](https://travis-ci.org/vansosnin/billy-tc-bot)

[Telegram](https://telegram.org/) bot for monitoring builds in [TeamCity](https://www.jetbrains.com/teamcity/). To setup you have to place a file `config.json` similar with [config-example.json](https://github.com/vansosnin/billy-tc-bot/blob/master/config-example.json) into root directory.

Some subtle settings:
- `check-interval-ms` - interval to request TeamCity API
- `auth` - username/password for TeamCity
- `admin-chat-id` - see below
- `git-commit-url-base` - base url to generate commit link (with trailing slash)

## Administrator's capabilities

You have to setup `admin-chat-id` to use this.

- Bot sends a message about restart
- You can make a broadcast for all users using command `/broadcast`

## Commands to setup a bot using BotFather

##### en
```
help - Get info about commands
branch - Setup active branch
status - Check bot status
tests - Check builds
lastchanges - Get last N changes on builds in branch (authors and commits)
watchon - Watch on branch's builds (reports if something changes)
watchoff - Stop watching on branch's builds
receivereports - Setup timetable on receiving reports about builds in default branch (no arguments — monday to friday at 9 AM)
removereports - Turn off receiving regular reports
```

##### rus
```
help - Информация по командам
branch - Задать ветку
status - Проверить статус
tests - Проверить билды
lastchanges - Получать информацию об N последних изменений в ветке (авторы и коммиты)
watchon - Наблюдать за билдами ветки (уведомляет, если что-то изменилось)
watchoff - Перестать наблюдать за билдами ветки
receivereports - Задать расписание отчетов билдов по дефолтной ветке (без аргументов — по будням в 9 утра)
removereports - Отключить получение регулярных отчетов
```

## Requirements
- NodeJS: 8+