mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 06:45:31 +02:00
Fix
This commit is contained in:
@@ -42,6 +42,7 @@ module.exports = class PetCommand extends Command {
|
||||
encoder.setRepeat(0);
|
||||
encoder.setDelay(20);
|
||||
encoder.setQuality(200);
|
||||
encoder.setTransparent('#000000');
|
||||
for (let i = 0; i < frameCount; i++) {
|
||||
const frameID = `frame_${i.toString().padStart(2, '0')}.png`;
|
||||
const frame = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'pet', frameID));
|
||||
|
||||
Reference in New Issue
Block a user