slack-thread-stopper

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

slack-thread-stopper

利用イメージ

スレッド利用を非推奨にする Slack Bot です。この Bot がいるチャンネルではスレッドを利用した場合に非推奨であると警告されます。

Requirement

  • Go 1.14+
  • Slack

Setup

Slack のソケットモードを利用しています。

環境変数にて、 Slack の Token が 2 種類、必要です。

  • SLACK_BOT_TOKEN: xoxb- から始まる Bot トークン
  • SLACK_APP_TOKEN: xapp- から始まる App トークン

.env ファイルが利用できます。 .env.sample をコピーしてご利用ください。

How to install in your workspace

(2021/2/19 時点での情報です)

  1. ここ からSlack App をワークスペースに作成
  2. 左メニュー "Socket Mode" へ、"Enable Socket Mode" をオンに "Token Name" は適当につけて Scope はそのままで Generate 発行される Token をコピー (これが SLACK_APP_TOKEN)
  3. 左メニュー "Event Subscriptions" へ、 "Enable Events" をオンに Subscribe to bot events 内で "Add Bot User Event" を押し、 "message.channels" を追加
  4. 左メニュー "OAuth & Permissions" へ Scopes 内で "Add an OAuth Scope" を押し、 "chat:write" を追加
  5. 左メニュー "App Home" へ、 App の見た目を整える 主に "App Display Name" など
  6. 左メニュー "Install App" へ、 ワークスペースにインストール
  7. 左メニュー "Install App" へ、 もう一度 "Bot User OAuth Access Token" をコピー (これが SLACK_BOT_TOKEN)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL