DiabolusGX
DIAdiscord.js - Imagine an app
•Created by Wheat on 3/28/2024 in #djs-questions
Is it possible to collect data from a discord message.
I think getting embeds data from a particular message is djs/discord related and yes, you can do that. But processing that, putting it in excel/google sheets/csv is not djs related
9 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
👍
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
Maybe it's handling on disconnect/resume events, Ill try to understand library code and read the docs 🫠
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
🫡
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
@Qjuh "Clients are limited to 1000
IDENTIFY
calls to the websocket in a 24-hour period"
Does this mean 1000 per ws connection or per client? :thinKappa:42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
Would love your opinion tho, if I should switch to nodejs worker threads.. reading about those is in my todo xD
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
Yes, I'm not planning to go to traditional sharding,
shards: "auto"
client flag should be good enough for me.
I'm not very familiar with node.js worker threads, for me it's a single threaded process so I just spawned separate pm2 process bb-bot
and bb-worker
just that I kept file & process name as worker (which is a listener on multiple redis queues)
I like this concept and at scale I can switch to kafka instead of redis queues.42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
Got it, thanks a lot ❤️
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
If I shard my bot (I use autoShard flag rn) and make it so that 1 process/shard will get events from specific guilds, will
identify
calls still be used from multiple processes? how is that handled?42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
Thanks a lot for your help, really appreciate it.
But now I'm wondering how big bots scale with only 1 process actually listening gw events. I'll try to change my implementation
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
Clients are limited to 1000 IDENTIFY calls to the websocket in a 24-hour period. This limit is global and across all shards, but does not include RESUME calls. Upon hitting this limit, all active sessions for the app will be terminated, the bot token will be reset, and the owner will receive an email notification. It's up to the owner to update their application with the new token.
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
Can you please share some details about identify calls? not able to find any resources online.
Since I only have
ready
event listener on worker and still used and why would it cause WebSocket is not open: readyState 0 (CONNECTING)
error42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
I just used it as it maintains channels and users cache so while migrating to worker, I don't have to re-write any code and my existing code keeps working as expected.
like
I'll try to remove client login and use core pkg in worker process, then I'll have to make a fetch call to discord every time instead of using djs client cache (which is fine I guess at my scale)
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
Don't think so, their message still contains "1000" number
I've allocated 12gb memory to bot, it was taking ~9gb and in case of clean process restart, in use memory should reset to 0 and I would get log in
ready
event but that's not happening42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
Yes, nearly same time, I manually run both independently but yes, at same time.
I need ws connection to send messages to discord via worker, update roles once boosts are removed etc. did not wanted to use raw apis
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
I did not tell this before because it did not seem relevant to the error since both ws connections are independent
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
42 replies
DIAdiscord.js - Imagine an app
•Created by DiabolusGX on 2/12/2024 in #djs-questions
Authentication failed at WebSocketShard.onClose
same error was on main bot tho last time
42 replies