1
0
Markus-Rost 7 жил өмнө
parent
commit
397bdc7f1d
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      main.js

+ 2 - 2
main.js

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