-
Check
main.tf
and edit the region if required. -
Zip the source file
zip catbot.zip catbot.py
-
Run
terraform apply
. -
Navigate to
https://<your-team-domain>.slack.com/services/new
-
Search for and select "Slash Commands".
-
Enter a name for the command (eg "cat") and click "Add Slash Command Integration".
-
Fill in the command url from the terraform output.
-
Copy the token string from the integration settings and use it in the next section.
-
Add the slash command token to the parameter store with:
aws ssm put-parameter --name "catbot_slash_command_token" --type "SecureString" --value "<TOKEN>"
-
Talk to catbot
- Cat images from the Cat API
- Cat facts from the Cat Facts API