mmm / plugins /extra-fun.js
ravenbs1's picture
Upload 140 files
046b271 verified
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}`);
}
}
);