Skip to content

Instantly share code, notes, and snippets.

@canuxBro
canuxBro / forwd.js
Last active September 23, 2024 20:59
script ownership goes to @lyfe00011
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." },
@canuxBro
canuxBro / shadow_pack.js
Last active December 24, 2021 03:25 — forked from spark-shadow/shadow_pack.js
Group subject & desc chanager
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;