spec-tacles / gateway Goto Github PK
View Code? Open in Web Editor NEWA standalone service to connect to the Discord WebSocket gateway.
A standalone service to connect to the Discord WebSocket gateway.
How does the gateway handle this, if at all? Discord bots generally need information about the relevant guilds, channels, and roles, in order to do the appropriate permission checking. With a broker like this, it's necessary to store this information in an external cache (eg. Redis) to avoid losing the information upon the consumer reconnecting, since it's only provided by Discord at shard connect time (as part of the GUILD_CREATE
events). Is there a solution for this in the Spectacles ecosystem at the moment?
Like there will be cache on redis about each server member and cache will be updated by discord events like guildmember add/remove/update - Which can allow us to bypass the the special intent feature introduce by discord as of we just fetch data from our cache and get any member details or there presence data ;)
The currently used ZSTD compression has been causing issues parsing insanely large (but essential) data from the web-socket. My bot has a guild with more than 400 channels and complex permission setup. The server data received via guildCreate event triggered on Ready was being trimmed no matter what.
Perhaps an option in the gateway.toml to select the compression algorithm? Or a complete switch to zlib? Any of the above, I'll be more than happy to open a pull request with the changes.
The gateway should log on stderr and leave stdout for JSON output by the gateway.
It's fairly annoying to use a config file with Docker (either with volumes or a custom image with the config copied in), so we should support config through environment variables so users can configure the gateway directly from CLI or Docker Compose file.
I'm interested in using this for my bot, and making my own library for it that simulates JDA.
Problem is, where's the documentation?
Just a simple listing of what the spec is relating to RabbitMQ would go a long way.
If possible, I'd love to see support for clustering for Redis by setting an array of URLs on the REDIS_URL option.
I noticed that radix supports clustering, so to my understanding it should be possible.
We just got approved for GitHub Actions, so we should add actions to automatically build and publish releases.
resume_gateway_url
has been out for websocket connections to use for a while now, do you plan on adding support for it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.