Add the tableflip slashcommand
Signed-off-by: Emmanouil Kampitakis <info+github@kampitakis.de>
This commit is contained in:
parent
6726b731e4
commit
98a1b7a2d8
1 changed files with 13 additions and 0 deletions
|
@ -166,6 +166,19 @@ export const Commands = [
|
|||
},
|
||||
category: CommandCategories.messages,
|
||||
}),
|
||||
new Command({
|
||||
command: 'tableflip',
|
||||
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>',
|
||||
|
|
Loading…
Reference in a new issue