Skip to content

Instantly share code, notes, and snippets.

@lyfe00011
Last active May 11, 2022 05:20
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