Modern protocol-side framework implemented based on NTQQ
Go to file
手瓜一十雪 e8ef08cae2
Pr enhance (#1176)
* fix

* Refactor PacketApi status checks and fix typos

Replaced all usages of PacketApi.available with PacketApi.packetStatus for more accurate status checking. Fixed a typo in getFullQQVesion to getFullQQVersion. Updated plugin_onmessage to fetch and parse messages for a user. These changes improve reliability and consistency in API status handling.

* Fix typo in getFullQQVersion method name

Corrected the method name from getFullQQVesion to getFullQQVersion in multiple locations to ensure consistency and prevent potential runtime errors.

* Remove performance CLI and demo, fix typos, update proto

Deleted the performance CLI and demo files. Fixed a typo in getFullQQVesion to getFullQQVersion across multiple files. Changed the 'time' field type from UINT32 to UINT64 in Oidb.0x9067_202 proto. Commented out performanceMonitorPlugin in vite.config.ts. Removed an unimplemented log statement in NodeIKernelBuddyListener.

* Comment out default plugin adapter registration

The default registration of OB11PluginAdapter in NapCatOneBot11Adapter was commented out, likely to prevent automatic plugin loading or to allow for more flexible plugin management. Also, removed an unnecessary blank line in the plugin_onmessage function.

* fix

* Add shell-analysis mode with performance monitoring

Introduces a new .env.shell-analysis file and a dev:shell-analysis npm script for building in shell-analysis mode. Updates vite.config.ts to support the new mode, enabling the performance monitor plugin with an updated exclude list. Also extends the plugin's exclude patterns to filter out 'packet' files.

* Delete performance-api.ts

* Add commented export for performance-monitor

Added a commented-out export statement for '@/common/performance-monitor' in napcat.ts, possibly for future use or reference. No functional changes to the file.
2025-08-06 20:37:45 +08:00
.github ci: dispatch docker build workflow after release (#1078) 2025-06-15 23:26:17 +08:00
.vscode feat: 移除部分淘汰代码 2025-03-21 20:47:38 +08:00
external feat: kill-update 2025-05-24 10:33:14 +08:00
launcher feat: 34740 2025-05-09 19:16:25 +08:00
napcat.webui fix: package 2025-06-26 18:35:12 +08:00
script feat: 移除无用代码 2024-11-16 12:45:27 +08:00
src Pr enhance (#1176) 2025-08-06 20:37:45 +08:00
.editorconfig style: 强类型大法 2025-02-02 23:22:21 +08:00
.env.framework fix: typo 2024-08-10 17:51:25 +08:00
.env.shell build: V2.0.0 fast 2024-08-12 02:37:20 +08:00
.env.shell-analysis Pr enhance (#1176) 2025-08-06 20:37:45 +08:00
.env.universal feat: Universal Package (#578) 2024-11-29 15:11:35 +08:00
.gitignore feat: package 2025-06-26 18:32:31 +08:00
.prettierrc.json chore: add .prettierrc.json 2024-08-09 14:11:24 +08:00
CODE_OF_CONDUCT.md doc: code of conduct 2025-03-16 09:33:06 +08:00
eslint.config.mjs style: 强类型大法 2025-02-02 23:22:21 +08:00
LICENSE update: Limited Redistribution License 2024-11-23 18:52:53 +08:00
logo.png feat: 调整logo 2024-12-25 12:24:03 +08:00
manifest.json release: v4.8.95 2025-07-26 12:19:32 +00:00
package-lock.json Pr enhance (#1176) 2025-08-06 20:37:45 +08:00
package.json Pr enhance (#1176) 2025-08-06 20:37:45 +08:00
README.md docs: mai 2025-05-17 17:54:53 +08:00
SECURITY.md doc: security 2025-03-16 09:36:27 +08:00
tsconfig.json Revert "fix: moduleResolution" 2025-03-19 11:58:16 +08:00
vite-plugin-performance-monitor.ts Pr enhance (#1176) 2025-08-06 20:37:45 +08:00
vite.config.ts Pr enhance (#1176) 2025-08-06 20:37:45 +08:00

NapCat

NapCat

Modern protocol-side framework implemented based on NTQQ.

云起兮风生,心向远方兮路未曾至.


Welcome

  • NapCatQQ is a modern implementation of the Bot protocol based on NTQQ.
    • NapCatQQ 是现代化的基于 NTQQ 的 Bot 协议端实现

Feature

  • Easy to Use
    • 作为初学者能够轻松使用.
  • Quick and Efficient
    • 在低内存操作系统长时运行.
  • Rich API Interface
    • 完整实现了大部分标准接口.
  • Stable and Reliable
    • 持续稳定的开发与维护.

Quick Start

可前往 Release 页面下载最新版本

首次使用请务必查看如下文档看使用教程

Docs Github.IO Cloudflare.Worker Cloudflare.HKServer
Docs Cloudflare.Pages Server.Other NapCat.Wiki
QQ Group QQ Group#4 QQ Group#3 QQ Group#2 QQ Group#1
Telegram Telegram

Thanks

  • Lagrange 对本项目的大力支持 参考部分代码 已获授权

  • AstrBot 是完美适配本项目的LLM Bot框架 在此推荐一下

  • MaiBot 一只赛博群友 麦麦 Bot框架 在此推荐一下

  • 不过最最重要的 还是需要感谢屏幕前的你哦~


License

本项目采用 混合协议 开源,因此使用本项目时,你需要注意以下几点:

  1. 第三方库代码或修改部分遵循其原始开源许可.
  2. 本项目获取部分项目授权而不受部分约束
  3. 项目其余逻辑代码采用本仓库开源许可.

本仓库仅用于提高易用性,实现消息推送类功能,此外,禁止任何项目未经仓库主作者授权基于 NapCat 代码开发。使用请遵守当地法律法规,由此造成的问题由使用者和提供违规使用教程者负责。