mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
Add safeSearch to YouTube
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "113.20.1",
|
||||
"version": "113.20.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user