A universal multiplatform message bot
Project description
omniunibot
🤖 An omnipotent universal message bot library for python
- Supported platforms
- Feishu
- Slack
- Dingtalk
- Features
- Non-blocking mode for sending messages
- Send to multiple platforms with one-line code
💻 Installation
- (via pip)
pip install -U omniunibot
- (via source) clone this repo &&
pip install .
📜 Usage
-
Prepare a config file
-
Default config path:
$HOME/configs/omniunibot.json
-
Config example
{ "server": { "bind": "tcp://*:58655", "interval": 0.5 }, "client": { "bind": "tcp://localhost:58655" }, "log": { "level": "DEBUG", "dir": "/home/ubuntu/logs/omniunibot" }, "channel_groups": { "test_channels": [ { "platform": "Slack", "webhook": "https://hooks.slack.com/services/xxxx/xxxx/xxxx" }, { "platform": "Lark", "webhook": "https://open.feishu.cn/open-apis/bot/v2/hook/1a166e72-xxxx-xxxx-xxxx-3ae4f0fb51b7", "secret": "xxx" }, { "platform": "DingTalk", "webhook": "https://oapi.dingtalk.com/robot/send?access_token=xxx", "secret": "xxx" } ] } }
-
-
Start the bot server
python -m omniunibot.server
-
Use the client-side code in your code
- Example: ./example/client_example.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
omniunibot-0.1.3.tar.gz
(8.7 kB
view hashes)
Built Distribution
omniunibot-0.1.3-py3-none-any.whl
(13.1 kB
view hashes)
Close
Hashes for omniunibot-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9086b45d923700e36a2b239f3fca4b850f0be7ba529bcebc2077ad86611c4690 |
|
MD5 | 37cdd0c4ae48f1d2ca79ceaa931b2913 |
|
BLAKE2b-256 | fbe14da85e808c24591f81dc9166527ab223e44528d9d432a9b02d6994cd392f |