mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 13:01:14 +00:00
chore: new adapter
This commit is contained in:
parent
3f2dcfbacc
commit
27ae331352
2
src/nekodog/Readme.md
Normal file
2
src/nekodog/Readme.md
Normal file
@ -0,0 +1,2 @@
|
||||
# nekodog
|
||||
此协议为替代QQ平台 OnebotV11长期不可靠问题
|
0
src/nekodog/api/index.ts
Normal file
0
src/nekodog/api/index.ts
Normal file
0
src/nekodog/event/index.ts
Normal file
0
src/nekodog/event/index.ts
Normal file
0
src/nekodog/helper/index.ts
Normal file
0
src/nekodog/helper/index.ts
Normal file
1
src/nekodog/index.ts
Normal file
1
src/nekodog/index.ts
Normal file
@ -0,0 +1 @@
|
||||
import { createServer } from 'node:net';
|
18
src/nekodog/network/socket.ts
Normal file
18
src/nekodog/network/socket.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { createServer } from 'node:net';
|
||||
export class NewAdapterNetwork {
|
||||
constructor(public host: number, public port: number) { }
|
||||
async open() {
|
||||
const server = createServer((socket) => {
|
||||
socket.on('data', (data) => {
|
||||
|
||||
});
|
||||
socket.on('end', () => {
|
||||
|
||||
});
|
||||
socket.on('connect', () => {
|
||||
|
||||
})
|
||||
});
|
||||
server.listen(this.port, this.host);
|
||||
}
|
||||
}
|
2
src/onebot/external/onebot11.json
vendored
2
src/onebot/external/onebot11.json
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"http": {
|
||||
"enable": false,
|
||||
"enable": true,
|
||||
"host": "",
|
||||
"port": 3000,
|
||||
"secret": "",
|
||||
|
Loading…
Reference in New Issue
Block a user