/**
 * Development commands plugin
 * 
 * This houses the bot's development commands.
 * These commands should only be used if the operator knows what their doing.
 *
 * @license MIT license
 */
'use strict';

exports.commands = {
	js: 'eval',
	eval: function (target, room, user, cmd) {
		if (!target) return Chat.send(room, `Usage: ${Config.cmdchar}${cmd} [target]`);
		try {
			room.send('```' + eval(target) + '```');
		} catch (e) {
			room.send('```' + e.stack + '```');
		}
	},
	reload: 'hotpatch',
	hotpatch: function (target, room, user) {
		try {
			Chat.reload();
			Chat.send(room, 'Chat has been hotpatched successfully.');
		} catch (e) {
			Chat.send(room, `Failed to hotpatch chat:\n${e.stack}`);
		}
	},
};

@@ -374,33 +374,31 @@
 ry %7B%0A%09%09%09
-room
+Chat
 .send(
-'%60%60%60' +
+room,
  eval(ta
@@ -402,24 +402,16 @@
 (target)
- + '%60%60%60'
 );%0A%09%09%7D c
@@ -428,33 +428,31 @@
 %0A%09%09%09
-room
+Chat
 .send(
-'%60%60%60' +
+room,
  e.stack
  + '
@@ -451,16 +451,8 @@
 tack
- + '%60%60%60'
 );%0A%09

Make eval use Chat#send for replies