From ac55c4ec9f348c853d1aec450e8f1fa0542fefd1 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Wed, 10 Jul 2019 13:13:24 +0300 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8e69b826..3b9d4323 100644 --- a/index.js +++ b/index.js @@ -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);