UNPKG

zimbot-v4

Version:

Multi device wa bot created by Zim Bot Inc.

44 lines (37 loc) 1.4 kB
// ⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈⧈ //▮ZIM BOT INC 2022 ®️ALL RIGHTS RESERVED //▮ //▮FORK AND DON'T FORGET TO GIVE A STAR //▮ //▮ZimBotInc SOFTWARE IS UNDER UZ COPYRIGHT //▮ //▮REPORT ABUSE OF ZimBotInc SOFTWARE EMAIL US //▮reinhardtuna@mail.uk //▮WHATSAPP US : +44 7441 437150 //▮YOUTUBE CHANNELL: https://youtube.com/c/DRIPSOFC //▮ //╰▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ // //┏━━━━━━━━━━━━━━━━━━━━━━━━━ //┃ZimBotInc SOFTWARE INCLUDES //┃SOME ENCRYPTED FILES //┃ //┃THANKS FOR CHOOSING ZIMBOT //┃THANKS TO DIKA ARDNT //┗━━━━━━━━━━━━━━━━━━━━━━━━━ // const cheerio = require('cheerio') const axios = require('axios') const lirikLagu = async (query) => { const res = await axios.get(`https://www.musixmatch.com/search/${query}`) const sup = cheerio.load(res.data) const hasil = [] const b = sup('#site').find('div > div > div > div > ul > li:nth-child(1) > div > div > div') let link = `https://www.musixmatch.com` + sup(b).find('h2 > a').attr('href') const des = await axios.get(link) const soup = cheerio.load(des.data) const result = soup('#site').find('.mxm-lyrics__content > .lyrics__content__ok').text() hasil.push({ result}) return hasil } module.exports = { lirikLagu }