GithubHelp home page GithubHelp logo

byte-monitor-feishu-robot's Introduction

飞书监控示警机器人

环境

  • node: 10.18.0以上
  • npm: 6.13.4以上

安装

$ npm i byte-monitor-feishu-robot

快速开始

const webhook = "你的机器人码"//机器人webhook码

配置参数

const Rebot = require('../index')({ webhook });

API说明

  • Rebot.sendImg(img: string{二进流}) 发送文本信息
  • Rebot.sendRickText(title: string, texts[][], lang?:string) 发送富文本信息, texts是二维数组,每个元素代表一行数据。格式需要和飞书格式匹配
  • Rebot.send(data: object) 支持所有消息,格式需要飞书匹配。

webhook参数获取方式

  1. 随便在哪一个飞书群聊里,点击设置
  2. 点击群机器人
  3. 添加机器人
  4. 选择添加自定义机器人(通过webhook将自定义服务的消息推送至飞书)
  5. 设置机器人名称、描述,点击下一步
  6. 点击复制获取webhook地址,点击签名校验复制secret。点击完成

图片教程(多图预警

Image text Image text Image text Image text Image text

尾言

License

MIT

byte-monitor-feishu-robot's People

Contributors

ramsolz666 avatar nightttq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.