fix exec formatting
This commit is contained in:
		
							parent
							
								
									52ba089e43
								
							
						
					
					
						commit
						0fe3a9ddac
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -17,7 +17,7 @@ class ExecCommand extends Command {
 | 
				
			||||||
      const execed = await exec(code);
 | 
					      const execed = await exec(code);
 | 
				
			||||||
      if (execed.stderr) return `${await clean(execed.stderr)}`;
 | 
					      if (execed.stderr) return `${await clean(execed.stderr)}`;
 | 
				
			||||||
      const cleaned = await clean(execed.stdout);
 | 
					      const cleaned = await clean(execed.stdout);
 | 
				
			||||||
      const sendString = `\`\`\`bash\n${cleaned}\n\`\`\``;
 | 
					      const sendString = `${cleaned}`;
 | 
				
			||||||
      if (sendString.length >= 2000) {
 | 
					      if (sendString.length >= 2000) {
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
          text: "The result was too large, so here it is as a file:",
 | 
					          text: "The result was too large, so here it is as a file:",
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,7 @@ class ExecCommand extends Command {
 | 
				
			||||||
        return sendString;
 | 
					        return sendString;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    } catch (err) {
 | 
					    } catch (err) {
 | 
				
			||||||
      return `\`ERROR\` \`\`\`xl\n${await clean(err)}\n\`\`\``;
 | 
					      return `\`ERROR\` ${await clean(err)}`;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue