No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
.gitignore
README.md
handler.py
package-lock.json
requirements.py
requirements.txt
serverless.yml

README.md

No Server November: Nov 12, AnimalBot & Nov 19, Slack bot

This is my challange for https://serverless.com/blog/no-server-november-challenge/, Nov 12 AnimalBot & Nov 19 Slack bot.

If you mention to the bot with image URL, the bot recommend a movie related to the image.

screen

System overview

screen

Project setup

Requirements

  • Python 3.6
  • Serverless framework 1.32.0
    • serverless-python-requirements

compile & deploy

git clone https://github.com/jagijagijag1/animal-recog-slack-bot
cd animal-recog-slack-bot

Describe your Slack tokens & The Movie DB token info to environment clause on serverless.yml.

...
functions:
  hello:
    handler: handler.main
    events:
      - http:
          path: /
          method: POST
    environment:
      OAUTH_TOKEN: <your-token>
      BOT_TOKEN: <your-token>
      MOVIE_DB_API_TOKEN: <your-token>
    timeout: 20

Then, run the following.

sls deploy -v