/plain command to bypass markdown conversion

This commit is contained in:
Bruno Windels 2019-09-02 17:44:31 +02:00
parent 5565eca0cb
commit 41ca54bb09
2 changed files with 10 additions and 1 deletions

View file

@ -118,7 +118,15 @@ export const CommandMap = {
},
category: CommandCategories.messages,
}),
plain: new Command({
name: 'plain',
args: '<message>',
description: _td('Sends a message as plain text, without interpreting it as markdown'),
runFn: function(roomId, messages) {
return success(MatrixClientPeg.get().sendTextMessage(roomId, messages));
},
category: CommandCategories.messages,
}),
ddg: new Command({
name: 'ddg',
args: '<query>',