Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/andruten/healthcheckbot

A python telegram bot for health checking services
https://github.com/andruten/healthcheckbot

bot healthcheck python telegram-bot

Last synced: 8 days ago
JSON representation

A python telegram bot for health checking services

Awesome Lists containing this project

README

        

# Health check bot

Welcome to Health check bot 👋!! I'm a python bot for telegram which intends to implement a (very basic) healthcheck
system. I can make HTTP requests or open Sockets.

## Available commands

### list
List all polling services
```
/list
```

### add
Add new service to the polling list
```
/add
```
- `service_type` must be "socket" or "request"
- `name` is the name that will be stored
- `domain` is the domain that will be reached by the service
- `port` is the port number

### remove
Unsubscribe a service from the polling list by name
```
/remove
```

## Environment variables

| Key | example value | Description |
|---------------------|---------------|------------------------------------------------------------------------------|
| BOT_TOKEN | 1234:abcde | Bot token obtained by Bot father |
| ALLOW_LIST_CHAT_IDS | 1234,5678 | A comma-separated list for allow list groups which can interact with the bot |
| POLLING_INTERVAL | 60 | The polling interval |
| LOG_LEVEL | INFO | Log level of the application |