Git Product home page Git Product logo

serverless-chatbot-demo's Introduction

serverless-chatbot-demo

This is a demo serverless bot which gives excuses.

Demo

Try the bot here ๐Ÿค– : t.me/serverlessdemo_bot

Prerequisites

  1. Node.js v6.5.0 or later.
  2. Serverless CLI v1.9.0 or later. You can run npm install -g serverless to install it.
  3. An AWS account. If you don't already have one, you can sign up for a free trial that includes 1 million free Lambda requests per month.
  4. Set-up your Provider Credentials.

Run

  1. Clone the repository by using this link :
$ git clone https://github.com/vaibhavsingh97/serverless-chatbot-demo
  1. Go to serverless-chatbot-demo/
$ cd serverless-chatbot-demo/
  1. Get a bot from Telegram, sending this message to @BotFather
$ /newbot
  1. Put the token received into a file called serverless.env.yml, like this
$ cat secrets.env.yml
TELEGRAM_TOKEN: <your_token>
  1. Deploy it
$ serverless deploy
  1. With the URL returned in the output, configure the Webhook
$ curl -X POST https://<your_url>.amazonaws.com/dev/set_webhook
  1. With the URL returned in the output, check the Webhook is successfully set or not
$ curl -X POST https://<your_url>.amazonaws.com/dev/get_webhook_info

It should output the above URL returned in the output

Now, you can ask bot to get new excuses ๐Ÿ˜‰

serverless-chatbot-demo's People

Contributors

vaibhavsingh97 avatar

Watchers

James Cloos avatar  avatar

Forkers

fossabot

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.