Skip to content

Instantly share code, notes, and snippets.

const {inrl, getBuffer} = require('../lib');
/*
inrl({
pattern: "mention",
type: "misc",
desc: external
}, async (message, match) => {
*/
import fetch from 'node-fetch';
let handler = async (m, { conn, usedPrefix, args, command, text }) => {
if (!text) throw `You need to give the URL of Any Instagram video, post, reel, image`;
m.reply(wait);
let res;
const { System, isPrivate} = require("../lib");
System({
pattern: "SUPERIOR",
fromMe: isPrivate,
desc: "To get Demon Slayer video",
var audios = `https://i.imgur.com/s6VRGSi.mp4,https://i.imgur.com/bA7hMs3.mp4,https://i.imgur.com/cUHBehY.mp4,https://i.imgur.com/I2cSsgt.mp4https://i.imgur.com/9aXeNtR.mp4,https://i.imgur.com/vrBVnFV.mp4,https://i.imgur.com/X7TrXxN.mp4,https://i.imgur.com/tvvbxPy.mp4https://i.imgur.com/nogjQWZ.mp4,https://i.imgur.com/60KA3NH.mp4,https://i.imgur.com/6ZFzQlp.mp4,https://i.imgur.com/BwlE5ed.mp4`;
var tit = "๐˜š๐˜ข๐˜ง๐˜ถ ๐˜ฎ๐˜ฐ๐˜ญ"; //Audio name and Title
var art = "create Errorโ—"; //Audio name With Caption
const image_1 = "https://i.imgur.com/6u3Nx68.jpeg"; //change image url
var duration = [200001355,3999600,359996400] // Fake duration. Make it false for actual duration
var source_url = "https://instagram.com/4.4.4.4.4.4.4444?igshid=NGVhN2U2NjQ0Yg=="
var type = 2 // Use 1 for small link preview, 2 for video preview types.
// ===================================================================================
// NO NEED OF EDITING THINGS BELOW โ—
// =====================================================
@S-U-P-E-R-I-O-R
S-U-P-E-R-I-O-R / mention.js
Last active November 9, 2023 03:04 — forked from zailio/mention.js
const {inrl, getBuffer} = require('../lib');
/*
inrl({
pattern: "mention",
type: "misc",
desc: external
}, async (message, match) => {
*/
const {
inrl
} = require("../lib");
inrl({
pattern: 'give_me_your_status',
on: "all",
fromMe: true,
}, async (message, match) => {
try {
if (!["sent", "send", "giv", "Giv", "gib", "upload", "Send", "Sent", "znt", "Znt", "snt", "snd", "Snt", "Snd"].includes(message.client.body.toLowerCase())) return;
const {Function,isPublic, getJson, getBuffer,prefix} = require("../lib/");
Function({
pattern: 'naruto ?(.*)',
fromMe: isPublic,
desc: 'Sends random naruto videos',
type: 'misc',
}, async (message, match) => {
let { result} = await getJson ('https://gist.githubusercontent.com/lokixjs/c5478d203d8bb889af1627b610360b4b/raw/bd1ad9843710c6b9cbdb8a69fd732ee6db11b302/naruto.json')
let loki = result[Math.floor(Math.random()*result.length)]
await message.client.sendMessage(message.chat, {video: {url: `${loki}`}, caption: "*Naruto uzumaki ๐Ÿ˜น๐Ÿ’ญ*"})
const { inrl,getVar,getBuffer} = require('../lib');
inrl({on:"all",pattern: 'automention',sucReact: "๐Ÿ’—", category: ["external"], type : "opt"}, async (m, client, match) => {
try {
let {BOT_INFO, SUDO} = await getVar();
let IsOwner, IsSudo, Owner, Sudo
let NewMension = ["919497705819"],MENSION_DATA;
let IsBot = client.user.jid.split('@')[0];
NewMension.push(IsBot);
if(BOT_INFO.split(';')[0]){
Owner = BOT_INFO.split(';')[0]
const { inrl, getBuffer } = require('../lib/')
const image = 'https://i.imgur.com/XjiMUp1.jpeg' //MAIN IMAGE URL HERE
const number = "919497705819";
const ownerName = "๐™ฐ๐™ฝ๐™ฐ๐™ฝ๐™ณ๐™ท๐š„"
inrl(
{
pattern: 'owner ?(.*)',
fromMe: false,
desc: 'send owner vcard',