Upload case.js
Browse files
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);
|