aboutsummaryrefslogtreecommitdiff
path: root/src/commands/play.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-24 19:18:45 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-24 19:18:45 -0400
commitd790fdb71931eb3a37161335c8e334601efc9917 (patch)
treef023965bc9beb63f940c0c40e7de189f2c6db82e /src/commands/play.js
parent06c0f1af844d23c27d06f42502f5943a18a9004f (diff)
downloadAleeBot-d790fdb71931eb3a37161335c8e334601efc9917.tar.gz
AleeBot-d790fdb71931eb3a37161335c8e334601efc9917.tar.bz2
AleeBot-d790fdb71931eb3a37161335c8e334601efc9917.zip
stuff
Diffstat (limited to 'src/commands/play.js')
-rw-r--r--src/commands/play.js2
1 files changed, 1 insertions, 1 deletions
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)