Add timestamp
This commit is contained in:
parent
cfc4335b44
commit
23af00e7ec
|
@ -17,6 +17,7 @@ const stringFormat = require('./string_format.js');
|
||||||
const series = require('async/series');
|
const series = require('async/series');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
|
const moment = require('moment');
|
||||||
|
|
||||||
exports.moduleInfo = {
|
exports.moduleInfo = {
|
||||||
name : 'Node Message',
|
name : 'Node Message',
|
||||||
|
@ -104,6 +105,7 @@ exports.getModule = class NodeMessageModule extends MenuModule {
|
||||||
fromRealName : this.client.user.properties.real_name,
|
fromRealName : this.client.user.properties.real_name,
|
||||||
fromNodeId : this.client.node,
|
fromNodeId : this.client.node,
|
||||||
message : message,
|
message : message,
|
||||||
|
timestamp : moment(),
|
||||||
};
|
};
|
||||||
|
|
||||||
const messageFormat =
|
const messageFormat =
|
||||||
|
|
Loading…
Reference in New Issue