Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leizhenpeng/go-feishu-bot-calculator
写一个飞书机器人当做你的私人计算器~
https://github.com/leizhenpeng/go-feishu-bot-calculator
feishu-bot gin golang
Last synced: 16 days ago
JSON representation
写一个飞书机器人当做你的私人计算器~
- Host: GitHub
- URL: https://github.com/leizhenpeng/go-feishu-bot-calculator
- Owner: Leizhenpeng
- Created: 2023-01-06T12:16:47.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-06T09:58:55.000Z (almost 2 years ago)
- Last Synced: 2024-12-02T07:57:40.553Z (21 days ago)
- Topics: feishu-bot, gin, golang
- Language: Go
- Homepage: https://www.bilibili.com/video/BV12M41187rV
- Size: 89.8 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
A feishu-bot calculator powered by go(gin)
## 关于反向代理
由于需要订阅事件,所以需要在公网上部署,
如果你的服务器没有公网 IP,可以使用反向代理的方式
飞书的服务器在国内对ngrok的访问速度很慢,所以推荐使用一些国内的反向代理服务商
- [cpolar](https://dashboard.cpolar.com/)
- [natapp](https://natapp.cn/)
### 测试部署
```bash
cpolar http 8080
```### 后台部署
```bash
go run main.gonohup cpolar http 8080 -log=stdout &
```
### 查看服务器状态
https://dashboard.cpolar.com/status### 查询并kill进程
```bash
ps -ef | grep cpolarkill -9 PID
```## 关于飞书机器人
[飞书开发者平台](https://open.feishu.cn/app?lang=zh-CN)
[事件订阅的文档](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM?lang=zh-CN#2eb3504a)[事件订阅的SDK](https://github.com/larksuite/oapi-sdk-go#%E5%A4%84%E7%90%86%E6%B6%88%E6%81%AF%E4%BA%8B%E4%BB%B6%E5%9B%9E%E8%B0%83)
[所有SDK](https://github.com/larksuite/oapi-sdk-go)
[消息类型](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json)
[发送消息文档](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/create)
应用审核: https://fork-way.feishu.cn/admin/appCenter/audit (需要飞书企业版)