This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { bot, getRandom } = require('../lib/'); | |
| bot( | |
| { | |
| pattern: 'gamebattle ?(.*)', | |
| fromMe: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { bot, getRandom, jidToNum, db } = require('../lib/') // Added db for storing friendships | |
| bot( | |
| { | |
| pattern: 'friendship ?(.*)', | |
| fromMe: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { bot } = require('../lib'); | |
| const userXP = {}; | |
| bot( | |
| { | |
| on: 'message', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { bot, isAdmin } = require('../lib'); | |
| let autoReviveGroups = {}; // Stores groups with auto-revive enabled | |
| let lastMessageTime = {}; // Tracks last message time | |
| const reviveMessages = [ | |
| "🔥 *Wake up everyone! This group needs some energy!*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { bot } = require('../lib'); | |
| bot( | |
| { | |
| pattern: 'uptime', | |
| desc: 'Check bot uptime', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const handler = async (m, { conn, text, participants }) => { | |
| if (!m.isGroup) return m.reply('❌ *This command can only be used in groups.*'); | |
| // Check if the bot is admin | |
| const botNumber = conn.user.jid; | |
| const groupMetadata = await conn.groupMetadata(m.chat); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { command } = require("../lib"); | |
| const xpData = {}; // Temporary storage (Use a database for persistent storage) | |
| // Function to add XP per message | |
| async function addXP(sender) { | |
| if (!xpData[sender]) xpData[sender] = { xp: 0, level: 1 }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const userXP = {}; | |
| bot( | |
| { | |
| pattern: 'rank', | |
| desc: 'Check your level', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const userCoins = {}; | |
| const shopItems = { "VIP Role": 50, "Custom Name": 100 }; | |
| bot( | |
| { | |
| pattern: 'shop', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { bot } = require('../lib'); | |
| bot( | |
| { | |
| pattern: 'fight ?(.*)', | |
| desc: 'Challenge someone to an anime-style battle!', |
NewerOlder