mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Cleanup Risu import
This commit is contained in:
@ -3854,7 +3854,7 @@ function importRisuSprites(name, data) {
|
|||||||
const risuData = data?.data?.extensions?.risuai;
|
const risuData = data?.data?.extensions?.risuai;
|
||||||
|
|
||||||
// Not a Risu AI character
|
// Not a Risu AI character
|
||||||
if (!(risuData?.additionalAssets) || !(risuData?.emotions)) {
|
if (!risuData || !(risuData?.additionalAssets) || !(risuData?.emotions)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3876,7 +3876,7 @@ function importRisuSprites(name, data) {
|
|||||||
|
|
||||||
// Path to sprites is not a directory. This should never happen.
|
// Path to sprites is not a directory. This should never happen.
|
||||||
if (!fs.statSync(spritesPath).isDirectory()) {
|
if (!fs.statSync(spritesPath).isDirectory()) {
|
||||||
return response.sendStatus(404);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`RisuAI: Found ${images.length} sprites for ${name}. Writing to disk.`)
|
console.log(`RisuAI: Found ${images.length} sprites for ${name}. Writing to disk.`)
|
||||||
|
Reference in New Issue
Block a user