Run eslint

This commit is contained in:
Cohee
2024-07-14 14:07:23 +03:00
parent fe0b29f606
commit 3fb83e47ec
4 changed files with 29 additions and 29 deletions

View File

@@ -31,12 +31,12 @@ const write = (image, data) => {
try {
//change v2 format to v3
const v3Data = JSON.parse(data);
v3Data.spec = 'chara_card_v3'
v3Data.spec_version = '3.0'
v3Data.spec = 'chara_card_v3';
v3Data.spec_version = '3.0';
const base64EncodedData = Buffer.from(JSON.stringify(v3Data), 'utf8').toString('base64');
chunks.splice(-1, 0, PNGtext.encode('ccv3', base64EncodedData));
} catch (error) {}
} catch (error) { }
const newBuffer = Buffer.from(encode(chunks));
return newBuffer;

View File

@@ -409,7 +409,7 @@ function charaFormatData(data, directories) {
//_.set(char, 'data.extensions.chat', data.ch_name + ' - ' + humanizedISO8601DateTime());
// V3 fields
_.set(char, 'data.group_only_greetings', data.group_only_greetings ?? [])
_.set(char, 'data.group_only_greetings', data.group_only_greetings ?? []);
if (data.world) {
try {