mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 21:40:51 +02:00
Fix
This commit is contained in:
@@ -54,11 +54,11 @@ module.exports = class XiaoClient extends CommandoClient {
|
|||||||
this.leaveMessages = leaveMsgs;
|
this.leaveMessages = leaveMsgs;
|
||||||
}
|
}
|
||||||
|
|
||||||
async registerFontsIn(path) {
|
async registerFontsIn(filepath) {
|
||||||
const files = fs.readdirSync(path);
|
const files = fs.readdirSync(filepath);
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
const metadata = await fontFinder.get(path.join(path, file));
|
const metadata = await fontFinder.get(path.join(filepath, file));
|
||||||
const font = new Font(path.join(path, file), file, metadata);
|
const font = new Font(path.join(filepath, file), file, metadata);
|
||||||
this.fonts.set(file, font);
|
this.fonts.set(file, font);
|
||||||
font.register();
|
font.register();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user