A lightweight TypeScript library for NapCat and OneBot v11.
Note: This library is currently in active development. APIs are subject to change.
Check out DeepWiki for more documentation.
- Ultra-lightweight: Zero dependencies, ~1.7KB gzipped.
- Simple API: Connect to the server with a single
open(...)method. - TypeScript First: Comprehensive type definitions for events and methods.
- Rich Utilities: Built-in message builders, guards, and helper functions.
This is a simple example of using NapCon to respond to group at messages with Hello, [nickname]!.
Check out examples for usage examples.