Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add the unflip slashcommand
Browse files Browse the repository at this point in the history
Signed-off-by: Emmanouil Kampitakis <[email protected]>
  • Loading branch information
Emmanouil Kampitakis authored and madonius committed Dec 10, 2020
1 parent 6fa0898 commit e9e9e90
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/SlashCommands.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>',
Expand Down

0 comments on commit e9e9e90

Please sign in to comment.