Added the /html command
This command lets you send html messages through riot. This is incredibly useful for doing advanced formatting not supported by markdown and lets riot support even more html tags. Signed-off-by: Waylon Cude <waylon.cude@finzdani.net>
This commit is contained in:
parent
7bdd22ae03
commit
dd4331cd18
1 changed files with 9 additions and 0 deletions
|
@ -128,6 +128,15 @@ export const CommandMap = {
|
||||||
},
|
},
|
||||||
category: CommandCategories.messages,
|
category: CommandCategories.messages,
|
||||||
}),
|
}),
|
||||||
|
html: new Command({
|
||||||
|
name: 'html',
|
||||||
|
args: '<message>',
|
||||||
|
description: _td('Sends a message as html, without interpreting it as markdown'),
|
||||||
|
runFn: function(roomId, messages) {
|
||||||
|
return success(MatrixClientPeg.get().sendHtmlMessage(roomId, messages, messages));
|
||||||
|
},
|
||||||
|
category: CommandCategories.messages,
|
||||||
|
}),
|
||||||
ddg: new Command({
|
ddg: new Command({
|
||||||
name: 'ddg',
|
name: 'ddg',
|
||||||
args: '<query>',
|
args: '<query>',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue