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-slashcommand-asc.../lenny.js

18 lines
436 B

/*
* Lenny is a named function that will replace /lenny commands
* @param {Object} message - The message object
*/
function LennyFace(command, params, item) {
if (command === 'lennyface') {
const msg = item;
msg.msg = `${ params } ( ͡° ͜ʖ ͡°)`;
Meteor.call('sendMessage', msg);
}
}
RocketChat.slashCommands.add('lennyface', LennyFace, {
description: 'Slash_LennyFace_Description',
params: 'your_message_optional'
});