We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc3284d commit a48c010Copy full SHA for a48c010
functions/billing/main.py
@@ -44,7 +44,7 @@
44
# See https://api.slack.com/docs/token-types#bot for more info
45
BOT_ACCESS_TOKEN = 'xxxx-111111111111-abcdefghidklmnopq'
46
47
-CHANNEL = 'general'
+CHANNEL_ID = 'C0XXXXXX'
48
49
slack_client = SlackClient(BOT_ACCESS_TOKEN)
50
@@ -56,11 +56,10 @@ def notify_slack(data, context):
56
notification_data = base64.b64decode(data['data']).decode('utf-8')
57
budget_notification_text = f'{notification_attrs}, {notification_data}'
58
59
- res = slack_client.api_call(
+ slack_client.api_call(
60
'chat.postMessage',
61
- channel=CHANNEL,
+ channel=CHANNEL_ID,
62
text=budget_notification_text)
63
- print(res)
64
# [END functions_billing_slack]
65
66
0 commit comments