Explorar o código

forgot to remove the wc command from search

tarfeef101 %!s(int64=4) %!d(string=hai) anos
pai
achega
c4d4086338
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/viki.js

+ 1 - 1
src/viki.js

@@ -274,7 +274,7 @@ client.on('message', async msg =>
       args.splice(0, 1);
       var query = args.join(' '); // creates a single string of all args (the query)
       var path; // this will hold the filepaths from our query
-      exec(`beet ls ${type}:${query} | wc -l`, function (error, stdout, stderr)
+      exec(`beet ls ${type}:${query}`, function (error, stdout, stderr)
       {
         if (error)
         {