1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-04 11:51:45 +03:00

add lenny face command

This commit is contained in:
dkanada
2020-08-29 20:29:43 +09:00
committed by GitHub
parent b1cc078543
commit bc9ea04118

View File

@@ -154,6 +154,19 @@ export const Commands = [
}, },
category: CommandCategories.messages, category: CommandCategories.messages,
}), }),
new Command({
command: 'lenny',
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));
},
category: CommandCategories.messages,
}),
new Command({ new Command({
command: 'plain', command: 'plain',
args: '<message>', args: '<message>',