https://github.com/foxbot/bottleneck
A Webhook Debouncer
https://github.com/foxbot/bottleneck
Last synced: about 1 year ago
JSON representation
A Webhook Debouncer
- Host: GitHub
- URL: https://github.com/foxbot/bottleneck
- Owner: foxbot
- License: isc
- Created: 2017-10-15T23:22:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-23T01:30:35.000Z (almost 8 years ago)
- Last Synced: 2025-03-25T07:35:12.979Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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"
}
```