KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
lili
★ 13
Open GitHub ↗
lili是一个机器人, 功能是定时重复的去做一件事情, 如果有变化就发通知
Download README (.md)
Explore Similar Repositories
tabchi
:
No description available.
RetroPage
:
A lightweight homepage to quickly get you where you need to go.
vim-code-runner
:
Similar code-runner plugin for vim
row_boat
:
Import CSVs into your ActiveRecord models
magento2-catalog-sortby
:
Free Magento 2 Extension to Add Advance Sorting Options (Popularity and Rating) to Catalog | TheCodingTutor
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
lili
?
Download (.md)
# 如何运行 example/lili 0. `cd examples/lili` 1. 确认 docker 环境已经装好 2. 参照 `.env.example` 新建 `.env` 文件, 并设置 proxy * 如果运行 docker 的环境可以翻墙则跳过这一步 3. 参照 `config.yaml.example` 新建 `config.yaml` * 友情提示: 可以先把不要的先注释掉 * 填好 BearyChat incoming 机器人的 url 4. `docker-compose up lili` # 如何新增一个爬虫 ```go type CommandType interface { GetName() string GetInterval() time.Duration Fetch() ([]*Item, error) } ``` 定义一个 struct 实现如上3个接口方法 1. 名字 2. 更新间隔 3. fetch 的时候去请求并组装好 Item 对象 // 这里主要是推送的内容以及推送到哪里 > 可以看 /commands 里面的一些实例 # Caveats * 如果 notify 失败的时候暂时不会重试