correct casing of slack channel secret
This commit is contained in:
parent
bb7741718f
commit
13f0994134
@ -14,6 +14,6 @@ steps:
|
|||||||
SLACK_TOKEN:
|
SLACK_TOKEN:
|
||||||
from_secret: slack_token
|
from_secret: slack_token
|
||||||
SLACK_CHANNEL:
|
SLACK_CHANNEL:
|
||||||
from_secret: SLACK_CHANNEL
|
from_secret: slack_channel
|
||||||
commands:
|
commands:
|
||||||
- bash run.sh
|
- bash run.sh
|
||||||
|
3
bot.py
3
bot.py
@ -180,6 +180,9 @@ if __name__ == '__main__':
|
|||||||
params={'thread_ts': msg['ts'], 'channels': channel},
|
params={'thread_ts': msg['ts'], 'channels': channel},
|
||||||
files={'file': (filename, open(filename, 'rb').read())},
|
files={'file': (filename, open(filename, 'rb').read())},
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
print('Slack API responded with error:')
|
||||||
|
print(msg)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print('Failed to find the word.')
|
print('Failed to find the word.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user