File size: 15,014 Bytes
046b271 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 |
const { cmd } = require("../command");
const config = require('../config');
cmd({
pattern: "compatibility",
alias: ["friend", "fcheck"],
desc: "Calculate the compatibility score between two users.",
category: "fun",
react: "๐",
filename: __filename,
use: "@tag1 @tag2",
}, async (conn, mek, m, { args, reply }) => {
try {
if (args.length < 2) {
return reply("Please mention two users to calculate compatibility.\nUsage: `.compatibility @user1 @user2`");
}
let user1 = m.mentionedJid[0];
let user2 = m.mentionedJid[1];
const specialNumber = config.DEV ? `${config.DEV}@s.whatsapp.net` : null;
// Calculate a random compatibility score (between 1 to 1000)
let compatibilityScore = Math.floor(Math.random() * 1000) + 1;
// Check if one of the mentioned users is the special number
if (user1 === specialNumber || user2 === specialNumber) {
compatibilityScore = 1000; // Special case for DEV number
return reply(`๐ Compatibility between @${user1.split('@')[0]} and @${user2.split('@')[0]}: ${compatibilityScore}+/1000 ๐`);
}
// Send the compatibility message
await conn.sendMessage(mek.chat, {
text: `๐ Compatibility between @${user1.split('@')[0]} and @${user2.split('@')[0]}: ${compatibilityScore}/1000 ๐`,
mentions: [user1, user2],
}, { quoted: mek });
} catch (error) {
console.log(error);
reply(`โ Error: ${error.message}`);
}
});
cmd({
pattern: "aura",
desc: "Calculate aura score of a user.",
category: "fun",
react: "๐",
filename: __filename,
use: "@tag",
}, async (conn, mek, m, { args, reply }) => {
try {
if (args.length < 1) {
return reply("Please mention a user to calculate their aura.\nUsage: `.aura @user`");
}
let user = m.mentionedJid[0];
const specialNumber = config.DEV ? `${config.DEV}@s.whatsapp.net` : null;
// Calculate a random aura score (between 1 to 1000)
let auraScore = Math.floor(Math.random() * 1000) + 1;
// Check if the mentioned user is the special number
if (user === specialNumber) {
auraScore = 999999; // Special case for DEV number
return reply(`๐ Aura of @${user.split('@')[0]}: ${auraScore}+ ๐ฟ`);
}
// Send the aura message
await conn.sendMessage(mek.chat, {
text: `๐ Aura of @${user.split('@')[0]}: ${auraScore}/1000 ๐ฟ`,
mentions: [user],
}, { quoted: mek });
} catch (error) {
console.log(error);
reply(`โ Error: ${error.message}`);
}
});
cmd({
pattern: "roast",
desc: "Roast someone in Hindi",
category: "fun",
react: "๐ฅ",
filename: __filename,
use: "@tag"
}, async (conn, mek, m, { q, reply }) => {
let roasts = [
"Abe bhai, tera IQ wifi signal se bhi kam hai!",
"Bhai, teri soch WhatsApp status jaisi hai, 24 ghante baad gayab ho jaati hai!",
"Abe sochta kitna hai, tu kya NASA ka scientist hai?",
"Abe tu hai kaun? Google pe search karne se bhi tera naam nahi aata!",
"Tera dimaag 2G network pe chal raha hai kya?",
"Itna overthink mat kar bhai, teri battery jaldi down ho jayegi!",
"Teri soch cricket ke match jaisi hai, baarish aate hi band ho jati hai!",
"Tu VIP hai, 'Very Idiotic Person'!",
"Abe bhai, tera IQ wifi signal se bhi kam hai!",
"Bhai, teri soch WhatsApp status jaisi hai, 24 ghante baad gayab ho jaati hai!",
"Abe tu kis planet se aaya hai, yeh duniya tere jaise aliens ke liye nahi hai!",
"Tere dimag mein khojne ka itna kuch hai, lekin koi result nahi milta!",
"Teri zindagi WhatsApp status jaisi hai, kabhi bhi delete ho sakti hai!",
"Tera style bilkul WiFi password ki tarah hai, sabko pata nahi!",
"Abe tu toh wahi hai jo apni zindagi ka plot twist bhi Google karta hai!",
"Abe tu toh software update bhi nahi chalne wala, pura hang hai!",
"Tere sochne se zyada toh Google search karne mein time waste ho jaata hai!",
"Mere paas koi shabdon ki kami nahi hai, bas tujhe roast karne ka mood nahi tha!",
"Teri personality toh dead battery jaisi hai, recharge karne ka time aa gaya hai!",
"Bhai, teri soch ke liye ek dedicated server hona chahiye!",
"Abe tu kaunsa game khel raha hai, jisme har baar fail ho jaata hai?",
"Tere jokes bhi software update ki tarah hote hain, baar-baar lagte hain par kaam nahi karte!",
"Teri wajah se toh mere phone ka storage bhi full ho jaata hai!",
"Abe bhai, tu na ek walking meme ban gaya hai!",
"Abe apne aap ko bada smart samajhta hai, par teri brain cells toh overload mein hain!",
"Teri wajah se toh humari group chat ko mute karne ka sochna padta hai!",
"Abe tere jaise log hamesha apne aap ko hero samajhte hain, par actually toh tum villain ho!",
"Tere jaise logon ke liye zindagi mein rewind aur fast forward button hona chahiye!",
"Tere mooh se nikla har lafz ek naya bug hai!",
"Abe tu apni zindagi ke saath save nahi kar paaya, aur dusron ke liye advice de raha hai!",
"Tu apne life ka sabse bada virus hai!",
"Abe tu hain ya koi broken app?",
"Tere soch ke liye CPU ki zarurat hai, par lagta hai tera CPU khatam ho gaya!",
"Abe tu kya kar raha hai, ek walking error message ban gaya hai!",
"Teri taareef toh bas lagti hai, par teri asli aukaat toh sabko pata hai!",
"Tera brain toh ek broken link ki tarah hai, sab kuch dhundne ke bawajood kuch nahi milta!",
"Bhai, tujhe dekh ke toh lagta hai, Netflix bhi teri wajah se crash ho gaya!",
"Teri tasveer toh bas ek screenshot lagti hai, real life mein tu kuch bhi nahi!",
"Abe bhai, tu lagta hai toh I-phone ho, lekin andar kaafi purana android hai!",
"Abe, tere jaisi soch se toh Google bhi nafrat karta hoga!",
"Bhai tu apne chehre se ghazab ka mood bana le, shayad koi notice kar le!",
"Tere kaam bhi uss app ki tarah hote hain jo crash ho jata hai jab sabko zarurat ho!",
"Teri zindagi ke sabse bada hack toh hai - 'Log mujhse kuch bhi expect mat karo'!",
"Abe tu apne aap ko hi mirror mein dekh ke samajhta hai ki sab kuch sahi hai!",
"Abe tu apne dimaag ko low power mode mein daalke chalta hai!",
"Tere paas ideas hain, par sab outdated hain jaise Windows XP!",
"Teri soch toh ek system error ki tarah hai, restart karna padega!",
"Teri personality toh ek empty hard drive jaise hai, kuch bhi valuable nahi!",
"Abe tu kis planet se aaya hai, yeh duniya tere jaise logon ke liye nahi hai!",
"Tere chehre pe kisi ne 'loading' likh diya hai, par kabhi bhi complete nahi hota!",
"Tera dimaag toh ek broken link ki tarah hai, kabhi bhi connect nahi hota!",
"Abe, teri soch se toh Google ka algorithm bhi confused ho jata hai!",
"Tere jaisa banda, aur aise ideas? Yeh toh humne science fiction mein dekha tha!",
"Abe tu apne chehre pe 'not found' likhwa le, kyunki sabko kuch milta nahi!",
"Teri soch itni slow hai, Google bhi teri madad nahi kar paata!",
"Abe tu toh '404 not found' ka living example hai!",
"Tera dimaag bhi phone ki battery jaise hai, kabhi bhi drain ho jaata hai!",
"Abe tu toh wahi hai, jo apni zindagi ka password bhool jaata hai!",
"Abe tu jise apni soch samajhta hai, wo ek 'buffering' hai!",
"Teri life ke decisions itne confusing hain, ki KBC ke host bhi haraan ho jaaye!",
"Bhai, tere jaise logo ke liye ek dedicated 'error' page hona chahiye!",
"Teri zindagi ko 'user not found' ka message mil gaya hai!",
"Teri baatein utni hi value rakhti hain, jitni 90s ke mobile phones mein camera quality thi!",
"Abe bhai, tu toh har waqt 'under construction' rehta hai!",
"Tere saath toh life ka 'unknown error' hota hai, koi solution nahi milta!",
"Bhai, tere chehre pe ek warning sign hona chahiye - 'Caution: Too much stupidity ahead'!",
"Teri har baat pe lagta hai, system crash hone waala hai!",
"Tere paas idea hai, par wo abhi bhi 'under review' hai!"
];
let randomRoast = roasts[Math.floor(Math.random() * roasts.length)];
let sender = `@${mek.sender.split("@")[0]}`;
let mentionedUser = m.mentionedJid[0] || (mek.quoted && mek.quoted.sender);
if (!mentionedUser) {
return reply("Usage: .roast @user (Tag someone to roast them!)");
}
let target = `@${mentionedUser.split("@")[0]}`;
// Sending the roast message with the mentioned user
let message = `${target} :\n *${randomRoast}*\n> This is all for fun, don't take it seriously!`;
await conn.sendMessage(mek.chat, { text: message, mentions: [mek.sender, mentionedUser] }, { quoted: mek });
});
cmd({
pattern: "8ball",
desc: "Magic 8-Ball gives answers",
category: "fun",
react: "๐ฑ",
filename: __filename
},
async (conn, mek, m, { from, q, reply }) => {
if (!q) return reply("Ask a yes/no question! Example: .8ball Will I be rich?");
let responses = [
"Yes!", "No.", "Maybe...", "Definitely!", "Not sure.",
"Ask again later.", "I don't think so.", "Absolutely!",
"No way!", "Looks promising!"
];
let answer = responses[Math.floor(Math.random() * responses.length)];
reply(`๐ฑ *Magic 8-Ball says:* ${answer}`);
});
cmd({
pattern: "compliment",
desc: "Give a nice compliment",
category: "fun",
react: "๐",
filename: __filename,
use: "@tag (optional)"
}, async (conn, mek, m, { reply }) => {
let compliments = [
"You're amazing just the way you are! ๐",
"You light up every room you walk into! ๐",
"Your smile is contagious! ๐",
"You're a genius in your own way! ๐ง ",
"You bring happiness to everyone around you! ๐ฅฐ",
"You're like a human sunshine! โ๏ธ",
"Your kindness makes the world a better place! โค๏ธ",
"You're unique and irreplaceable! โจ",
"You're a great listener and a wonderful friend! ๐ค",
"Your positive vibes are truly inspiring! ๐ซ",
"You're stronger than you think! ๐ช",
"Your creativity is beyond amazing! ๐จ",
"You make life more fun and interesting! ๐",
"Your energy is uplifting to everyone around you! ๐ฅ",
"You're a true leader, even if you donโt realize it! ๐",
"Your words have the power to make people smile! ๐",
"You're so talented, and the world needs your skills! ๐ญ",
"You're a walking masterpiece of awesomeness! ๐จ",
"You're proof that kindness still exists in the world! ๐",
"You make even the hardest days feel a little brighter! โ๏ธ"
];
let randomCompliment = compliments[Math.floor(Math.random() * compliments.length)];
let sender = `@${mek.sender.split("@")[0]}`;
let mentionedUser = m.mentionedJid[0] || (mek.quoted && mek.quoted.sender);
let target = mentionedUser ? `@${mentionedUser.split("@")[0]}` : "";
let message = mentionedUser
? `${sender} complimented ${target}:\n๐ *${randomCompliment}*`
: `${sender}, you forgot to tag someone! But hey, here's a compliment for you:\n๐ *${randomCompliment}*`;
await conn.sendMessage(mek.chat, { text: message, mentions: [mek.sender, mentionedUser].filter(Boolean) }, { quoted: mek });
});
cmd({
pattern: "lovetest",
desc: "Check love compatibility between two users",
category: "fun",
react: "โค๏ธ",
filename: __filename,
use: "@tag1 @tag2"
}, async (conn, mek, m, { args, reply }) => {
if (args.length < 2) return reply("Tag two users! Example: .lovetest @user1 @user2");
let user1 = args[0].replace("@", "") + "@s.whatsapp.net";
let user2 = args[1].replace("@", "") + "@s.whatsapp.net";
let lovePercent = Math.floor(Math.random() * 100) + 1; // Generates a number between 1-100
let messages = [
{ range: [90, 100], text: "๐ *A match made in heaven!* True love exists!" },
{ range: [75, 89], text: "๐ *Strong connection!* This love is deep and meaningful." },
{ range: [50, 74], text: "๐ *Good compatibility!* You both can make it work." },
{ range: [30, 49], text: "๐ค *Itโs complicated!* Needs effort, but possible!" },
{ range: [10, 29], text: "๐
*Not the best match!* Maybe try being just friends?" },
{ range: [1, 9], text: "๐ *Uh-oh!* This love is as real as a Bollywood breakup!" }
];
let loveMessage = messages.find(msg => lovePercent >= msg.range[0] && lovePercent <= msg.range[1]).text;
let message = `๐ *Love Compatibility Test* ๐\n\nโค๏ธ *@${user1.split("@")[0]}* + *@${user2.split("@")[0]}* = *${lovePercent}%*\n${loveMessage}`;
await conn.sendMessage(mek.chat, { text: message, mentions: [user1, user2] }, { quoted: mek });
});
cmd(
{
pattern: "emoji",
desc: "Convert text into emoji form.",
category: "fun",
react: "๐",
filename: __filename,
use: "<text>"
},
async (conn, mek, m, { args, q, reply }) => {
try {
// Join the words together in case the user enters multiple words
let text = args.join(" ");
// Map text to corresponding emoji characters
let emojiMapping = {
"a": "๐
ฐ๏ธ",
"b": "๐
ฑ๏ธ",
"c": "๐จ๏ธ",
"d": "๐ฉ๏ธ",
"e": "๐ช๏ธ",
"f": "๐ซ๏ธ",
"g": "๐ฌ๏ธ",
"h": "๐ญ๏ธ",
"i": "๐ฎ๏ธ",
"j": "๐ฏ๏ธ",
"k": "๐ฐ๏ธ",
"l": "๐ฑ๏ธ",
"m": "๐ฒ๏ธ",
"n": "๐ณ๏ธ",
"o": "๐
พ๏ธ",
"p": "๐ต๏ธ",
"q": "๐ถ๏ธ",
"r": "๐ท๏ธ",
"s": "๐ธ๏ธ",
"t": "๐น๏ธ",
"u": "๐บ๏ธ",
"v": "๐ป๏ธ",
"w": "๐ผ๏ธ",
"x": "๐ฝ๏ธ",
"y": "๐พ๏ธ",
"z": "๐ฟ๏ธ",
"0": "0๏ธโฃ",
"1": "1๏ธโฃ",
"2": "2๏ธโฃ",
"3": "3๏ธโฃ",
"4": "4๏ธโฃ",
"5": "5๏ธโฃ",
"6": "6๏ธโฃ",
"7": "7๏ธโฃ",
"8": "8๏ธโฃ",
"9": "9๏ธโฃ",
" ": "โฃ", // for space
};
// Convert the input text into emoji form
let emojiText = text.toLowerCase().split("").map(char => emojiMapping[char] || char).join("");
// If no valid text is provided
if (!text) {
return reply("Please provide some text to convert into emojis!");
}
await conn.sendMessage(mek.chat, {
text: emojiText,
}, { quoted: mek });
} catch (error) {
console.log(error);
reply(`Error: ${error.message}`);
}
}
);
|