mirror of
https://github.com/thelounge/thelounge
synced 2024-12-25 11:53:07 +00:00
13 lines
215 B
JavaScript
13 lines
215 B
JavaScript
var _ = require("lodash");
|
|
var moment = require("moment");
|
|
|
|
module.exports = Msg;
|
|
|
|
function Msg(attr) {
|
|
_.merge(this, _.extend({
|
|
time: moment().format("HH:mm"),
|
|
type: "",
|
|
from: "",
|
|
text: "",
|
|
}, attr));
|
|
};
|