add nigbot build job

This commit is contained in:
matty 2024-08-05 20:29:46 -04:00
parent 39f6e4c637
commit fd16c95b8f

View File

@ -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) {