Git Product home page Git Product logo

gomimanbot's Introduction

gomi-man-bot

Gomi-man-bot retrieve duties from google calendar, assign users to them, and notify about it.

日本語ドキュメントはこちら

Usage

Send help to gomi-man-bot and you'll get discriptions about enable commands. The example procedure is following.

  1. Create duty on google calendar. That time, Please add prefix clean: to dutie's name.
  2. Save user to the app: save me as <B4|M1|M2>
  3. Set channel for notification: channel set <name>
  4. Assign users to duties: assign users (this procedure is automatically execute in the first day in the month)
  5. You'll get notification in the day before the assigned day through the specified channel!

Preparation

Prepare for Google API Authorization

First you need to get client secret and client id for google api authorization on slack bot.

  1. Through Google api console, create project, enable google calendar api, and get authorization information (client secret, client id)
  2. Create auth.json under a scripts directory
{
    "clientSecret": "your client secret",
    "clientId": "your client id"
}

Slackと連携させたHubotに毎朝今日の予定をお知らせしてもらう - Qiita

Deploy to Heroku

  1. Install Heroku toolbelt
  2. heroku login
  3. heroku create [app-name]
  4. heroku addons:create redistogo:nano
  5. Create slack integration, retrieve hubot slack token, and set it to app by heroku config:set HUBOT_SLACK_TOKEN=[your token]
  6. heroku config:set HUBOT_HEROKU_KEEPALIVE_URL=[your bot app url] (url is web_url in the result of heroku apps:info)
  7. git push heroku master

Slack で Hubot を使えるようにする - Qiita

Authorize through slack

  1. Throgh slack, send auth get url to gomi-man-bot and get url
  2. Access the url and retrieve authorization code (https://www.google.co.jp/?code=<your authorization code>&gws_rd=ssl)
  3. Get and store access token by auth with <code>

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.