Add safeSearch to YouTube

This commit is contained in:
Dragon Fire
2020-04-25 12:55:08 -04:00
parent 992746a673
commit cde4943561
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -40,6 +40,7 @@ module.exports = class YoutubeCommand extends Command {
type: 'video',
maxResults: 1,
q: query,
safeSearch: msg.channel.nsfw ? 'none' : 'strict',
key: GOOGLE_KEY
});
if (!body.items.length) return msg.say('Could not find any results.');
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "113.20.1",
"version": "113.20.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {