chore: new adapter

This commit is contained in:
手瓜一十雪 2024-08-27 20:37:23 +08:00
parent 3f2dcfbacc
commit 27ae331352
7 changed files with 22 additions and 1 deletions

2
src/nekodog/Readme.md Normal file
View File

@ -0,0 +1,2 @@
# nekodog
此协议为替代QQ平台 OnebotV11长期不可靠问题

0
src/nekodog/api/index.ts Normal file
View File

View File

View File

1
src/nekodog/index.ts Normal file
View File

@ -0,0 +1 @@
import { createServer } from 'node:net';

View 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);
}
}

View File

@ -1,6 +1,6 @@
{
"http": {
"enable": false,
"enable": true,
"host": "",
"port": 3000,
"secret": "",