Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/conoro/disslack
DisSlack- Serverless AWS Lambda function to post new Disqus comments to a Slack channel
https://github.com/conoro/disslack
disqus dynamodb node-js serverless slack
Last synced: about 2 months ago
JSON representation
DisSlack- Serverless AWS Lambda function to post new Disqus comments to a Slack channel
- Host: GitHub
- URL: https://github.com/conoro/disslack
- Owner: conoro
- License: apache-2.0
- Created: 2017-11-12T19:59:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-15T12:02:20.000Z (over 2 years ago)
- Last Synced: 2024-04-18T05:56:23.915Z (10 months ago)
- Topics: disqus, dynamodb, node-js, serverless, slack
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DisSlack
A Serverless AWS Lambda function that runs once an hour, checks for new Disqus comments on your site and posts them to whatever Slack channel you specified when setting up your Slack incoming webhook.It uses one DynamoDB table to simply store the timestamp of the last time it ran so it avoids repeated posting.
## Setup
(Assuming you have your AWS access credentials already setup)
1. Setup webhook [here](https://my.slack.com/services/new/incoming-webhook)
2. Setup Disqus App [here](https://disqus.com/api/applications/)
3. Then:```bash
git clone [email protected]:conoro/disslack.git
cd disslack
```4. Rename disslack-sample.env.yml to disslack.env.yml
5. Edit disslack.env.yml and save the values from step 1 and 2
6. Then:```bash
npm install -g serverless
npm install
serverless plugin install -n serverless-dynamodb-local
serverless plugin install -n serverless-offline
serverless deploy
```Notes:
1. You can also invoke it manually by accessing the GET URL returned by the successful serverless deploy
2. You can check logs with:```bash
serverless logs -f check
```3. If you make minor changes to just the function code, you can do a quick re-deploy with:
```bash
serverless deploy function -f check
```LICENSE Apache-2.0
Copyright Conor O'Neill 2017, [email protected]