Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.02 KB

README.md

File metadata and controls

30 lines (18 loc) · 1.02 KB

gofbot

build codecov Go Report Card

A generic forwarding robots based on the URL called.

It was a generic webhook endpoint to call some notifications.

内置函数

  • larkEmail2openID: 通过邮箱获取openid
  • larkAtTransform: 将一个@username文本转换为飞书的at标签
  • larkAtTransform4All: 将一段文本中的所有@username替换为飞书的at标签

用法


<at id={{ larkEmail2openID (printf "%s@%s" .user.username "company.com") }}></at>

环境变量

使用飞书相关函数时必须设置以下环境变量

  • LARK_APP_ID=cli_a4d34d4xxxxxxxx
  • LARK_APP_SECRET=y9uUaXQqz71vf0cmxyxxxxxxxxxxxx