Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

botmaster

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botmaster

Framework allowing developers to write bots that are agnostic with respect to the channel used by their users (messenger, telegram etc...)

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
96
increased by500%
Maintainers
1
Weekly downloads
 
Created
Source

Bot framework

This is a lightweight bot framework that can be used for creating bots on a variety of different platforms.

Then just:

npm install
npm start

You will need to set up the a bot on telegram. See this page:

https://core.telegram.org/bots for an intro; https://core.telegram.org/bots/api for all the doc. Then edit your telegramKey in api_integrations/telegram_api_integration.

For the facebook Messenger bot, follow this guide to set up the bot:

https://developers.facebook.com/docs/messenger-platform/quickstart Then edit the verifyToken and pageToken in api_integrations/facebook_messenger_api_integration.

Dealing with webhooks on local machine:

Simply install localtunnel on local machine

npm install -g localtunnel

Then run the localtunnel with a predetermined subdomain. e.g:

lt -p 3000 -s botmastersubdomain //for example

-l is for the localhost we want to point to. -p is the port and -s is the subdomain we want. In this case, your url will be: http://botmastersubdomain.localtunnel.me.

So if you specified messenger's webhook endpoint to, say, /messenger/webhook1234/, you will have to set up the webhook for your demo app at:

http://botmastersubdomain.localtunnel.me/messenger/webhook1234/

Keywords

FAQs

Package last updated on 21 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc