diff --git a/build-avatars.js b/build-avatars.js index 1ae25fab..b20dc91b 100755 --- a/build-avatars.js +++ b/build-avatars.js @@ -297,6 +297,24 @@ async function generateBotsAvatars () { }) .toFile(path.join(botOutputDir, '1.png')) } + + { + // Nigbot avatar for users + const inputDir = './assets/images/avatars/nctv' + const botOutputDir = './dist/server/bot_avatars/nctv/' + fs.mkdirSync(botOutputDir, { recursive: true }) + const buff = await sharp(path.join(inputDir, 'nigbot.png')) + .toBuffer() + + await sharp(buff) + .resize(60, 60) + .png({ + compressionLevel: 9, + palette: true + }) + .toFile(path.join(botOutputDir, '1.png')) + } + } if (isMainThread) {