GitXplorerGitXplorer
v

serverless-chatbot-demo

public
0 stars
1 forks
1 issues

Commits

List of commits on branch master.
Verified
828dac35120c91f100fde56a536e4a68ef623f47

Added documentation

vvaibhavsingh97 committed 6 years ago
Verified
f4768320a98bbff9394eb05cece90e8a9fd2ed8c

chatbot demo done

vvaibhavsingh97 committed 6 years ago
Verified
217d5c89f187e07019f3738a7314021452be4351

inital commit

vvaibhavsingh97 committed 6 years ago
Verified
98ba26b52590de938b488b1c88ba27ed07e66b22

Initial commit

vvaibhavsingh97 committed 6 years ago

README

The README file for this repository.

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 😉