{"id":28476815,"url":"https://github.com/cherrs/lailai","last_synced_at":"2025-07-02T16:31:22.173Z","repository":{"id":41383207,"uuid":"497533026","full_name":"Cherrs/lailai","owner":"Cherrs","description":"一个服务FF14玩家的 QQ机器人，fflogs监控小警察","archived":false,"fork":false,"pushed_at":"2023-05-15T19:25:31.000Z","size":216,"stargazers_count":17,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T15:07:40.257Z","etag":null,"topics":["chatbot","ff14","ff14-bot","ff14bot","ffxiv","mirai","qqbot","ricq","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cherrs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-29T08:33:38.000Z","updated_at":"2025-02-27T17:27:42.000Z","dependencies_parsed_at":"2023-02-09T03:15:56.329Z","dependency_job_id":null,"html_url":"https://github.com/Cherrs/lailai","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Cherrs/lailai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cherrs%2Flailai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cherrs%2Flailai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cherrs%2Flailai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cherrs%2Flailai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cherrs","download_url":"https://codeload.github.com/Cherrs/lailai/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cherrs%2Flailai/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263175437,"owners_count":23425568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","ff14","ff14-bot","ff14bot","ffxiv","mirai","qqbot","ricq","rust"],"created_at":"2025-06-07T15:07:39.794Z","updated_at":"2025-07-02T16:31:22.164Z","avatar_url":"https://github.com/Cherrs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lailai\n\n[![build](https://github.com/Cherrs/Lailai/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/Cherrs/Lailai/actions/workflows/rust.yml)\n\n- 基于 ricq 开发的 FF14 开箱即用机器人\n\n- 配置简单\n\n支持的存储:\n\n- [x] postgresql\n- [x] sled(local)\n- [ ] mysql\n- [ ] ~~leveldb~~\n\n开发环境：rust nightly\n\n## 使用Lailai\n\n到[Release](https://github.com/Cherrs/lailai/releases)下载对应平台的可执行文件\n\n1. 打开后选择二维码登录。\n2. 确保登录qq和扫码设备在同一网络下\n3. 扫码\n\n\u003e - 账号密码登录需要滑块ticket，建议扫描二维码登录\n\u003e - 没有配置`group_config.yaml`默认不启用查询logs\n\u003e - 若无法登录，尝试删除目录下`session.key`和`device.json`文件\n\u003e - 密码登录需要滑块，在Windows下依赖[WebView2 运行时](https://developer.microsoft.com/zh-cn/microsoft-edge/webview2/)，请确认已经安装\n\n## 配置\n\n- 所有配置文件放在`config`目录下\n- Lailai会优先使用`config/config.yaml`文件的配置\n- 如果`config/config.yaml`文件不存在则使用环境变量\n- 如果都没有配置则禁用fflogs相关功能\n\n### 基础配置\n\nconfig.yaml\n\n本地存储示例：\n\n``` yaml\nstore: local\nlogskey: fflogs的key\ninterval: 120\nlocalpath: db/cache\nhistorydays: 1\nopenai: openai key\n```\n\n使用postgresql存储示例：\n\n``` yaml\nstore: postgres\nrsconstr: postgres://{数据库用户名}:{密码}@{ip}:{port}/{库名}\nlogskey: fflogs的key\ninterval: 120\nhistorydays: 1\nopenai: openai key\n```\n\n- `store` 使用哪一种缓存，默认local\n  - `local` 使用[sled](https://github.com/spacejam/sled)的本地存储\n  - `postgres` 使用postgresql，创建脚本在sql文件夹下\n- `rsconstr` postgresql数据库配置\n- `logskey` fflogs的V1 Client Key\n- `interval` 重试间隔，单位是秒，默认60\n- `localpath` 本地存储位置，默认`db/cache`\n- `historydays` 通报的历史天数，默认为1，1天前的数据不会通报\n- `openai` OpenAI的Key，支持AI回复\n\n### 配置群消息\n\ngroup_config.yaml\n\n``` yaml\n- qq: {qq号，是0则不会at}\n  name: {角色名}\n  server: {服务器}\n  group: \n    - id: {群号1}\n    - id: {群号2}\n```\n\n例：\n\n``` yaml\n- qq: 694638502\n  name: Iker\n  server: 琥珀原\n  group: \n   - id: 136610715\n```\n\nLailai会检索Iker在logs上的数据，如有更新并且击杀时间`historydays`之后会发送到群136610715，如果配置的QQ号：694638502在群里会自动At\n\n## fflogs警察 实时发送logs数据到群\n\n- 从\u003chttps://www.fflogs.com/\u003e获取数据\n- 如果发送的玩家在群会自动at\n- 不建议非亲友群使用，注意保护玩家隐私\n- 使用时注意logs的请求限制，可以通过调整interval和捐赠logs来支持更多玩家\n\n![发送logs到群](README/report.png)\n\n## 指令\n\n指令格式为：`@机器人 {参数} {命令}`\n\n目前支持的命令：\n\n- [x] `@机器人` 不带参数命令At机器人，查询玩家logs数据\n- [x] `物品` 模糊搜索物品\n- [x] `价格` 检索物品价格\n- [ ] 生产相关功能\n\n### 查询自己的logs\n\n`@小警察卸坤`\n\n- 此功能需要在`group_config.yaml`里配置qq号，角色名，服务器\n\n![查询logs](README/high.png)\n\n### 模糊搜索物品\n\n`@小警察卸坤 6级药 物品`\n\n![模糊搜索物品](README/wupin.png)\n\n### 搜索物品价格\n\n`@小警察卸坤 6级耐力之幻药 价格`\n\n![搜索物品价格](README/jiage.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherrs%2Flailai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcherrs%2Flailai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherrs%2Flailai/lists"}