GithubHelp home page GithubHelp logo

routine-tokimi's Introduction

LINE bot ときみ

how to use

  • build docker image
$ docker-compose build

docker-compose up

Run containers.

  • node container which serves LINE bot webhook endpoints.
  • postgresql container

And you can see "TOKIMI is AWAKE" at http://localhost:8080/test.

docker-compose run

  • docker-compose run [--rm] node version to see the node version
  • docker-compose run [--rm] node shell to run bash
  • docker-compose run [--rm] node migrate to migrate
  • docker-compose run [--rm] node rollback to rollback the previous migration

How to create a model

To create a new model, exec bash in container first.

$ docker-compose run --rm node shell

Then, you can run sequelize-cli.

$ `npm bin`/sequelize model:create --name Task --attributes 'userId:string taskName:string'

Send a dummy message

Run test-postreq.sh in host, and you can see error log in docker console.

routine-tokimi's People

Contributors

hkdnet avatar jumtech avatar

Watchers

 avatar

Forkers

hkdnet

routine-tokimi's Issues

ユーザーの発言に応じて、返答を変える

  • /^と$/ or /登録/
    • 「新しく登録するルーチン名を入力してね」
  • /やる/
    • 「["やる"までの文字列]のルーチンを始めるんだね!頑張ろう!」
  • /みる/ or /見る/
    • 「["みる"までの文字列]のルーチンに登録されているタスクは、こんな感じだよー」

複数メッセージの送信に対応

  • 複数のメッセージを同時に送れるようにする
  • というか、メッセージ送信をtextの配列を引数とする関数として切り出す

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.