Skip to content

tsg-ut/slackbot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
api
 
 
 
 
 
 
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

slackbot

Test Coverage Status

Coverage Graph

TSGのSlackで動くSlackbotたち

自分がOWNERのコードの変更は直接masterにpushして構いません。 (CODEOWNERS参照)

環境構築

Prerequisites

  • Node.js Latest

セットアップ

  1. 開発環境をセットアップするディレクトリに移動しcloneする。
    cd ほげほげ
    git clone --recursive https://github.com/tsg-ut/slackbot.git
    cd slackbot
    • GitHub Desktop など、他の方法でcloneしても構いません。
  2. node-canvasの依存ライブラリをインストールする。
  3. 依存パッケージをインストールする
    npm install
  4. .env をテンプレートから作成し、編集する。
    cp .env.example .env
    vi .env
    • テンプレートに詳しい手順が記載されています。

実行

npm run dev

必要なBOTのみ実行する

npm run dev -- --only [bot id]

テスト実行

npm test

必要なテストのみ実行する

npm test -- [regex pattern]

デプロイ

自動デプロイです。deploy参照。

Licenses

このリポジトリでは以下のライブラリを使用しています。

  • Shogi Resource by muchonovski licensed under Creative Commons 表示-非営利 2.1 日本 License.
  • Hayaoshi SE by OtoLogic licensed under Creative Commons 表示 4.0 国際 License.