An open API service indexing awesome lists of open source software.

https://github.com/foxbot/bottleneck

A Webhook Debouncer
https://github.com/foxbot/bottleneck

Last synced: about 1 year ago
JSON representation

A Webhook Debouncer

Awesome Lists containing this project

README

          

# bottleneck

This application provides a debouncer for Status Webhooks heading
towards Discord.

DAB Bot does not attempt to group its outgoing debug webhooks together,
leading to extreme ratelimits when all of a cluster's shards go down
(such as during a Discord outage).

This project aims to provide as a middleman to help group webhooks
together.

### Configuration

The following values must be set in the configuration file prior to
running:

| key | description |
| ------------ | ------------------------------------------ |
| `delay` | Interval to process webhook queue |
| `batch_size` | Number of Embeds to include per batch |
| `url` | Webhook URL |
| `token` | Authorization header to validate requests |
| `host` | Host to run Flask server on |
| `port` | Port to run Flask server on |
| `sentry` | URL to Sentry instance ('None' to disable) |

### Usage

```http
POST /push HTTP/1.1
Host:
Authorization:
Content-Type: application/json

{
"description": "embed content"
}
```