botdown
The project's purpose let bot can reply message to any platform by Markdown format. So user can write code once, send to any where.
Usage
Install
npm i -g botdown
npm i botdown
Examples
Create message for line bot
const client = channelAccessToken: 'YOUR_CHANNEL_ACCESS_TOKEN' channelSecret: 'YOUR_CHANNEL_SECRET' // ignore how to get event, please refer line sdk document to get itclient
In FB, we call send API to send our message
{ // Construct the message body let request_body = "recipient": "id": sender_psid "message": response // Send the HTTP request to the Messenger Platform ;} // ignorelet message = // sender_psid you have to get from webhook_event.sender.id