Skip to content

Instantly share code, notes, and snippets.

@phaticusthiccy
Created January 23, 2021 13:47
Show Gist options
  • Select an option

  • Save phaticusthiccy/f12e0bb8ec8ad84ed7144c412db045a9 to your computer and use it in GitHub Desktop.

Select an option

Save phaticusthiccy/f12e0bb8ec8ad84ed7144c412db045a9 to your computer and use it in GitHub Desktop.
/* Codded by @phaticusthiccy
Telegram: t.me/phaticusthiccy
Instagram: www.instagram.com/kyrie.baran
*/
const Asena = require('../events');
const {MessageType, MessageOptions, Mimetype} = require('@adiwajshing/baileys');
const fs = require('fs');
const ffmpeg = require('fluent-ffmpeg');
const {execFile} = require('child_process');
const cwebp = require('cwebp-bin');
Asena.addCommand({pattern: 'vef ?(.*)', fromMe: true}, (async (message, match) => {
if (match[1] === 'a') {
return await message.sendMessage('Efekt ismi gir!');
} else if (match[1] === 'test') {
await message.client.sendMessage(message.jid, { url: 'https://dosya.co/0rm777qsgge7/jamaisvu.34-20200723-0002.mp3.html' }, MessageType.audio, { mimetype: Mimetype.mp4Audio, ptt: true });
} else {
await message.sendMessage('Efekt ismi gir!');
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment