updated now function to log the latest URL for each item

This commit is contained in:
dylan 2025-12-25 18:41:07 +00:00
parent 7d8c494058
commit 0a91a32359

View file

@ -35,6 +35,7 @@ export default async function now() {
try {
const latest = await getLatest()
console.log(`${id}: ${latest.text}`)
console.log(`${id} URL: ${latest.url}`)
if (latest && latest.text && latest.url) {
newNow = newNow.replace(regex, (match, openTag, closeTag) => {
// Replace href in opening tag