Fix parse-domain

This commit is contained in:
Dragon Fire
2024-03-20 17:09:53 -04:00
parent 845e57c725
commit 51a81624f3
5 changed files with 21 additions and 7 deletions
+7
View File
@@ -55,6 +55,13 @@ module.exports = class XiaoClient extends CommandClient {
this.nsfwModel = null;
}
async loadParseDomain() {
const parseDomainModule = await import('parse-domain');
this.parseDomain = parseDomainModule.parseDomain;
this.ParseResultType = parseDomainModule.ParseResultType;
return parseDomainModule;
}
async registerFontsIn(filepath) {
const files = fs.readdirSync(filepath);
for (const file of files) {