mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-05 10:29:04 +08:00
chore: PostEvent
This commit is contained in:
parent
bc636f109c
commit
80d2218aa6
@ -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