Skip to content
Snippets Groups Projects
Unverified Commit 088fd7d0 authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Move all ascii arts package into one

parent 78d0bebf
No related branches found
No related tags found
No related merge requests found
Package.describe({
name: 'rocketchat:slashcommands-tableflip',
name: 'rocketchat:slashcommands-asciiarts',
version: '0.0.1',
summary: 'Message pre-processor that will translate /tableflip and /unflip commands',
summary: 'Message pre-processor that will add ascii arts to messages',
git: ''
});
......@@ -14,6 +14,7 @@ Package.onUse(function(api) {
api.use('ecmascript');
api.addFiles('shrug.js', ['server', 'client']);
api.addFiles('tableflip.js', ['server', 'client']);
api.addFiles('unflip.js', ['server', 'client']);
});
/*
* Flip is a named function that will replace /flip commands
* @param {Object} message - The message object
*/
function Flip(command, params, item) {
if (command === 'flip') {
var msg;
msg = item;
msg.msg = params + ' (╯°□°)╯︵ ┻━┻';
Meteor.call('sendMessage', msg);
}
}
RocketChat.slashCommands.add('flip', Flip, {
description: 'Slash_Flip_Description',
params: 'your message (optional)'
});
Package.describe({
name: 'rocketchat:slashcommands-flip',
version: '0.0.1',
summary: 'Message pre-processor that will translate /flip commands',
git: ''
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use([
'rocketchat:lib'
]);
api.use('ecmascript');
api.addFiles('flip.js', ['server', 'client']);
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment