mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 08:38:24 +01:00
Update 'src/lyrics.js'
This commit is contained in:
parent
6e8454109a
commit
29b7a53372
1 changed files with 1 additions and 8 deletions
|
@ -1,14 +1,7 @@
|
||||||
const fetch = require("node-fetch");
|
const fetch = require("node-fetch");
|
||||||
|
|
||||||
async function main(e = "", d = "") {
|
async function main(e = "", d = "") {
|
||||||
const lyrics = await fetch(
|
return "none"
|
||||||
`https://p.poketube.fun/api/lyrics?query=${e}`
|
|
||||||
).then((res) => res.json());
|
|
||||||
|
|
||||||
if (lyrics == undefined) lyrics = "Lyrics not found";
|
|
||||||
if (lyrics != undefined) {
|
|
||||||
return lyrics;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = main;
|
module.exports = main;
|
||||||
|
|
Loading…
Reference in a new issue