Add automatic Threads link replies and sunrise preview card
This commit is contained in:
@@ -12,7 +12,8 @@ const samples: Record<string, WeatherSample | null> = {
|
||||
rain: { ...base, rain: 1 }, snow: { ...base, snowfall: 1 }, unknown: null,
|
||||
};
|
||||
for (const [condition, weather] of Object.entries(samples)) {
|
||||
const { text } = renderCaption(config, { weather, capturedAt: new Date().toISOString(),
|
||||
const { text, replyText } = renderCaption(config, { weather, capturedAt: new Date().toISOString(),
|
||||
sunrise: dailySchedule(new Date()).sunrise.toISOString(), url: new URL(site.siteUrl).origin, test: false });
|
||||
console.log(`\n[${condition}]\n${text}`);
|
||||
if (replyText) console.log(`\n[댓글]\n${replyText}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user