napcon
v0.0.15
Published
Lightweight NapCat/Onebot v11 TypeScript library
Downloads
736
Maintainers
Readme
NapCon
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.
Features
- 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.
Example
This is a simple example of using NapCon to respond to group at messages with Hello, [nickname]!.
Check out examples for usage examples.
