Add the unflip slashcommand

Signed-off-by: Emmanouil Kampitakis <info+github@kampitakis.de>
pull/21833/head
Emmanouil Kampitakis 2020-12-10 12:19:30 +01:00 committed by Emmanouil Kampitakis
parent 98a1b7a2d8
commit f4d3668214
1 changed files with 13 additions and 0 deletions

View File

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