mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 08:22:37 +02:00
Fix
This commit is contained in:
@@ -266,6 +266,15 @@ client.on('ready', async () => {
|
|||||||
client.logger.error(`[FACE DETECTOR] Failed to load face detector\n${err.stack}`);
|
client.logger.error(`[FACE DETECTOR] Failed to load face detector\n${err.stack}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set up stylize models
|
||||||
|
try {
|
||||||
|
await client.tensorflow.loadStyleModel();
|
||||||
|
await client.tensorflow.loadTransformerModel();
|
||||||
|
client.logger.info('[STYLIZE] Loaded stylize models.');
|
||||||
|
} catch (err) {
|
||||||
|
client.logger.error(`[STYLIZE] Failed to load stylize models\n${err.stack}`);
|
||||||
|
}
|
||||||
|
|
||||||
// Fetch all members
|
// Fetch all members
|
||||||
try {
|
try {
|
||||||
for (const guild of client.guilds.cache.values()) {
|
for (const guild of client.guilds.cache.values()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user