Sign inSign up

spectacles/gateway

By spectacles

•Updated 3 months ago

A gateway client for Discord.

Image
0

4.0K

spectacles/gateway repository overview

⁠Spectacles Gateway

Docker build status

A binary for ingesting data from the Discord gateway to a variety of sources.

⁠Goals

  • Multiple output destinations
    • AMQP
    • Redis
    • ???
  • Sharding
    • Internal
    • External
    • Auto (fully managed)
  • OS support
    • Linux
  • Distributable binary builds
  • Multithreading
  • Zero-alloc message handling
  • Discord compression (ZSTD)
  • Automatic restarting
  • Failover

⁠Usage

Usage of gateway:
  -config string
        location of the gateway config file (default "gateway.toml")
  -loglevel string
        log level for the client (default "info")

The config file is required.

token = "" # Discord token
events = [] # array of event names to publish

[shards] # optional
count = 2
ids = [0, 1]

[broker] # optional
url = "amqp://localhost"
group = "gateway"

Tag summary

Content type

Image

Digest

sha256:36ec6a45d…

Size

13.2 MB

Last updated

3 months ago

docker pull spectacles/gateway