API-XX commited on
Commit
9e3e7e8
Β·
verified Β·
1 Parent(s): c5b312c

Upload case.js

Browse files
Files changed (1) hide show
  1. case.js +67 -2
case.js CHANGED
@@ -1000,6 +1000,9 @@ module.exports = async (conn, dev, chatUpdate, store) => {
1000
  > ─────────────❐
1001
 
1002
  > β”€γ€Ž \`𝐅𝐔𝐍 πŒπ„ππ”\` 』
 
 
 
1003
  > ${sign} quote
1004
  > ${sign} aniquote
1005
 
@@ -1694,8 +1697,70 @@ case 'kick': {
1694
 
1695
 
1696
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1697
 
 
1698
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1699
 
1700
  case 'quote': {
1701
  await loading();
@@ -1710,7 +1775,7 @@ case 'kick': {
1710
  let { Author, quote } = json;
1711
 
1712
  conn.sendMessage(m.chat, {
1713
- text: fontx(`πŸ“œ *Quote of the Day*\n\n❝ ${quote} ❞\n\nβ€” *${Author}*`)
1714
  });
1715
  } catch (error) {
1716
  console.error("Error in quote case:", error);
@@ -1730,7 +1795,7 @@ case 'kick': {
1730
  }
1731
  let { author, anime, quote } = json;
1732
  conn.sendMessage(m.chat, {
1733
- text: fontx(`🎌 *Anime Quote*\n\nπŸ’¬ *Quote:* "${quote}"\nπŸ‘€ *Author:* ${author}\nπŸ“Ί *Anime:* ${anime}`)
1734
  }, { quoted: m });
1735
  } catch (error) {
1736
  console.error("Error in aniquote case:", error);
 
1000
  > ─────────────❐
1001
 
1002
  > β”€γ€Ž \`𝐅𝐔𝐍 πŒπ„ππ”\` 』
1003
+ > ${sign} rizz
1004
+ > ${sign} truth
1005
+ > ${sign} dare
1006
  > ${sign} quote
1007
  > ${sign} aniquote
1008
 
 
1697
 
1698
 
1699
 
1700
+ case 'truth': {
1701
+ await loading();
1702
+ try {
1703
+ let response = await fetch('https://api-xx-xi.hf.space/api/truth');
1704
+ let json = await response.json();
1705
+
1706
+ if (!json.success) {
1707
+ return reply(fontx("Failed to fetch a truth question. Please try again later."));
1708
+ }
1709
+
1710
+ let { truth } = json;
1711
+
1712
+ conn.sendMessage(m.chat, {
1713
+ text: fontx(`πŸ” *Truth Question*\n\n❝ ${truth} ❞\n ${caption}`)
1714
+ });
1715
+ } catch (error) {
1716
+ console.error("Error in truth case:", error);
1717
+ reply(fontx("An error occurred while fetching the truth question. Please try again later."));
1718
+ }
1719
+ break;
1720
+ }
1721
+
1722
+ case 'dare': {
1723
+ await loading();
1724
+ try {
1725
+ let response = await fetch('https://api-xx-xi.hf.space/api/dare');
1726
+ let json = await response.json();
1727
+
1728
+ if (!json.success) {
1729
+ return reply(fontx("Failed to fetch a dare challenge. Please try again later."));
1730
+ }
1731
 
1732
+ let { dare } = json;
1733
 
1734
+ conn.sendMessage(m.chat, {
1735
+ text: fontx(`πŸ”₯ *Dare Challenge*\n\n❝ ${dare} ❞\n ${caption}`)
1736
+ });
1737
+ } catch (error) {
1738
+ console.error("Error in dare case:", error);
1739
+ reply(fontx("An error occurred while fetching the dare challenge. Please try again later."));
1740
+ }
1741
+ break;
1742
+ }
1743
+ case 'rizz': {
1744
+ await loading();
1745
+ try {
1746
+ let response = await fetch('https://api-xx-xi.hf.space/api/rizz');
1747
+ let json = await response.json();
1748
+
1749
+ if (!json.success) {
1750
+ return reply(fontx("Failed to fetch a rizz line. Please try again later."));
1751
+ }
1752
+
1753
+ let { rizz } = json;
1754
+
1755
+ conn.sendMessage(m.chat, {
1756
+ text: fontx(`😏 *Rizz Line*\n\n❝ ${rizz} ❞\n> ${caption}`)
1757
+ });
1758
+ } catch (error) {
1759
+ console.error("Error in rizz case:", error);
1760
+ reply(fontx("An error occurred while fetching the rizz line. Please try again later."));
1761
+ }
1762
+ break;
1763
+ }
1764
 
1765
  case 'quote': {
1766
  await loading();
 
1775
  let { Author, quote } = json;
1776
 
1777
  conn.sendMessage(m.chat, {
1778
+ text: fontx(`πŸ“œ *Quote of the Day*\n\n❝ ${quote} ❞\n\nβ€” *${Author}*\n> ${caption}`)
1779
  });
1780
  } catch (error) {
1781
  console.error("Error in quote case:", error);
 
1795
  }
1796
  let { author, anime, quote } = json;
1797
  conn.sendMessage(m.chat, {
1798
+ text: fontx(`🎌 *Anime Quote*\n\nπŸ’¬ *Quote:* "${quote}"\nπŸ‘€ *Author:* ${author}\nπŸ“Ί *Anime:* ${anime}\n> ${caption}`)
1799
  }, { quoted: m });
1800
  } catch (error) {
1801
  console.error("Error in aniquote case:", error);