misc.wolfram: join args

This commit is contained in:
Cynthia Foxwell 2022-11-30 12:49:03 -07:00
parent 295a04a4fa
commit 9c2fb5f1f6
1 changed files with 2 additions and 1 deletions

View File

@ -76,8 +76,9 @@ wolfram.category = CATEGORY;
wolfram.helpText = "Wolfram Alpha";
wolfram.usage = "<-v> [query]";
wolfram.addAlias("wa");
wolfram.callback = async function (msg, line, [query], {verbose, v}) {
wolfram.callback = async function (msg, line, args, {verbose, v}) {
const _verbose = verbose ?? v;
const query = args.join(" ");
const req = await fetch(
`http://api.wolframalpha.com/v2/query?input=${encodeURIComponent(