Jonell01 commited on
Commit
77ef7ec
ยท
verified ยท
1 Parent(s): 795e9a2

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +10 -8
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, `โœ… Favorite list updated: ${Array.from(updated).join(", ") || "(empty)"}`);
 
 
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
- ` โ€ข /๐—ด๐—ฎ๐—ด๐˜€๐˜๐—ผ๐—ฐ๐—ธ ๐—ผ๐—ป - Start tracking\n` +
531
- ` โ€ข /๐—ด๐—ฎ๐—ด๐˜€๐˜๐—ผ๐—ฐ๐—ธ ๐—ผ๐—ณ๐—ณ - Stop tracking\n` +
532
- ` โ€ข /๐—ด๐—ฎ๐—ด๐˜€๐˜๐—ผ๐—ฐ๐—ธ ๐—ณ๐—ฎ๐˜ƒ ๐—ฎ๐—ฑ๐—ฑ ๐—ถ๐˜๐—ฒ๐—บ - Add favorite\n` +
533
- ` โ€ข /๐—ด๐—ฎ๐—ด๐˜€๐˜๐—ผ๐—ฐ๐—ธ ๐—น๐—ฎ๐˜€๐˜๐˜€๐—ฒ๐—ฒ๐—ป - View last seen items\n` +
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` +