efb-online-middleware-0.0.5
توضیحات
Online middleware for EH Forwarder Bot, notice when wechat is offline.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | efb-online-middleware-0.0.5 |
| نام | efb-online-middleware |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | WolfSilver |
| ایمیل نویسنده | aexou@outlook.com |
| آدرس صفحه اصلی | https://github.com/efb-middleware/online |
| آدرس اینترنتی | https://pypi.org/project/efb-online-middleware/ |
| مجوز | AGPLv3+ |
[](https://pypi.org/project/efb-online-middleware/)
[](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
```
نیازمندی
| مقدار | نام |
|---|---|
| - | ehforwarderbot |
| - | PyYaml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl efb-online-middleware-0.0.5:
pip install efb-online-middleware-0.0.5.whl
نصب پکیج tar.gz efb-online-middleware-0.0.5:
pip install efb-online-middleware-0.0.5.tar.gz