Skip to content

A generic webhook endpoint that call some apis based on the URL called

License

Notifications You must be signed in to change notification settings

bonaysoft/gofbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A generic webhook endpoint that call some apis based on the URL called

Resources

License

Stars

Watchers

Forks