{"id":26418806,"url":"https://github.com/karinjs/kritor-kotlin","last_synced_at":"2025-03-18T01:54:41.847Z","repository":{"id":225374298,"uuid":"765826916","full_name":"KarinJS/kritor-kotlin","owner":"KarinJS","description":"kritor 的 kotlin 实现","archived":false,"fork":false,"pushed_at":"2024-03-21T12:44:49.000Z","size":198,"stargazers_count":38,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-22T13:48:05.132Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KarinJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-01T17:38:21.000Z","updated_at":"2024-03-22T04:14:57.000Z","dependencies_parsed_at":"2024-03-21T13:46:28.390Z","dependency_job_id":"0c5ff227-64c4-4817-bad0-0ea2fa3485cd","html_url":"https://github.com/KarinJS/kritor-kotlin","commit_stats":null,"previous_names":["whitechi73/kritor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarinJS%2Fkritor-kotlin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarinJS%2Fkritor-kotlin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarinJS%2Fkritor-kotlin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarinJS%2Fkritor-kotlin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KarinJS","download_url":"https://codeload.github.com/KarinJS/kritor-kotlin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141583,"owners_count":20404835,"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":[],"created_at":"2025-03-18T01:54:41.042Z","updated_at":"2025-03-18T01:54:41.827Z","avatar_url":"https://github.com/KarinJS.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kritor-kotlin\n\n**Kritor** （OneBotX）是一个聊天机器人应用接口标准，\n旨在统一腾讯QQ IM平台上的机器人应用开发接口 ，\n使开发者只需编写一次业务逻辑代码即可应用到多种机器人平台。\n\n**Kritor-kotlin** 是一个**Kritor**在Kotlin的实现。\n\n## 客户端代码示例\n\n建立一个管道，实例化Grpc的服务，发送一个鉴权请求。\n\n```kotlin\nsuspend fun main() {\n    val channel = ManagedChannelBuilder\n        .forAddress(\"localhost\", 8080)\n        .usePlaintext()\n        .build()\n\n    val stub = AuthenticationGrpcKt.AuthenticationCoroutineStub(channel)\n    runCatching {\n        val rsp = stub.auth(authReq {\n            account = \"1145141919810\"\n            ticket = \"A123456\"\n        })\n        println(rsp.code)\n    }.onFailure {\n        println(Status.fromThrowable(it))\n    }\n}\n```\n\n## 使用项目\n\n- [Shamrock](https://github.com/whitechi73/OpenShamrock)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarinjs%2Fkritor-kotlin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarinjs%2Fkritor-kotlin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarinjs%2Fkritor-kotlin/lists"}