From 2d986b7157db8457c87ef78735f8af0273e472bd Mon Sep 17 00:00:00 2001 From: ni-richard Date: Tue, 10 Sep 2019 17:29:38 +0200 Subject: [PATCH] Created message.send (markdown) --- message.send.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 message.send.md diff --git a/message.send.md b/message.send.md new file mode 100644 index 0000000..ea18ca9 --- /dev/null +++ b/message.send.md @@ -0,0 +1,28 @@ +* **Description**: Sends a message to the chat bot. +* **Subscribers**: [FrontendProxyHandler](https://github.com/avatao-content/baseimage-tutorial-framework/wiki/FrontendProxyHandler) + +```json +{ + "key": "message.send", + "intent": "control", + "scope": "websocket" +} +``` + +| Parameter | Type | Required | Description | +| ------------ |:--------:|:------------------:| --------------------------- | +| *message* | `string` | :heavy_check_mark: | Body of the message, should be Markdown compatible. | +| *originator* | `string` | | Name of the sender. | +| *wpm* | `number` | | Tunes typing speed based on words per minute. | +| *typing* | `boolean` | | Displays typing indicator when true. | + +*** + +**Example**: +```json +{ + "key": "message.send", + "originator": "Brian Kernighan", + "message": "hello, world" +} +``` \ No newline at end of file