Minetrack/lib/message.js

7 lines
117 B
JavaScript
Raw Normal View History

2023-12-30 23:03:54 +00:00
module.exports = function MessageOf(name, data) {
return JSON.stringify({
message: name,
2023-12-30 23:03:54 +00:00
...data,
});
};