Markus-Rost před 6 roky
rodič
revize
7c3f60e60d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -383,7 +383,7 @@ function cmd_eval(lang, msg, args, line) {
 		} catch ( error ) {
 			var text = error.toString();
 		}
-		console.log( '--- EVAL START ---\n' + text + '\n--- EVAL END ---' );
+		console.log( '--- EVAL START ---\n- ' + text.replace( /\n/g, '\n- ' ) + '\n--- EVAL END ---' );
 		if ( text == 'Promise {\n  <pending>\n}' ) msg.reactEmoji('✅');
 		else msg.channel.send( '```js\n' + text + '\n```', {split:{prepend:'```js\n',append:'\n```'}} ).catch( err => console.log( '- ' + err ) );
 	} else if ( msg.channel.type != 'text' || !pause[msg.guild.id] ) {