Skip to content

tsg-ut/slackbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4,148 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slackbot

Open in GitHub Codespaces

Test Coverage Status

Coverage Graph

TSGのSlackで動くSlackbotたち

環境構築

Prerequisites

  • Node.js v22.19.0

MacもしくはLinuxではasdfを使用してインストールすることをオススメします。

セットアップ

  1. 開発環境をセットアップするディレクトリに移動しcloneする。
    cd ほげほげ
    git clone --recursive https://github.com/tsg-ut/slackbot.git
    cd slackbot
    • GitHub Desktop など、他の方法でcloneしても構いません。
  2. node-gypでのビルドに必要なライブラリをインストールする。
  3. 依存パッケージをインストールする
    npm install
    • もしModuleNotFoundError: No module named 'distutils'というエラーが出た場合、setuptoolsをインストールする。
      • Mac (Homebrew) の例: brew install python-setuptools
  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.

About

TSGのSlackで動くSlackbotたち

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 36