Metadata-Version: 2.1
Name: efb-online-middleware
Version: 0.0.2
Summary: Online middleware for EH Forwarder Bot, notice when wechat is offline.
Home-page: https://github.com/efb-middleware/online
Author: WolfSilver
Author-email: aexou@outlook.com
License: AGPLv3+
Keywords: ehforwarderbot,EH Forwarder Bot,EH Forwarder Bot Middleware,WeChat,Online,Offline
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: ehforwarderbot
Requires-Dist: PyYaml


[![PyPI release](https://img.shields.io/pypi/v/efb-online-middleware.svg)](https://pypi.org/project/efb-online-middleware/)

### Main Function

- Check if WeChat is still online

### Usage  

Create file `config.yaml` under document `~/.ehforwarderbot/profiles/default/online.OnlineMiddleware`  

```yaml
echo_mp: 'XXXXXX'       # mp name
ping: 'PING'            # keyword
pong: 'PONG'            # response with keyword
interval: 1800          # interval(s)
```

> MP needs to open auto response function, send `PING`, response with `PONG`

### Install

```bash
pip3 install efb-online-middleware
```  

`~/.ehforwarderbot/profiles/default/config.yaml` file add configuration to enable middleware

```yaml
master_channel: blueset.telegram
slave_channels:
- blueset.wechat
middlewares:
- online.OnlineMiddleware
```


