refactor: Init Core
This commit is contained in:
1 parent
cbf98ffb89
commit
f228129c19
3 files changed
+9
-7
No files matched your search
+2
-1
@@ -292,7 +292,7 @@ export async function NCoreInitShell() {
|
||||
fs.mkdirSync(dataPath, { recursive: true });
|
||||
logger.logDebug('本账号数据/缓存目录:', accountDataPath);
|
||||
|
||||
new NapCatShell(
|
||||
await new NapCatShell(
|
||||
wrapper,
|
||||
session,
|
||||
logger,
|
||||
@@ -331,6 +331,7 @@ export class NapCatShell {
|
||||
|
||||
}
|
||||
async InitNapCat() {
|
||||
await this.core.initCore();
|
||||
new NapCatOneBot11Adapter(this.core, this.context, this.context.pathWrapper).InitOneBot()
|
||||
.catch(e => this.context.logger.logError.bind(this.context.logger)('初始化OneBot失败', e));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user