From d790fdb71931eb3a37161335c8e334601efc9917 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Mar 2018 19:18:45 -0400 Subject: stuff --- src/commands/play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands') diff --git a/src/commands/play.js b/src/commands/play.js index 50911b9..2c7d0dd 100644 --- a/src/commands/play.js +++ b/src/commands/play.js @@ -3,7 +3,7 @@ module.exports.run = async (client, message, args) => { if (!message.member.voiceChannelID) return await message.channel.send('You are not in a voice channel'); const YouTube = require('simple-youtube-api'); const moment = require('moment'); - const youtube = new YouTube(process.env.GOOGLE); + const youtube = new YouTube(client.apikey); const url = args.join(' ').replace(/<(.+)>/g, '$1'); if (!url) return; await youtube.getVideo(url) -- cgit v1.2.3