add nigbot build job
This commit is contained in:
parent
39f6e4c637
commit
fd16c95b8f
@ -297,6 +297,24 @@ async function generateBotsAvatars () {
|
|||||||
})
|
})
|
||||||
.toFile(path.join(botOutputDir, '1.png'))
|
.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) {
|
if (isMainThread) {
|
||||||
|
Loading…
Reference in New Issue
Block a user