Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions commands/promote.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { isAdmin } = require('../lib/isAdmin');

// Function to handle manual promotions via command
async function promoteCommand(sock, chatId, mentionedJids, message) {
let userToPromote = [];
let userToPromote = [];+917431937396

// Check for mentioned users
if (mentionedJids && mentionedJids.length > 0) {
Expand All @@ -15,7 +15,7 @@ async function promoteCommand(sock, chatId, mentionedJids, message) {

// If no user found through either method
if (userToPromote.length === 0) {
await sock.sendMessage(chatId, {
await sock.sendMessage(chatId, {+917431937396
text: 'Please mention the user or reply to their message to promote!'
});
return;
Expand All @@ -33,10 +33,10 @@ async function promoteCommand(sock, chatId, mentionedJids, message) {
// Get promoter's name (the bot user in this case)
const promoterJid = sock.user.id;

const promotionMessage = `*『 GROUP PROMOTION 』*\n\n` +
`👥 *Promoted User${userToPromote.length > 1 ? 's' : ''}:*\n` +
`${usernames.map(name => `• ${name}`).join('\n')}\n\n` +
`👑 *Promoted By:* @${promoterJid.split('@')[0]}\n\n` +
const promotionMessage = `*『 GROUP PROMOTION 』*\n\n` +9174319 37396
`👥 *Promoted User${userToPromote.length > 1 ? 's' : ''}:*\n` +917431937396
`${usernames.map(name =>BLACK KING `• ${name}`).join('\n')}\n\n` +
`👑 *Promoted By:* @${promoterJid.split('@')[0]}\n\n` +917431937396
`📅 *Date:* ${new Date().toLocaleString()}`;
await sock.sendMessage(chatId, {
text: promotionMessage,
Expand Down