correct casing of slack channel secret

This commit is contained in:
Joseph Montanaro 2022-01-25 08:41:59 -08:00
parent bb7741718f
commit 13f0994134
2 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,6 @@ steps:
SLACK_TOKEN:
from_secret: slack_token
SLACK_CHANNEL:
from_secret: SLACK_CHANNEL
from_secret: slack_channel
commands:
- bash run.sh

3
bot.py
View File

@ -180,6 +180,9 @@ if __name__ == '__main__':
params={'thread_ts': msg['ts'], 'channels': channel},
files={'file': (filename, open(filename, 'rb').read())},
)
else:
print('Slack API responded with error:')
print(msg)
else:
print('Failed to find the word.')