This file contains 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 Shadow = require("../Utilis/events"); | |
const {MessageType, GroupSettingChange} = require('@adiwajshing/baileys') | |
const got = require("got") | |
const axios = require('axios') | |
async function checkImAdmin(message, user = message.client.user.jid) { | |
var grup = await message.client.groupMetadata(message.jid); | |
var spark = grup['participants'].map((member) => { | |
if (member.jid.split("@")[0] == user.split("@")[0] && member.isAdmin) return true; else; return false; |
This file contains 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 Asena = require("../Utilis/events"); | |
const { forwardOrBroadCast } = require("../Utilis/groupmute"); | |
const { getBuffer } = require('../Utilis/download'); | |
const { parsedJid } = require("../Utilis/Misc"); | |
// chnage url for custom photo and change caption if | |
const url1 = 'https://i.imgur.com/3jvLdz5.jpeg' | |
const url2 = 'https://i.imgur.com/fIIvf40.jpeg' | |
Asena.addCommand( | |
{ pattern: 'mpr ?(.*)', fromMe: true, desc: "Forward replied msg." }, |