thelounge/lib/models/msg.js

14 lines
221 B
JavaScript
Raw Normal View History

var _ = require("lodash");
var moment = require("moment");
module.exports = Msg;
function Msg(attr) {
_.merge(this, _.extend({
time: moment().format("HH:mm"),
2014-05-02 21:54:31 +00:00
type: "normal",
from: "",
text: "",
}, attr));
};