|
|
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; |
|
|
|
|
|
|
|
|
let compatibilityScore = Math.floor(Math.random() * 1000) + 1; |
|
|
|
|
|
|
|
|
if (user1 === specialNumber || user2 === specialNumber) { |
|
|
compatibilityScore = 1000; |
|
|
return reply(`๐ Compatibility between @${user1.split('@')[0]} and @${user2.split('@')[0]}: ${compatibilityScore}+/1000 ๐`); |
|
|
} |
|
|
|
|
|
|
|
|
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; |
|
|
|
|
|
|
|
|
let auraScore = Math.floor(Math.random() * 1000) + 1; |
|
|
|
|
|
|
|
|
if (user === specialNumber) { |
|
|
auraScore = 999999; |
|
|
return reply(`๐ Aura of @${user.split('@')[0]}: ${auraScore}+ ๐ฟ`); |
|
|
} |
|
|
|
|
|
|
|
|
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]}`; |
|
|
|
|
|
|
|
|
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; |
|
|
|
|
|
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 { |
|
|
|
|
|
let text = args.join(" "); |
|
|
|
|
|
|
|
|
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๏ธโฃ", |
|
|
" ": "โฃ", |
|
|
}; |
|
|
|
|
|
|
|
|
let emojiText = text.toLowerCase().split("").map(char => emojiMapping[char] || char).join(""); |
|
|
|
|
|
|
|
|
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}`); |
|
|
} |
|
|
} |
|
|
); |
|
|
|