mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-07 08:35:51 +00:00
AmilyBus注入初始化
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import { Logger } from '/core/logger.js';
|
||||
import { FilePipe } from '/core/file-pipe.js';
|
||||
|
||||
class Amily2Bus {
|
||||
constructor() {
|
||||
/** @type {Logger|null} */
|
||||
this.Logger = null;
|
||||
this.Logger = new Logger();
|
||||
/** @type {FilePipe|null} */
|
||||
this.FilePipe = null;
|
||||
this.FilePipe = new FilePipe();
|
||||
|
||||
// 已注册插件列表,防止重复注册
|
||||
this.registry = new Set();
|
||||
|
||||
Reference in New Issue
Block a user