quark-bot-discord / gluon Goto Github PK
View Code? Open in Web Editor NEWLibrary for interacting with the Discord API, designed for Quark
Home Page: https://quark.bot
License: MIT License
Library for interacting with the Discord API, designed for Quark
Home Page: https://quark.bot
License: MIT License
see https://discord.com/developers/docs/topics/gateway#heartbeating-example-gateway-heartbeat-ack
need to disconnect and attempt to resume
"dev" - lots of logging
"prod" - no logging, process should continue running even if an error is encountered
"shadow" - runs in the background. everything happens as it usually would, except requests which cause an action are not made. needed for stress and stability testing
let shard ids be provided to the client, so the bot can give different responses for different servers
should try to delete these files
to make it considerably easier to find your way around the lib
implement or allow a way to perform rolling/zero-downtime restarts
IDENTIFY
limitthere is no recovery mechanism for if a queue gets stuck, requests just keep getting added indefinitely while no further requests are made
Returning an awaited value (like with return await f()
) has two problems: - It queues an extra microtask, blocking the callstack until return
is executed.
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource โ app.deepsource.com/gh/quark-bot-discord/gluon/issue/JS-0111/occurrences/
during busy periods when lots of requests are trying to be processed, often at the same time, it is very common for ratelimits to be encountered with ~1 second or less of time until another request can be made, resulting in missed messages
provide option to include specific properties in cache
and remove bundle functions, since they'll no longer be needed
prevent guilds which have just recovered from being unavailable from being emitted again - should note if a guild is unavailable
cache role overrides too and calculate user permissions
decide how it can be determined whether certain things should be cached for certain guilds
perhaps attach the gData
structure to the guild, and determine from there?/more integration between the guild and gData structures
quark seems to get ratelimited very very occasionally, with <1 second left before another request can be made
likely due to network latency, and definitely something that should be accounted for
dynamically calculating this seems like the best way
provide a quick and easy way of starting the bot on multiple processes, some of which may run slightly different code (for a/b testing)
rewrite gluon using rust?????
https://napi.rs ??????
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.