]> git.cworth.org Git - turbot/commit
Abstract out two slack-related functions
authorCarl Worth <cworth@cworth.org>
Tue, 29 Sep 2020 16:59:42 +0000 (09:59 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 29 Sep 2020 19:44:16 +0000 (12:44 -0700)
commit5ca021456e8d23ed13a51da9698b9b66e90d8ec2
tree04d2904e83e0d6451ef5688df167fd011ad29552
parent1bcc971443fe6298ec1c719dd6b0495433f9a1e9
Abstract out two slack-related functions

The two new functions are slack_is_valid_request and slack_send_reply.
These functions provide some shared code for dealing with slack to
avoid code duplication.

These functions also provide a debug mode (that doesn't use slack at
all). This is a convenience for testing the implementation of slash
commands in a local "make run" session without needing to touch Slack
endpoints at all. (Instead, all requests are considered valid and
slack replies are simply printed to stdout.)
turbot.py