Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Update latest.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Nepgfurmixpro authored Oct 9, 2020
1 parent 67fe835 commit 6edf674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/commands/latest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Discord = require('discord.js');
const request = require('request');

module.exports.execute = async (client, message, args) => {
request('https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UCNmheQMf9sK1Axv3NCEhbSA&maxResults=1&q=%5BOinkcraft%5D&type=video&key=[REPLACE WITH YOUTUBE API KEY]', function (error, response, data) {
request('https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UCNmheQMf9sK1Axv3NCEhbSA&maxResults=1&q=%5BOinkcraft%5D&type=video&key=' + config.bot.integrations.youtube.key, function (error, response, data) {
response.setEncoding('utf8')
if (!error && response.statusCode == 200) {
let obj = JSON.parse(data)
Expand Down

0 comments on commit 6edf674

Please sign in to comment.