You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Merge pull request #2660 from chr-1x/add-shrug-command
Add /shrug command
This commit is contained in:
@@ -70,6 +70,19 @@ function success(promise) {
|
||||
/* eslint-disable babel/no-invalid-this */
|
||||
|
||||
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({
|
||||
name: 'ddg',
|
||||
args: '<query>',
|
||||
|
||||
Reference in New Issue
Block a user