mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
Add global client font manager
This commit is contained in:
@@ -57,6 +57,9 @@ client.registry
|
||||
client.on('ready', async () => {
|
||||
client.logger.info(`[READY] Logged in as ${client.user.tag}! ID: ${client.user.id}`);
|
||||
|
||||
// Register all canvas fonts
|
||||
await client.registerFontsIn(path.join(__dirname, 'assets', 'fonts'));
|
||||
|
||||
// Set up existing timers
|
||||
await client.timers.fetchAll();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user