LoginSignup
0
0

More than 1 year has passed since last update.

WEBシステムの疎通確認をLambda+Slackでメンション飛ばす

Last updated at Posted at 2022-08-16

PythonでSlack通知を作る。
AWSのLambdaとかで通知をするときに、メンションつけたい時あるよね。
@channelじゃダメでを使うと良いよ。

NGなコード
message = "@channel 疎通できませんでした!"
request.post(message)
OKなコード
message = "<!channel> 疎通できませんでした!"
request.post(message)
チャンネル参加者すべて
@channel
<!channel>

アクティブな参加者すべて
@here
<!here>	

メンバーすべて
@everyone
<!everyone>	

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0