/*jslint node: true*/

var pluginTime = function () { };

pluginTime.prototype = {
	name  : '报时',
	ver   : '1.0',
	author: 'Jixun',
	desc  : '回应指令 time',
	load: function () {
		this.regEvent ('msg-cmd-time', function (next, reply, msg, args) {
			return reply('当前服务器时间: ' + (new Date()).toLocaleFormat());
		});
	},
	unload: function () {
		// 沒有需要 owo
	}
};

module.exports = pluginTime;
/*jslint node: true*/

var pluginTime = function () { };

pluginTime.prototype = {
	name  : '报时',
	ver   : '1.0',
	author: 'Jixun',
	desc  : '回应指令 time',
	load: function () {
		this.regEvent ('msg-cmd-time', function (next, reply, msg, args) {
			return reply('当前服务器时间: ' + (new Date()).toLocaleString());
		});
	},
	unload: function () {
		// 沒有需要 owo
	}
};

module.exports = pluginTime;
Fix time plugin crash, close #15