Merge pull request #3381 from matrix-org/bwindels/plain-command
/plain command to bypass markdown conversion
This commit is contained in:
commit
9a409a7acc
2 changed files with 10 additions and 1 deletions
|
@ -118,7 +118,15 @@ export const CommandMap = {
|
||||||
},
|
},
|
||||||
category: CommandCategories.messages,
|
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({
|
ddg: new Command({
|
||||||
name: 'ddg',
|
name: 'ddg',
|
||||||
args: '<query>',
|
args: '<query>',
|
||||||
|
|
|
@ -141,6 +141,7 @@
|
||||||
"Other": "Other",
|
"Other": "Other",
|
||||||
"Usage": "Usage",
|
"Usage": "Usage",
|
||||||
"Prepends ¯\\_(ツ)_/¯ to a plain-text message": "Prepends ¯\\_(ツ)_/¯ to a plain-text message",
|
"Prepends ¯\\_(ツ)_/¯ to a plain-text message": "Prepends ¯\\_(ツ)_/¯ to a plain-text message",
|
||||||
|
"Sends a message as plain text, without interpreting it as markdown": "Sends a message as plain text, without interpreting it as markdown",
|
||||||
"Searches DuckDuckGo for results": "Searches DuckDuckGo for results",
|
"Searches DuckDuckGo for results": "Searches DuckDuckGo for results",
|
||||||
"/ddg is not a command": "/ddg is not a command",
|
"/ddg is not a command": "/ddg is not a command",
|
||||||
"To use it, just wait for autocomplete results to load and tab through them.": "To use it, just wait for autocomplete results to load and tab through them.",
|
"To use it, just wait for autocomplete results to load and tab through them.": "To use it, just wait for autocomplete results to load and tab through them.",
|
||||||
|
|
Loading…
Reference in a new issue