Giter Site home page Giter Site logo

doarakko / iyashi-edge Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 25.2 MB

"iyashi" is a slack bot that randomly returns the pictures of animals you posted. When you post a picture of an animal, it will be automatically classified and registered.

License: MIT License

TypeScript 100.00%
slack slack-bot cloudflare

iyashi-edge's Introduction

iyashi-edge

"iyashi" is a slack bot that randomly returns the pictures of animals you posted.

When you post a picture of an animal, it will be automatically classified and registered.

example

What is "iyashi"

"iyashi" is a Japanese word meaning "soothing" or "healing" mentally and physically.

We need "iyashi", let's get "iyashi"!

Requirements

  • Slack
  • Cloudflare
  • wrangler CLI
  • Microsoft Azure Custom Vision API

Supported animals

  • cat
    • にゃーん
    • ニャーン
  • chinchilla
    • チンチラ
    • ちんちら
  • dog
    • わんわん
    • ワンワン
  • hedgehog
    • ハリネズミ
    • はりねずみ
  • owl
    • フクロウ
    • ふくろう
    • ほーほー
    • ホーホー

Please create an issue if you have any animals you would like to see supported!

Usage

  1. Copy env file and enter your environment variables.

    cp .dev.vars.example .dev.vars
  2. Create database and tables

    npx wrangler d1 create iyashi
    npx wrangler d1 execute iyashi --file=./schema.sql
  3. Edit wrangler.toml

    [[d1_databases]]
    binding = "DB" # i.e. available in your Worker on env.DB
    database_name = "iyashi"
    database_id = "xxxx-yyyy-zzzz"
  4. Deploy to Cloudflare

    wrangler deploy
  5. Set environmental variables to Cloudflare

    wrangler secret put SLACK_BOT_TOKEN
    wrangler secret put SLACK_SIGNING_SECRET
    wrangler secret put ANIMAL_PREDICTION_API
    wrangler secret put ANIMAL_PREDICTION_API_KEY
    wrangler secret put IMAGE_UPLOADED_CHANNEL

iyashi-edge's People

Contributors

dependabot[bot] avatar doarakko avatar

Watchers

 avatar  avatar

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.