Merge pull request #2660 from chr-1x/add-shrug-command
Add /shrug command
This commit is contained in:
commit
e8d7609199
2 changed files with 14 additions and 0 deletions
|
@ -70,6 +70,19 @@ function success(promise) {
|
||||||
/* eslint-disable babel/no-invalid-this */
|
/* eslint-disable babel/no-invalid-this */
|
||||||
|
|
||||||
export const CommandMap = {
|
export const CommandMap = {
|
||||||
|
shrug: new Command({
|
||||||
|
name: 'shrug',
|
||||||
|
args: '<message>',
|
||||||
|
description: _td('Prepends ¯\\_(ツ)_/¯ to a plain-text message'),
|
||||||
|
runFn: function(roomId, args) {
|
||||||
|
let message = '¯\\_(ツ)_/¯';
|
||||||
|
if (args) {
|
||||||
|
message = message + ' ' + args;
|
||||||
|
}
|
||||||
|
return success(MatrixClientPeg.get().sendTextMessage(roomId, message));
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
|
||||||
ddg: new Command({
|
ddg: new Command({
|
||||||
name: 'ddg',
|
name: 'ddg',
|
||||||
args: '<query>',
|
args: '<query>',
|
||||||
|
|
|
@ -261,6 +261,7 @@
|
||||||
"%(senderName)s placed a %(callType)s call.": "%(senderName)s placed a %(callType)s call.",
|
"%(senderName)s placed a %(callType)s call.": "%(senderName)s placed a %(callType)s call.",
|
||||||
"Please check your email and click on the link it contains. Once this is done, click continue.": "Please check your email and click on the link it contains. Once this is done, click continue.",
|
"Please check your email and click on the link it contains. Once this is done, click continue.": "Please check your email and click on the link it contains. Once this is done, click continue.",
|
||||||
"Power level must be positive integer.": "Power level must be positive integer.",
|
"Power level must be positive integer.": "Power level must be positive integer.",
|
||||||
|
"Prepends ¯\\_(ツ)_/¯ to a plain-text message": "Prepends ¯\\_(ツ)_/¯ to a plain-text message",
|
||||||
"Privacy warning": "Privacy warning",
|
"Privacy warning": "Privacy warning",
|
||||||
"Privileged Users": "Privileged Users",
|
"Privileged Users": "Privileged Users",
|
||||||
"Profile": "Profile",
|
"Profile": "Profile",
|
||||||
|
|
Loading…
Reference in a new issue