Skip to content

hymnk/postdata-to-slack-channel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postdata-to-slack-channel

Post the argument text to slack according to settings.json

事前準備

  1. Slack -> アプリを管理 -> カスタムインテグレーション からIncoming Webhookを選択
  2. [Slackに追加]を選択。投稿先チャンネルを選択してIncoming Webhookインテグレーションの追加を実施
  3. 表示されたWebhook URLをメモ。その他の設定は好みでカスタマイズ(投稿名、アイコン等)

System Requirement

  • Python3.8 or higher

QuickStart

  1. Run $ poetry install
  2. Edit settings.json.sample and Rename settings.json.sample -> settings.json
  3. Enable environment variables for poetry $ poetry shell
  4. Run $ python3 ./postdata-to-slack-channel/src/main.py "Text content you want to sent here"

Slack mention format.

notation mention
<!here> @here
<!channel> @channel
<@user_id> @ChiyodaTarou

ref: https://qiita.com/ryo-yamaoka/items/7677ee4486cf395ce9bc

TODO

  • Write the test code.
  • Write the logging code.

About

postdata-to-slack-channel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages