diff --git a/.drone.yml b/.drone.yml index f8be71a..86f8ea6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/bot.py b/bot.py index 729e592..719d528 100644 --- a/bot.py +++ b/bot.py @@ -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.')