ytakaya / arXiv-notification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slack botの作成

ytakaya opened this issue · comments

概要

新しいslack appの仕様でbotの作成、認証ができるようにする

参考

https://api.slack.com/authentication

  • slack Appの作成
  • scopeの追加
  • workspace, channelへの招待
    をしたあとに、
curl -F token=<token> -F channel=<channel> -F text=<message> https://slack.com/api/chat.postMessage

でメッセージを送れるようになった

チャンネルへの招待は設定ファイルから自動でできるようにしたい

参考

https://api.slack.com/authentication/basics

  • @slack/web-apiを使ってメッセージを送れるようになった。

参考

https://www.npmjs.com/package/@slack/web-api