{"id":95,"date":"2026-07-05T23:54:34","date_gmt":"2026-07-05T15:54:34","guid":{"rendered":"https:\/\/hefa8.cn\/?p=95"},"modified":"2026-07-06T07:40:21","modified_gmt":"2026-07-05T23:40:21","slug":"napcat%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/hefa8.cn\/?p=95","title":{"rendered":"NapCat\u4ecb\u7ecd"},"content":{"rendered":"<h1>NapCatQQ<\/h1>\n<p>\u60f3\u7ed9 QQ \u52a0\u4e2a\u673a\u5668\u4eba\uff0c\u4f46\u53c8\u4e0d\u60f3\u6298\u817e\u5e95\u5c42\u534f\u8bae\uff1f\n\u53ef\u4ee5\u770b\u770b <strong>NapCatQQ<\/strong>\uff0c\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684 QQ Bot \u6846\u67b6\uff0c\u5708\u5185\u5e38\u53eb\u201c\u732b\u732b\u6846\u67b6\u201d\u3002<\/p>\n<p>\u5b83\u7684\u601d\u8def\u5f88\u76f4\u63a5\uff1a\u65b0\u7248 NTQQ \u5e95\u5c42\u63a5\u53e3\u5f88\u5f3a\uff0c\u4f46\u76f4\u63a5\u7528\u5f88\u9ebb\u70e6\u3002\nNapCat \u7528 TypeScript \u642d\u4e86\u5ea7\u6865\n\u901a\u8fc7 JS \u8c03\u7528 NTQQ \u7684\u539f\u751f\u80fd\u529b\n\u7136\u540e\u7edf\u4e00\u5c01\u88c5\u6210 <strong>OneBot \u6807\u51c6<\/strong> \u7684 HTTP \/ WebSocket \u63a5\u53e3\u3002\n\u4e0a\u9762\u6302\u4efb\u4f55\u652f\u6301 OneBot \u7684\u673a\u5668\u4eba\u6846\u67b6\uff08NoneBot\u3001Hoshino\u3001ZeroBot \u7b49\u7b49\uff09\u90fd\u80fd\u8dd1\n\u4e0d\u7528\u518d\u7ba1\u534f\u8bae\u7ec6\u8282<\/p>\n<h2>\u6838\u5fc3\u4f18\u52bf<\/h2>\n<ul>\n<li><strong>\u590d\u7528\u539f\u751f\u63a5\u53e3<\/strong>\uff1a\u4e0d\u7528\u81ea\u5df1\u9006\u5411\u534f\u8bae\uff0c\u76f4\u63a5\u8c03 NTQQ \u7684\u539f\u751f\u63a5\u53e3\uff0c\u517c\u5bb9\u6027\u597d\uff0c\u8ddf\u5b98\u65b9\u66f4\u65b0\u4e5f\u7a33\u3002<\/li>\n<li><strong>\u7eaf\u51c0\u542f\u52a8<\/strong>\uff1a\u4e0d\u9700\u8981\u8fdb\u7a0b\u6ce8\u5165\uff0c\u4e5f\u4e0d\u7528\u6302\u5728 Electron \u4e0a\uff0c\u72ec\u7acb\u62c9\u8d77 NTQQ \u8fdb\u7a0b\u5c31\u80fd\u62ff\u5230\u5b8c\u6574 API \u6743\u9650\u3002<\/li>\n<li><strong>\u8d44\u6e90\u5360\u7528\u4f4e<\/strong>\uff1a\u5e95\u5c42\u76f4\u8fde Node \u6a21\u5757\uff0c\u8dd1\u8d77\u6765\u5f88\u7701\u5185\u5b58\u3002Windows\u3001Linux\u3001\u5b89\u5353 Termux\u3001Docker \u90fd\u53ef\u4ee5\u90e8\u7f72\u3002<\/li>\n<\/ul>\n<hr \/>\n<h2>\u5de5\u4f5c\u6d41\u7a0b<\/h2>\n<p>\u4f60\u5199\u7684\u673a\u5668\u4eba\uff08\u4e0a\u5c42\uff09\n\u2195 HTTP \/ WebSocket\nNapCat \u534f\u8bae\u8f6c\u6362\u5c42\uff08\u732b\u732b\u6838\u5fc3\uff09\n\u2195 \u539f\u751f\u8c03\u7528\nNTQQ \u672c\u4f53\uff08\u8001\u5b9e\u6253\u5de5\uff09\n\u5185\u7f6e\u4e00\u4e2a <strong>WebUI \u7ba1\u7406\u9762\u677f<\/strong> \uff0c\u6253\u5f00\u7f51\u9875\u5c31\u80fd\u626b\u7801\u767b\u5f55\u3001\u914d\u53c2\u6570\u3001\u8c03\u63a5\u53e3\n\u5c0f\u767d\u4e5f\u80fd\u5341\u5206\u949f\u4e0a\u8def\uff0c\u4e0d\u7528\u5bf9\u7740\u9ed1\u6846\u6572\u4ee3\u7801\u3002<\/p>\n<blockquote>\n<p>\u4e00\u53e5\u8bdd\uff1a\u4e2d\u95f4\u5c42\u8f6c\u53d1\uff0c\u4e0a\u9762\u968f\u4fbf\u63a5\uff0c\u4e0b\u9762\u53ea\u7ba1\u8c03\u3002<\/p>\n<\/blockquote>\n<h2>\u80fd\u5e72\u4ec0\u4e48<\/h2>\n<p>\u7fa4\u7ba1\u3001\u6d88\u606f\u63a8\u9001\u3001\u81ea\u52a8\u56de\u590d\u3001RSS \u8ba2\u9605\u8f6c\u53d1\u3001\u76d1\u63a7\u544a\u8b66\u6254\u5230\u7fa4\u91cc\uff0c\u8fd9\u4e9b\u5e38\u89c4\u64cd\u4f5c\u90fd\u884c\u3002\u6254\u670d\u52a1\u5668\u4e0a\u957f\u671f\u6302\u7740\uff0c\u5f53\u4e2a\u540e\u53f0\u670d\u52a1\u7528\u3002<\/p>\n<h2>\u6ce8\u610f<\/h2>\n<p>\u957f\u671f\u6302\u673a\u6709\u98ce\u63a7\uff0c<strong>\u522b\u62ff\u5927\u53f7\u8bd5<\/strong>\uff0c\u641e\u4e2a\u5c0f\u53f7\u6216\u8005\u4e13\u7528\u53f7\u3002\u7528\u9014\u9650\u4e8e\u5b66\u4e60\u3001\u4e2a\u4eba\u793e\u7fa4\u7ba1\u7406\uff0c\u522b\u78b0\u7070\u4ea7\u3002<\/p>\n<blockquote>\n<p>\u5b98\u65b9\u6587\u6863\uff1a<a href=\"https:\/\/napneko.github.io\/\">https:\/\/napneko.github.io\/<\/a><\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>NapCatQQ \u60f3\u7ed9 QQ \u52a0\u4e2a\u673a\u5668\u4eba\uff0c\u4f46\u53c8\u4e0d\u60f3\u6298\u817e\u5e95\u5c42\u534f\u8bae\uff1f \u53ef\u4ee5\u770b\u770b NapCatQQ\uff0c\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684 Q [&hellip;]<\/p>","protected":false},"author":1,"featured_media":97,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[9],"class_list":["post-95","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-napcatqq","tag-napcatqq"],"_links":{"self":[{"href":"https:\/\/hefa8.cn\/index.php?rest_route=\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hefa8.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hefa8.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hefa8.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hefa8.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=95"}],"version-history":[{"count":6,"href":"https:\/\/hefa8.cn\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":102,"href":"https:\/\/hefa8.cn\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions\/102"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hefa8.cn\/index.php?rest_route=\/wp\/v2\/media\/97"}],"wp:attachment":[{"href":"https:\/\/hefa8.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hefa8.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hefa8.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}