Slack アプリのデプロイが別のポッドでトリガーされた後、Slack アプリで、auth.test API 呼び出しの結果が予期せず Noneであるというエラーが発生し、Slack アプリを再度インストールする必要があります。
サンプルコードはこちら
oauth_settings = OAuthSettings(
client_id=os.environ.get('SLACK_CLIENT_ID'),
client_secret=os.environ.get('SLACK_CLIENT_SECRET'),
callback_options=callback_options,
scopes=["channels:read",
"chat:write",
"chat:write.public",
"commands",
"groups:read",
"im:history",
"team:read",
"users:read",
"users:read.email"]
)
app = App(
signing_secret=os.environ.get('SLACK_SIGNING_SECRET'),
installation_store=FileOAuthStateStore(expiration_seconds=600, base_dir="./data"),
oauth_settings=oauth_settings
)