Installations
npm install asecbot
Developer Guide
Typescript
No
Module System
ESM
Node Version
20.17.0
NPM Version
10.8.2
Score
56.5
Supply Chain
80.4
Quality
73.9
Maintenance
100
Vulnerability
99.3
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
validate.email 🚀
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Developer
Admsec
Download Statistics
Total Downloads
100
Last Day
1
Last Week
2
Last Month
11
Last Year
100
GitHub Statistics
5 Stars
16 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Mar 04, 2025
Package Meta Information
Latest Version
1.1.1
Package Id
asecbot@1.1.1
Unpacked Size
15.56 kB
Size
4.64 kB
File Count
3
NPM Version
10.8.2
Node Version
20.17.0
Published on
Nov 29, 2024
Total Downloads
Cumulative downloads
Total Downloads
100
Last Day
0%
1
Compared to previous day
Last Week
100%
2
Compared to previous week
Last Month
-15.4%
11
Compared to previous month
Last Year
0%
100
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
AsecBot- 一个基于 node-napcat-ts 的 QQ 机器人
使用方法:
-
下载并配置 napcat, 并配置 NapCat 端为 websocket 服务端
-
[napcat]/config/onebot11_*.json 文件内容如下
1{ 2 "network": { 3 "httpServers": [], 4 "httpClients": [], 5 "websocketServers": [ 6 { 7 "name": "main", 8 "enable": true, 9 "host": "0.0.0.0", 10 "port": 3001, 11 "messagePostFormat": "array", 12 "reportSelfMessage": false, 13 "token": "", 14 "enableForcePushEvent": true, 15 "debug": false, 16 "heartInterval": 30000 17 } 18 ], 19 "websocketClients": [] 20 }, 21 "musicSignUrl": "", 22 "enableLocalFile2Url": false 23}
- 下载该项目
npm install asecbot
# or
cnpm install asecbot
- 安装依赖
npm install
# or
cnpm install
- 填写 config.yaml 文件
1napcat: 2 baseUrl: 'ws://localhost:3001' 3 accessToken: '' 4 throwPromise: false # 是否需要在触发 socket.error 时抛出错误,默认关闭 5 reconnection: 6 enable: true 7 attempts: 10 8 delay: 5000 # 单位可能是毫秒(ms) 9 debug: false 10 11self: 12 master: [] # 主人
- 创建 app.ts 文件, 填写内容如下
1// [asecbot]/app.ts 2import {Bot} from "./src/index.ts"; 3new Bot().start()
- asecbot 启动!
npm start
or
npx jiti app.ts

No vulnerabilities found.

No security vulnerabilities found.