Adds a renderMessage
callback to Rocket.chat that converts text inside [[double square brackets]] into clickable 'buttons'. When clicked, these buttons behave as follows:
[[message]]
will paste message into the current room[[message@recipient]]
will DM message to recipient (if that recipient is online)
This is ideal for allowing bots to present simple choices that require minimal interaction from the user.
This package contains both client and server side code. To use it under Rocket.chat, we recommend you create a file under your project root such as \common\commandwords.js that contains the following line:
import CommandWords from 'rocketchat-commandwords'