/lyrics.js Secret
Last active
May 11, 2022 05:20
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 { getJson } = require("../Utilis/download") | |
Asena.addCommand( { pattern: 'lyrics ?(.*)', fromMe: true, desc: "Lyrics." }, | |
async (message, match) => { | |
if(!match) return await message.sendMessage('Give me input') | |
let { status, result } = await getJson(`https://early-pie-production.up.railway.app/lyrics?name=${match}`) | |
if (!status) return await message.sendMessage(result) | |
return await message.sendMessage('```' + result + '```', { quoted: message.data }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment