1.0.18 • Published 3 years ago

byte-monitor-feishu-robot v1.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

飞书监控示警机器人

环境

  • 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

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago