pull/9666/head
parent
f5155f7e42
commit
5e20988f15
@ -0,0 +1,18 @@ |
||||
/* |
||||
* Gimme is a named function that will replace /gimme commands |
||||
* @param {Object} message - The message object |
||||
*/ |
||||
|
||||
|
||||
function Gimme(command, params, item) { |
||||
if (command === 'gimme') { |
||||
const msg = item; |
||||
msg.msg = `༼ つ ◕_◕ ༽つ ${ params }`; |
||||
Meteor.call('sendMessage', msg); |
||||
} |
||||
} |
||||
|
||||
RocketChat.slashCommands.add('gimme', Gimme, { |
||||
description: 'Slash_Gimme_Description', |
||||
params: 'your_message_optional' |
||||
}); |
||||
@ -0,0 +1,20 @@ |
||||
Package.describe({ |
||||
name: 'rocketchat:slashcommands-asciiarts', |
||||
version: '0.0.1', |
||||
summary: 'Message pre-processor that will add ascii arts to messages', |
||||
git: '' |
||||
}); |
||||
|
||||
Package.onUse(function(api) { |
||||
api.use([ |
||||
'rocketchat:lib' |
||||
]); |
||||
|
||||
api.use('ecmascript'); |
||||
|
||||
api.addFiles('gimme.js', ['server', 'client']); |
||||
api.addFiles('lenny.js', ['server', 'client']); |
||||
api.addFiles('shrug.js', ['server', 'client']); |
||||
api.addFiles('tableflip.js', ['server', 'client']); |
||||
api.addFiles('unflip.js', ['server', 'client']); |
||||
}); |
||||
@ -0,0 +1,18 @@ |
||||
/* |
||||
* Shrug is a named function that will replace /shrug commands |
||||
* @param {Object} message - The message object |
||||
*/ |
||||
|
||||
|
||||
function Shrug(command, params, item) { |
||||
if (command === 'shrug') { |
||||
const msg = item; |
||||
msg.msg = `${ params } ¯\\_(ツ)_/¯`; |
||||
Meteor.call('sendMessage', msg); |
||||
} |
||||
} |
||||
|
||||
RocketChat.slashCommands.add('shrug', Shrug, { |
||||
description: 'Slash_Shrug_Description', |
||||
params: 'your_message_optional' |
||||
}); |
||||
@ -0,0 +1,18 @@ |
||||
/* |
||||
* Tableflip is a named function that will replace /Tableflip commands |
||||
* @param {Object} message - The message object |
||||
*/ |
||||
|
||||
|
||||
function Tableflip(command, params, item) { |
||||
if (command === 'tableflip') { |
||||
const msg = item; |
||||
msg.msg = `${ params } (╯°□°)╯︵ ┻━┻`; |
||||
Meteor.call('sendMessage', msg); |
||||
} |
||||
} |
||||
|
||||
RocketChat.slashCommands.add('tableflip', Tableflip, { |
||||
description: 'Slash_Tableflip_Description', |
||||
params: 'your_message_optional' |
||||
}); |
||||
@ -0,0 +1,18 @@ |
||||
/* |
||||
* Unflip is a named function that will replace /unflip commands |
||||
* @param {Object} message - The message object |
||||
*/ |
||||
|
||||
|
||||
function Unflip(command, params, item) { |
||||
if (command === 'unflip') { |
||||
const msg = item; |
||||
msg.msg = `${ params } ┬─┬ ノ( ゜-゜ノ)`; |
||||
Meteor.call('sendMessage', msg); |
||||
} |
||||
} |
||||
|
||||
RocketChat.slashCommands.add('unflip', Unflip, { |
||||
description: 'Slash_TableUnflip_Description', |
||||
params: 'your_message_optional' |
||||
}); |
||||
Loading…
Reference in new issue