Add Slackronyms app code#1
Conversation
There was a problem hiding this comment.
This file is where all the magic happens.
|
I'm looking at the Slack workspace setup in step 1, @Scotchester, and I'm wondering if I can create the test app in the Compiler workspace (if so, I'll prepend |
|
I'm not (yet) aware of a way to prevent an app installed into a workspace from being seen/used by anyone in the workspace, so once installed, anyone could run the Also, I am not sure what would happen if multiple apps tried to implement the same command (for example, if your test app was still installed at the time that the production app gets installed). For those reasons, I did set up my own personal Slack testing workspace to keep testing isolated and simple. |
This PR adds the actual Slack app code itself. More PRs to come.
Testing instructions
Subsequent PRs will update the dev container environment, but this can be tested in isolation as follows:
slackronyms/manifest.json.export SLACK_BOT_TOKEN=<token>.connections:writescope. Copy this token, then set it withexport SLACK_APP_TOKEN=<token>.cd slackronymspip install -r requirements.txtpython ./app.pyYou should see output indicating that the app is now running, and you should now be able to invoke it in your Slack test workspace! Try the
/definecommand to confirm.You can also run the unit tests with
pytestin the same directory. (Would still like to add more coverage.)