mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-07 01:20:48 +00:00
Update 3.5
This commit is contained in:
@ -43,9 +43,7 @@ module.exports = {
|
||||
if (!voiceChannel.speakable)
|
||||
return msg.channel.send(client.messages.noPermsSpeak);
|
||||
if (ytdl.validateURL(url)) {
|
||||
const song = await ytdl.getInfo(url);
|
||||
const resource = {
|
||||
title: song.title,
|
||||
url: url
|
||||
}
|
||||
client.funcs.handleVideo(
|
||||
@ -53,7 +51,7 @@ module.exports = {
|
||||
msg,
|
||||
voiceChannel,
|
||||
client,
|
||||
true,
|
||||
false,
|
||||
"ytdl"
|
||||
);
|
||||
} else if (url.match(/^https?:\/\/(open.spotify.com|spotify.com)(.*)$/)) {
|
||||
|
Reference in New Issue
Block a user