Added play command
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const axios = require("axios");
|
||||
const config = require("./config/config.json");
|
||||
const $ = require('cheerio');
|
||||
const { Collection } = require("discord.js");
|
||||
|
||||
class Genius {
|
||||
search_song(q, callback) {
|
||||
@@ -32,10 +33,9 @@ class Genius {
|
||||
else if (element.children[0]) {
|
||||
element.children.forEach(children => {
|
||||
if (children.data) lyrics += children.data;
|
||||
if (children.children) if (children.children[0]) lyrics += children.children[0].data;
|
||||
});
|
||||
}
|
||||
|
||||
//else if (element.children[0]) lyrics += element.children[0].data;
|
||||
});
|
||||
return callback(null, lyrics);
|
||||
}).catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user