mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 07:29:38 +00:00
chore: PostEvent
This commit is contained in:
parent
b0484fc650
commit
73acbb7c07
@ -13,6 +13,10 @@ export class OB11NetworkManager {
|
||||
async getAllAdapters() {
|
||||
return this.adapters;
|
||||
}
|
||||
async PostEvent(event: OB11BaseEvent) {
|
||||
// Mlikiowa V2.0.0 Refactor Todo
|
||||
return Promise.all(this.adapters.map(adapter => adapter.onEvent(event)));
|
||||
}
|
||||
async registerAdapter(adapter: IOB11NetworkAdapter) {
|
||||
return this.adapters.push(adapter);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user