Skip to main content

A universal multiplatform message bot

Project description

omniunibot

Upload Python Package

🤖 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

  1. 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"
          },
          "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"
                  }
              ]
          }
      }
      
  2. Start the bot server

    python -m omniunibot.server
    
  3. Use the client-side code in your code

Project details


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.0.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

omniunibot-0.1.0-py3-none-any.whl (12.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page