Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
[11/25] Lyrics Command Added!
Browse files Browse the repository at this point in the history
  • Loading branch information
PMHStudio committed Nov 25, 2018
1 parent fe9d6e8 commit 391dde8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions muc/lyrics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
μBot v5.0 Command: Ping.
---------------------
PMH Studio / Proj- μBot | Smart & Cute Discord Bot_Mu~☆
Copyright (c) 2018. PMH Studio / PMH. ([email protected]) MIT Licensed.
* Requests Node.js & Discord.js
*/

const API = require("discord.js");

module.exports.run = async (mu, input, pars) => {
let songs = pars.join(" ").slice(22);
let { body } = await superagent
.get(`https://some-random-api.ml/lyrics?title=${songs}`);
let eLyrics = new API.RichEmbed()
.setColor(randomHexColor())
.setTitle(`Lyrics, HERE!`)
.setURL(body.links.genius)
.setDescription(`"${body.title}" -${body.author}`)
.addField(`${body.lyrics}`, "[Lyric End]")
.setThumbnail(`${body.thumbnail.genius}`)
.setFooter("Powered by some-random-api.ml");
input.channel.send(eLyrics);
}

module.exports.help = {
name: "ly",
description: "가사"
}

0 comments on commit 391dde8

Please sign in to comment.