Sammy
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
:CATTHUMBSUP:
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
im just slowlyy working towards improving my bot as its a huge mess right now
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
:)
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
50k, but for now just testing with my test bot in 6 servers lol
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
sending an Event opcode which then emits an event based on the payload
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
Ah ty! thatd be nice, just by looking through the source code, what i was doing seemed almost intended haha
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
yea
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
well, i dont want to setup a separate api on each worker
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
along with some other metrics
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
meaning i send the metrics to the main thread, merge them into a prom-client registry, then expose that
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
I collect metrics (events received), i collect these on the workers as i want to see the amount of events received for each worker and also each shard. But to expose the metrics, i need to collect them all together
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
but i cant add event listeners on the worker afaik
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
i need to send some data from the gateway workers to the parent thread
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
its hard to do anything else with it though, as the worker is internal and i cant seem to access it
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
ahh interesting..
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
i mean, i can just ts-expect-error it, which works fine, but itd be nice if there was some way to make these custom events typesafe as well
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
and i cant figure out a way to satisfy typescript
88 replies
DIAdiscord.js - Imagine an app
•Created by Sammy on 5/1/2024 in #djs-questions
@discordjs/brokers timeout when not using reply()
oh btw im struggling a bit with these custom events in the ws manager. I figured out you can get the manager to emit events that you send it from the worker process, but listening to these makes typescript complain
88 replies