Giter VIP home page Giter VIP logo

botbuilder-markdown's Introduction

Logo

botbuilder-markdown npm version CircleCI codecov Join the chat at https://gitter.im/suttna/botbuilder-markdown

⚠️ This is under development. If you want to help 🚀, please contact the Suttna team at [email protected]

Slack middleware for Microsoft BotBuilder.

This middleware was created at Suttna to tackle some of the limitations of BotFramework's current text parser.

Install

yarn add botbuilder-markdown

Usage

import * as restify from 'restify'
import { UniversalBot, IEvent, IIdentity } from "botbuilder"
import { ChatConnector } from "botbuilder"
import { markdownMiddleware } from "botbuilder-markdown"

const connector = new ChatConnector({
  appId: process.env.MICROSOFT_APP_ID,
  appPassword: process.env.MICROSOFT_APP_PASSWORD
})

const bot = new UniversalBot(connector)
const server = restify.createServer()

server.listen(3000, () => {
  console.log("Bot is listening...")
})

// You just need to add the middleware and then you will be able to send/receive messages with markdown
bot.use(markdownMiddleware)

bot.dialog('/', (session) => {
  session.endDialog('pong')
})

server.post('/api/messages', connector.listen())

Help

If you want to help on improving this package, please contact us at [email protected].

Contact

botbuilder-markdown's People

Contributors

bilby91 avatar gitter-badger avatar renovate-bot avatar renovate[bot] avatar santiagodoldan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gitter-badger

botbuilder-markdown's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency tslint to v6

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • botbuilder ^3.9.1
  • html-to-markdown 1.0.0
  • @types/jest 22.1.3
  • codecov 3.0.0
  • jest 22.3.0
  • ts-jest 22.0.4
  • tslint 5.9.1
  • typedoc 0.9.0
  • typescript 2.6.2

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Preset name not found within published preset config (monorepo:angularmaterial). Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.