mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
Fix parse-domain
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user