소스 검색

Update main.js

Markus-Rost 7 년 전
부모
커밋
dec2883c83
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -325,7 +325,7 @@ function cmd_eval(lang, msg, args, line) {
 				text = error.name + ': ' + error.message;
 			}
 		}
-		console.log( text );
+		console.log( text, {split:{maxLength:2000,prepend:'```js\n',append:'```'}} );
 		msg.channel.send( '```js\n' + text + '```' );
 	} else if ( msg.channel.type != 'text' || !pause[msg.guild.id] ) {
 		cmd_link(lang, msg, line.split(' ').slice(1).join(' '), lang.link, '');