misc.wolfram: join args
This commit is contained in:
		
							parent
							
								
									295a04a4fa
								
							
						
					
					
						commit
						9c2fb5f1f6
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue