use invidious for music instead of youtube

This commit is contained in:
Lukáš H 2020-06-06 10:37:13 +02:00
parent a155b7dde7
commit de956b5197
No known key found for this signature in database
GPG key ID: 52AED802C323B705
2 changed files with 2 additions and 1 deletions

View file

@ -23,6 +23,7 @@
"to-zalgo": "^1.0.1", "to-zalgo": "^1.0.1",
"urban": "^0.3.2", "urban": "^0.3.2",
"weather-js": "^2.0.0", "weather-js": "^2.0.0",
"ytdl-core": "github:FLGX06/node-ytdl-core#invidious",
"ytdl-core-discord": "github:amishshah/ytdl-core-discord" "ytdl-core-discord": "github:amishshah/ytdl-core-discord"
}, },
"devDependencies": {}, "devDependencies": {},

View file

@ -37,7 +37,7 @@ exports.getGuild = function (id) {
} }
exports.getLinkFromID = function (id) { exports.getLinkFromID = function (id) {
return 'https://www.youtube.com/watch?v=' + id return 'https://invidio.us/watch?v=' + id
} }
exports.getVideoByQuery = async function (client, query, message) { exports.getVideoByQuery = async function (client, query, message) {