|
|
|
@ -17,7 +17,9 @@ async function chat() {
|
|
|
|
|
const animaldb = await collect()
|
|
|
|
|
const possibleToots = animaldb.animals.map(record => {
|
|
|
|
|
return record.quotes.map(quote => {
|
|
|
|
|
const birthday = record.birthday.replace(/\n/g, "")
|
|
|
|
|
const birthday = record.birthday
|
|
|
|
|
.replace(/<sup>(.*)<\/sup>/g, "$1")
|
|
|
|
|
.replace(/\n/g, "")
|
|
|
|
|
return {
|
|
|
|
|
"toot": `${record.name}: "${quote}"\n\n${birthday} is my birthday.\nhttps://animalcrossing.fandom.com${record.href}`,
|
|
|
|
|
"attach": `data/ac/${md5(record.img)}.png`,
|
|
|
|
|