The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/rocketchat-slashcommands-me/me.js

18 lines
404 B

/*
* Me is a named function that will replace /me commands
* @param {Object} message - The message object
*/
RocketChat.slashCommands.add('me', function Me(command, params, item) {
if (command !== 'me') {
return;
}
if (_.trim(params)) {
const msg = item;
msg.msg = `_${ params }_`;
Meteor.call('sendMessage', msg);
}
}, {
description: 'Displays_action_text',
params: 'your_message'
});