feat: Add weather command using weather.com API (#10)
* Update gsmarena.js * feat: Add weather command using weather.com API This commit introduces a new command that allows users to check the weather forecast. The command retrieves weather data from the weather.com API and provides relevant information to users. # Command: /weather <city> Example usage: /weather New York Technical details: Implementation of the weather command using the weather.com API in English.
This commit is contained in:
parent
51ffe0f94b
commit
2851ebce3c
4 changed files with 118 additions and 3 deletions
|
@ -109,7 +109,6 @@ function formatPhone(phone) {
|
|||
.filter(([_, key]) => formattedPhone[key])
|
||||
.map(([label, key]) => `<b>${label}:</b> <code>${formattedPhone[key]}</code>`)
|
||||
.join("\n\n");
|
||||
|
||||
|
||||
const deviceUrl = `<b>GSMArena page:</b> ${formattedPhone.url}`;
|
||||
const deviceImage = phone.picture ? `<b>Device Image</b>: ${phone.picture}` : '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue