bot.exec: newline
This commit is contained in:
		
							parent
							
								
									49f4c9ad75
								
							
						
					
					
						commit
						a2c821b7e5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -120,7 +120,7 @@ exec.category = CATEGORY;
 | 
				
			||||||
exec.helpText = "Executes a command";
 | 
					exec.helpText = "Executes a command";
 | 
				
			||||||
exec.callback = async function (msg, line) {
 | 
					exec.callback = async function (msg, line) {
 | 
				
			||||||
  const proc = spawn(line);
 | 
					  const proc = spawn(line);
 | 
				
			||||||
  let out = `Spawned ${proc.pid}: \`${line}'`;
 | 
					  let out = `Spawned ${proc.pid}: \`${line}'\n`;
 | 
				
			||||||
  proc.stdout.on("data", (data) => {
 | 
					  proc.stdout.on("data", (data) => {
 | 
				
			||||||
    out += data + "\n";
 | 
					    out += data + "\n";
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue