Markus-Rost 6 роки тому
батько
коміт
7c3f60e60d
1 змінених файлів з 1 додано та 1 видалено
  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] ) {