|
@@ -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] ) {
|