ramirez/src/modules/id.js

11 lines
311 B
JavaScript
Raw Normal View History

const threadUtils = require("../threadUtils");
module.exports = bot => {
const addInboxServerCommand = (...args) => threadUtils.addInboxServerCommand(bot, ...args);
addInboxServerCommand('id', async (msg, args, thread) => {
if (! thread) return;
thread.postSystemMessage(thread.user_id);
});
};