Update index.js
Browse files
index.js
CHANGED
|
@@ -330,7 +330,7 @@ function formatStockMessage(data) {
|
|
| 330 |
}
|
| 331 |
}
|
| 332 |
return message;
|
| 333 |
-
}
|
| 334 |
|
| 335 |
function formatWeatherMessage(weatherData) {
|
| 336 |
if (!weatherData || !weatherData.status) return "โ ๏ธ Could not fetch weather data";
|
|
@@ -343,7 +343,7 @@ function formatWeatherMessage(weatherData) {
|
|
| 343 |
meteorshower: 'โ๏ธ ๐ ๐๐ง๐๐ข๐ฅ ๐ฆ๐๐ข๐ช๐๐ฅ',
|
| 344 |
disco: '๐ชฉ ๐๐๐ฆ๐๐ข',
|
| 345 |
jandelstorm: '๐ฏ๏ธ ๐๐๐ก๐๐๐๐ฆ๐ง๐ข๐ฅ๐ ',
|
| 346 |
-
blackhole: '๐ณ๏ธ ๐๐๐
|
| 347 |
frost: 'โ๏ธ ๐๐ฅ๐ข๐ฆ๐ง '
|
| 348 |
};
|
| 349 |
|
|
@@ -445,7 +445,7 @@ async function handleGagStockCommand(senderId, args) {
|
|
| 445 |
|
| 446 |
favorites[senderId] = Array.from(updated);
|
| 447 |
saveFavorites(favorites);
|
| 448 |
-
return await sendMessage(senderId, `โ
Favorite list updated: ${Array.from(updated).join(", ") || "(empty)"`);
|
| 449 |
}
|
| 450 |
|
| 451 |
if (subcmd === "lastseen") {
|
|
@@ -482,7 +482,9 @@ async function handleGagStockCommand(senderId, args) {
|
|
| 482 |
}
|
| 483 |
|
| 484 |
if (subcmd !== "on") {
|
| 485 |
-
return await sendMessage(senderId,
|
|
|
|
|
|
|
| 486 |
}
|
| 487 |
|
| 488 |
if (activeSessions.has(senderId)) {
|
|
@@ -527,10 +529,10 @@ async function handleMessage(senderId, messageText) {
|
|
| 527 |
`๐ /๐๐๐ผ๐ฐ๐ธ - Get current stock information\n` +
|
| 528 |
`โ
/๐๐ฒ๐ฎ๐๐ต๐ฒ๐ฟ - Get current weather conditions\n` +
|
| 529 |
`๐พ /๐ด๐ฎ๐ด๐๐๐ผ๐ฐ๐ธ - Real-time stock tracking\n` +
|
| 530 |
-
`
|
| 531 |
-
`
|
| 532 |
-
`
|
| 533 |
-
`
|
| 534 |
`๐ /๐ป๐ผ๐๐ถ ๐ผ๐ป - Enable stock notifications\n` +
|
| 535 |
`๐ /๐ป๐ผ๐๐ถ ๐ผ๐ณ๐ณ - Disable notifications\n` +
|
| 536 |
`โฑ๏ธ /๐ป๐ผ๐๐ถ ๐ผ๐ป [๐บ๐ถ๐ป๐๐๐ฒ๐] - Set notification interval\n` +
|
|
|
|
| 330 |
}
|
| 331 |
}
|
| 332 |
return message;
|
| 333 |
+
}
|
| 334 |
|
| 335 |
function formatWeatherMessage(weatherData) {
|
| 336 |
if (!weatherData || !weatherData.status) return "โ ๏ธ Could not fetch weather data";
|
|
|
|
| 343 |
meteorshower: 'โ๏ธ ๐ ๐๐ง๐๐ข๐ฅ ๐ฆ๐๐ข๐ช๐๐ฅ',
|
| 344 |
disco: '๐ชฉ ๐๐๐ฆ๐๐ข',
|
| 345 |
jandelstorm: '๐ฏ๏ธ ๐๐๐ก๐๐๐๐ฆ๐ง๐ข๐ฅ๐ ',
|
| 346 |
+
blackhole: '๐ณ๏ธ ๐๐๐๐๐๐๐ข๐๐',
|
| 347 |
frost: 'โ๏ธ ๐๐ฅ๐ข๐ฆ๐ง '
|
| 348 |
};
|
| 349 |
|
|
|
|
| 445 |
|
| 446 |
favorites[senderId] = Array.from(updated);
|
| 447 |
saveFavorites(favorites);
|
| 448 |
+
return await sendMessage(senderId, `โ
Favorite list updated: ${Array.from(updated).join(", ") || "(empty)"}`);
|
| 449 |
}
|
| 450 |
|
| 451 |
if (subcmd === "lastseen") {
|
|
|
|
| 482 |
}
|
| 483 |
|
| 484 |
if (subcmd !== "on") {
|
| 485 |
+
return await sendMessage(senderId,
|
| 486 |
+
"๐ Usage:\nโข /gagstock on\nโข /gagstock fav add Carrot | Watering Can\nโข /gagstock lastseen gear | seed\nโข /gagstock off"
|
| 487 |
+
);
|
| 488 |
}
|
| 489 |
|
| 490 |
if (activeSessions.has(senderId)) {
|
|
|
|
| 529 |
`๐ /๐๐๐ผ๐ฐ๐ธ - Get current stock information\n` +
|
| 530 |
`โ
/๐๐ฒ๐ฎ๐๐ต๐ฒ๐ฟ - Get current weather conditions\n` +
|
| 531 |
`๐พ /๐ด๐ฎ๐ด๐๐๐ผ๐ฐ๐ธ - Real-time stock tracking\n` +
|
| 532 |
+
` โข /๐ด๐ฎ๐ด๐๐๐ผ๐ฐ๐ธ ๐ผ๐ป - Start tracking\n` +
|
| 533 |
+
` โข /๐ด๐ฎ๐ด๐๐๐ผ๐ฐ๐ธ ๐ผ๐ณ๐ณ - Stop tracking\n` +
|
| 534 |
+
` โข /๐ด๐ฎ๐ด๐๐๐ผ๐ฐ๐ธ ๐ณ๐ฎ๐ ๐ฎ๐ฑ๐ฑ ๐ถ๐๐ฒ๐บ - Add favorite\n` +
|
| 535 |
+
` โข /๐ด๐ฎ๐ด๐๐๐ผ๐ฐ๐ธ ๐น๐ฎ๐๐๐๐ฒ๐ฒ๐ป - View last seen items\n` +
|
| 536 |
`๐ /๐ป๐ผ๐๐ถ ๐ผ๐ป - Enable stock notifications\n` +
|
| 537 |
`๐ /๐ป๐ผ๐๐ถ ๐ผ๐ณ๐ณ - Disable notifications\n` +
|
| 538 |
`โฑ๏ธ /๐ป๐ผ๐๐ถ ๐ผ๐ป [๐บ๐ถ๐ป๐๐๐ฒ๐] - Set notification interval\n` +
|