feat: Add weather command using weather.com API #10

Merged
DaviisDev merged 3 commits from patch-1 into main 2024-09-08 21:30:56 +00:00
Showing only changes of commit b6aa69edd2 - Show all commits

View file

@ -110,9 +110,11 @@ function formatPhone(phone) {
.map(([label, key]) => `<b>${label}:</b> <code>${formattedPhone[key]}</code>`)
.join("\n\n");
const deviceNURL = <a href=`${formattedPhone.url}`>${formattedPhone.name}</a>
const deviceImage = phone.picture ? `<b>Device Image</b>: ${phone.picture}` : '';
return `<b>${formattedPhone.name}</b>\n\n${attributes}\n\n${deviceImage}`;
return `<b>${deviceNURL}</b>\n\n${attributes}\n\n${deviceImage}`;
}
async function fetchHtml(url) {