Setting up a new slash command
-
Check
main.tf
and edit the region if required. -
Zip the bot source
zip memebot.zip memebot.py
-
Zip the bot worker source
zip memebot_worker.zip memebot_worker.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 "meme") 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 "memebot_slash_command_token" --type "SecureString" --value "<TOKEN>"