Integrate a dozen messaging platforms in 5 minutes.

Issam Hakimi
Moved to /broid
2 min readJan 25, 2017

--

The task of making your bot or application available on a dozen of platforms can be long and tedious.

Broid allows you to do this very quickly.

Sign in on all the platforms you want to implement

Discord, Messenger, Slack, Twitter etc..

Create an nodeJS project


$ mkdir mynewapp
$ cd mynewapp && npm init

Add the libraries


$ npm i --save broid-twitter \
broid-slack \
broid-twitter \
broid-viber \
broid-line \
broid-kik \
broid-flowdock \
broid-callr \
broid-twilio \
broid-skype \
broid-discord \
broid-messenger \
broid-telegram \
rxjs \
ramda

Connect your application

Each Broid integration provides you an observable, the first part of the code can look like:

Now your application can connect to all messaging platforms.

Listen to incoming messages

Really simple:

At this point, your application can receive all messages coming from theses platforms.

Respond to an hello world message

Next we can handle a greeting in your application by responding only to a hello world message.

Easy?

You can find the code of this tutorial here.

Broid Parsers is an open source project providing a suite of Activity Streams 2 libraries for unified communications among a vast number of communication platforms.

Broid wouldn’t be where it is now without contributions by the community. Please consider forking Broid to improve, enhance or fix issues. If you feel like the community will benefit from your fork, please open a pull request on the corresponding repo.

Learn more about Broid’s mission in our Medium article “Hello Word

--

--

Issam Hakimi
Moved to /broid

Founder of Broid. OpenSource contributor, Security Consultant and Social Engineering Specialist.