mirror of https://github.com/vector-im/riot-web
Add the unflip slashcommand
Signed-off-by: Emmanouil Kampitakis <info+github@kampitakis.de>pull/21833/head
parent
98a1b7a2d8
commit
f4d3668214
|
@ -179,6 +179,19 @@ export const Commands = [
|
||||||
},
|
},
|
||||||
category: CommandCategories.messages,
|
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({
|
new Command({
|
||||||
command: 'lenny',
|
command: 'lenny',
|
||||||
args: '<message>',
|
args: '<message>',
|
||||||
|
|
Loading…
Reference in New Issue