Code Monkey home page Code Monkey logo

nondenbot's Introduction

nondenBot

概要

大学を卒業して意識して会う場を作りたいなぁということで定期的に「あそばん?」ってお誘いしてくれるbotを作りました。それでお互いの近況報告したり云々できるといいねぇ。

暇な人が集まって遊ぼーぜくらいのノリで集まるきっかけ作りです。社会人になって半年、いくらご時世があれだったとはいえ、連絡すらあんまりとってなかった感あるのできっかけ作りとして作った!

ガルパンはこの限りではない。映画が公開される情報があったらさっさと予定抑えたいねぇ。

メインは関東にいる人用になってしまってる感はあるけど、福岡勢もみんなとの会話のきっかけにしたり、福岡組で集まったりするきっかけになればと思ってる。あとは、帰省タイミングの調整にも使えるからね。

定期実行される job

functions:
  tokyo-cron:
    handler: handler.tokyo_cron
    events:
    - schedule: cron(0 20 20 1-12/1 ? *)
  year-end:
    handler: handler.year_end
    events:
    - schedule: cron(0 20 20 12 ? *)
  obon:
    handler: handler.obon
    events:
    - schedule: cron(0 20 10 8 ? *)

  • 関東組定期開催 → 偶数月 第一土曜日(奇数月の 20 日に通知)
  • お盆 → 毎年 8月10日に通知
  • お正月 → 毎年 12月20日に通知

時間は全項目共通で 20 時です。(きっと)お仕事終わりに通知が来るくらいに設定しました。お盆とかお正月の10日前くらいにだーっと調整する感じにしてるけどご意見あればぜひ!!!(PRでもええんやで)

開発前の事前準備

Python のパッケージ管理ツールとして poetry をインストールしてください。

使い方

こういうところを見てチャンネルなどなどを作成する。 Messaging API を使っております。

$ git clone [email protected]:nkchan/nondenBot.git
$ cd nondenBot
$ poetry install

poetry install によって .venv 以下に Python の仮想環境ができます。 VSCode / PyCharm などの Python IDE 機能を持つエディタを使っている場合、 .venv の中の Python をインタープリタに指定してください。

これで開発して Pull-Request をお願いします。あと PR は lint 通ってからマージお願いします。

もし linter に怒られた場合、次のコマンドでフォーマッタを実行して修正するなどしてください:

$ poetry run pysen run format

技術的な話

FaaS でサクッとやってます。

ToDo

  • LINE の投稿に失敗したら SMS が飛んでくる
  • みんなの知ってる美味しいお店教えてくれる

お願い

エラーハンドリングなどなどしてない、雑なコードなので機能追加、リファクタの PR お待ちしてますー。

nondenbot's People

Contributors

nkchan avatar

Stargazers

Riku avatar

Watchers

 avatar

nondenbot's Issues

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.