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

Update index.js

This commit is contained in:
MatteZ02 2019-07-10 13:13:24 +03:00
parent ad3a5c751d
commit ac55c4ec9f

View File

@ -5,7 +5,7 @@ const ytdl = require('ytdl-core');
const GOOGLE_API_KEY = (process.env.API_KEY)
const PREFIX = ('-')
const client = new Client({ disableEveryone: true });
const youtube = new YouTube('AIzaSyBPFfx6Kq2Nvn9lpB_M2T2Y6V2N-8K9Uvo');
const youtube = new YouTube(process.env.API_KEY);
const queue = new Map();
client.on('ready', () => {
client.user.setActivity('-help', { type: 'LISTENING' })
@ -376,4 +376,4 @@ function play(guild, song) {
serverQueue.textChannel.send(`:musical_note: Start playing: **${song.title}**`);
}
client.login('NTcyNDA1MTM1NjU4MTg4ODAw.XSW4cQ.i_Q6xGM6oIsqxs1oMnIazIcjRBY');
client.login(process.env.BOT_TOKEN);