Skip to content

Instantly share code, notes, and snippets.

@souravkl11
Last active June 30, 2023 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save souravkl11/8b7e77e85038f0dcf2e301b757f698c5 to your computer and use it in GitHub Desktop.
Save souravkl11/8b7e77e85038f0dcf2e301b757f698c5 to your computer and use it in GitHub Desktop.
// Plugin for raganork by souravkl11
var ra = require('../events');
var {MessageType, Mimetype} = require('@adiwajshing/baileys');
var {xv} = require('raganork-bot');
ra.addCommand({pattern: 'xsearch ?(.*)', fromMe: true, desc: 'nil' , dontAddCommandList: true }, async (m, q) => {
await m.client.sendMessage(m.jid, await xv(q[1]), MessageType.text, {quoted: m.data})})
ra.addCommand({pattern: 'xdownload ?(.*)', fromMe: true, desc: 'nil' , dontAddCommandList: true }, async (m, q) => {
await m.client.sendMessage(m.jid, await xv(q[1]), MessageType.video, {mimetype: Mimetype.mp4, quoted: m.data})});
@Devil-BoTT7
Copy link

Devil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment