/subtitle.js Secret
Last active
December 9, 2022 06:46
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 { MessageType } = require("@adiwajshing/baileys"); | |
const { getJson, getBuffer } = require("../Utilis/download") | |
Asena.addCommand( { pattern: 'subtitle ?(.*)', fromMe: true, desc: "Show Subtitle." }, async (message, match) => { | |
if(match == '') return await message.sendMessage('*Give me a movie name*') | |
let { result } = await getJson(`https://untitled-3lmot7du2tk1.runkit.sh/subtitle?name=${match}`) | |
let { buffer, mime, name } = await getBuffer(result) | |
return await message.sendMessage(buffer, {mimetype: mime, filename: name}, MessageType.document) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment