https://github.com/stechstudio/insult-service
Random Insults from Martin Luther
https://github.com/stechstudio/insult-service
Last synced: about 1 year ago
JSON representation
Random Insults from Martin Luther
- Host: GitHub
- URL: https://github.com/stechstudio/insult-service
- Owner: stechstudio
- Created: 2017-09-01T18:41:29.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-13T18:53:07.000Z (almost 9 years ago)
- Last Synced: 2025-02-08T05:27:45.441Z (over 1 year ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 2
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slack Insult Service
Random Insults from Martin Luther, a [Serverless](https://serverless.com/) implementation for AWS Lambda.
# Slack Integration
Simply create a [Slack Custom Command](https://api.slack.com/slash-commands) setting the URL of the command to `https://pnpgt1myui.execute-api.us-east-1.amazonaws.com/prd/insult` and the METHOD to GET.
Assuming you created a command like `/luthersays` you can then test it in slack by typing that. You can also target the insults with a specific user like `/luthersays @bubba`.
And yes, that's a public endpoint anyone can use. Have fun. Of course, we may have to shut it down if our Lambda costs get out of control. We'll post an update on this page should we be forced to do that.
# Deploy Your Own
You should probably get comfortable with Servless Documenation first, but this will get you started.
```
git clone https://github.com/stechstudio/insult-service.git
cd insult-service
npm install serverless -g
serverless invoke local --function insult --path event.json
serverless deploy -v
```