1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 08:10:18 +00:00

Update play.js

This commit is contained in:
Matte 2020-03-19 20:25:38 +02:00 committed by GitHub
parent 514bb9b83e
commit 262917d623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,7 @@ module.exports = {
var video = await youtube.getVideoByID(videos[0].id); var video = await youtube.getVideoByID(videos[0].id);
} catch (err) { } catch (err) {
console.error(err); console.error(err);
client.debug_channel.send(err);
if (err.code === 403) { if (err.code === 403) {
if (client.config.api_key === client.config.api_key) { if (client.config.api_key === client.config.api_key) {
client.config.api_key = client.config.api_key2; client.config.api_key = client.config.api_key2;