buddy

node MVC discord bot
Log | Files | Refs | README

commit be4c557efe9ca5fed714a219c5bd9d3f092243c2
parent 6a0ca4fa7ff5edd1c5ccd1e2898363c0f1553037
Author: underd0g1 <hide4@comcast.net>
Date:   Thu, 29 Oct 2020 19:48:52 -0400

enabled multi args

Diffstat:
Mlib/3party.js | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lib/3party.js b/lib/3party.js @@ -111,14 +111,20 @@ console.log("index 0 " + arguements[0]); } const ytresults =async (arguements, message) => { + let args = "" + for( var i=0; i < arguements.length; i++){ + args += arguements[i]+" "; + } + console.log(args); options ={ - q: arguements[0], + q: args, part: "snippet", type: "video" } let result = await ytcall(config.token.youtubekey,options); var link = ("url: " + "https://youtube.com/watch?v=" + result.items[0].id.videoId); console.log(link); + console.log(args); return link; }