slack_spam_notification_service

Version, currently main branch1 version
  • main branchlatestMar 1, 2023

github.com/crimson-knight/slack-spam-message-service

No description declared in shard.yml.

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  slack_spam_notification_service:
    github: crimson-knight/slack-spam-message-service
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
1.7.2
License
MIT
Author
Seth Tucker
Target
  • slack_spam_notification_service from src/slack_spam_notification_service.cr

Dependencies

Runtime Dependencies

  • kemal*github: kemalcr/kemal
  • mosquito~> 1.0.0.rc3github: mosquito-cr/mosquito

README

slack_spam_notification_service

A simple but effective notification service to relay spam messages into a slack channel.

This provides a single end-point that accepts incoming JSON payloads and if a message worth passing onto slack is found, a background job will be enqueued through Redis.

This allows for web requests to be speedy logic checks and the actual message sending to be decoupled. This way, if Slack's webhooks API returns errors or is slow to respond, whatever service is sending the messages will not be affected. Background jobs that fail also have exponential back-off and automatic retries, and dead jobs are available in Redis for analytics if any debugging information is desired.

Requirements: Crystal (latest) Redis

Environment variables required: REDIS_URL SLACK_CHANNEL_WEBHOOK