Elitex
Elitex
DIAdiscord.js - Imagine an app
Created by Elitex on 8/17/2023 in #djs-questions
Shards are dying and re spawning again nd again
Logs:
8|Raiden Bot | [Raiden] Bot has been launched!
8|Raiden Bot | 16:48:38 >> [WS => Shard 1] First heartbeat sent, starting to beat every 41250ms
8|Raiden Bot | 16:48:38 >> [WS => Shard 1] Heartbeat acknowledged, latency of 19ms.
8|Raiden Bot | 16:49:4 >> [WS => Shard 0] Heartbeat acknowledged, latency of 19ms.
8|Raiden Bot | [Database] Successfully connected to Database.
8|Raiden Bot | [Event Handler] 27 Events are Ready to use
8|Raiden Bot | [Message Command Handler] 10 Commands Loaded Successfully
8|Raiden Bot | [Slash Command Handler] 54 Commands Loaded Successfully
8|Raiden Bot | [Slash Command Handler] 1 Menu Commands Loaded Successfully
8|Raiden Bot | [Button Command Handler] 27 Commands Loaded Successfully
8|Raiden Bot | 16:49:8 >> [WS => Shard 2] Heartbeat acknowledged, latency of 22ms.
8|Raiden Bot | [SHARD MANAGER]: Shard #1 is ready!
8|Raiden Bot | [Raiden] Bot has been launched!
8|Raiden Bot | 16:49:14 >> [WS => Shard 1] First heartbeat sent, starting to beat every 41250ms
8|Raiden Bot | 16:49:14 >> [WS => Shard 1] Heartbeat acknowledged, latency of 20ms.
8|Raiden Bot | 16:49:46 >> [WS => Shard 0] Heartbeat acknowledged, latency of 29ms.
8|Raiden Bot | 16:49:49 >> [WS => Shard 2] Heartbeat acknowledged, latency of 22ms.
8|Raiden Bot | 16:49:55 >> [WS => Shard 1] Heartbeat acknowledged, latency of 22ms.
8|Raiden Bot | 16:50:27 >> [WS => Shard 0] Heartbeat acknowledged, latency of 25ms.
8|Raiden Bot | 16:50:31 >> [WS => Shard 2] Heartbeat acknowledged, latency of 20ms.
8|Raiden Bot | 16:50:36 >> [WS => Shard 1] Heartbeat acknowledged, latency of 20ms.
8|Raiden Bot | 16:51:8 >> [WS => Shard 0] Heartbeat acknowledged, latency of 20ms.
8|Raiden Bot | 16:51:12 >> [WS => Shard 2] Heartbeat acknowledged, latency of 21ms.
8|Raiden Bot | [Database] Successfully connected to Database.
8|Raiden Bot | [Event Handler] 27 Events are Ready to use
8|Raiden Bot | [Message Command Handler] 10 Commands Loaded Successfully
8|Raiden Bot | [Slash Command Handler] 54 Commands Loaded Successfully
8|Raiden Bot | [Slash Command Handler] 1 Menu Commands Loaded Successfully
8|Raiden Bot | [Button Command Handler] 27 Commands Loaded Successfully
8|Raiden Bot | [SHARD MANAGER]: Shard #1 is ready!
8|Raiden Bot | [Raiden] Bot has been launched!
8|Raiden Bot | 16:51:49 >> [WS => Shard 0] Heartbeat acknowledged, latency of 23ms.
8|Raiden Bot | 16:51:53 >> [WS => Shard 2] Heartbeat acknowledged, latency of 19ms.
8|Raiden Bot | 16:52:31 >> [WS => Shard 0] Heartbeat acknowledged, latency of 24ms.
8|Raiden Bot | 16:52:34 >> [WS => Shard 2] Heartbeat acknowledged, latency of 22ms.
8|Raiden Bot | 16:53:12 >> [WS => Shard 0] Heartbeat acknowledged, latency of 21ms.
8|Raiden Bot | 16:53:16 >> [WS => Shard 2] Heartbeat acknowledged, latency of 21ms.
8|Raiden Bot | 16:53:53 >> [WS => Shard 0] Heartbeat acknowledged, latency of 20ms.
8|Raiden Bot | 16:53:57 >> [WS => Shard 2] Heartbeat acknowledged, latency of 24ms.
8|Raiden Bot | 16:54:34 >> [WS => Shard 0] Heartbeat acknowledged, latency of 22ms.
8|Raiden Bot | 16:54:38 >> [WS => Shard 2] Heartbeat acknowledged, latency of 21ms.
8|Raiden Bot | [Raiden] Bot has been launched!
8|Raiden Bot | 16:48:38 >> [WS => Shard 1] First heartbeat sent, starting to beat every 41250ms
8|Raiden Bot | 16:48:38 >> [WS => Shard 1] Heartbeat acknowledged, latency of 19ms.
8|Raiden Bot | 16:49:4 >> [WS => Shard 0] Heartbeat acknowledged, latency of 19ms.
8|Raiden Bot | [Database] Successfully connected to Database.
8|Raiden Bot | [Event Handler] 27 Events are Ready to use
8|Raiden Bot | [Message Command Handler] 10 Commands Loaded Successfully
8|Raiden Bot | [Slash Command Handler] 54 Commands Loaded Successfully
8|Raiden Bot | [Slash Command Handler] 1 Menu Commands Loaded Successfully
8|Raiden Bot | [Button Command Handler] 27 Commands Loaded Successfully
8|Raiden Bot | 16:49:8 >> [WS => Shard 2] Heartbeat acknowledged, latency of 22ms.
8|Raiden Bot | [SHARD MANAGER]: Shard #1 is ready!
8|Raiden Bot | [Raiden] Bot has been launched!
8|Raiden Bot | 16:49:14 >> [WS => Shard 1] First heartbeat sent, starting to beat every 41250ms
8|Raiden Bot | 16:49:14 >> [WS => Shard 1] Heartbeat acknowledged, latency of 20ms.
8|Raiden Bot | 16:49:46 >> [WS => Shard 0] Heartbeat acknowledged, latency of 29ms.
8|Raiden Bot | 16:49:49 >> [WS => Shard 2] Heartbeat acknowledged, latency of 22ms.
8|Raiden Bot | 16:49:55 >> [WS => Shard 1] Heartbeat acknowledged, latency of 22ms.
8|Raiden Bot | 16:50:27 >> [WS => Shard 0] Heartbeat acknowledged, latency of 25ms.
8|Raiden Bot | 16:50:31 >> [WS => Shard 2] Heartbeat acknowledged, latency of 20ms.
8|Raiden Bot | 16:50:36 >> [WS => Shard 1] Heartbeat acknowledged, latency of 20ms.
8|Raiden Bot | 16:51:8 >> [WS => Shard 0] Heartbeat acknowledged, latency of 20ms.
8|Raiden Bot | 16:51:12 >> [WS => Shard 2] Heartbeat acknowledged, latency of 21ms.
8|Raiden Bot | [Database] Successfully connected to Database.
8|Raiden Bot | [Event Handler] 27 Events are Ready to use
8|Raiden Bot | [Message Command Handler] 10 Commands Loaded Successfully
8|Raiden Bot | [Slash Command Handler] 54 Commands Loaded Successfully
8|Raiden Bot | [Slash Command Handler] 1 Menu Commands Loaded Successfully
8|Raiden Bot | [Button Command Handler] 27 Commands Loaded Successfully
8|Raiden Bot | [SHARD MANAGER]: Shard #1 is ready!
8|Raiden Bot | [Raiden] Bot has been launched!
8|Raiden Bot | 16:51:49 >> [WS => Shard 0] Heartbeat acknowledged, latency of 23ms.
8|Raiden Bot | 16:51:53 >> [WS => Shard 2] Heartbeat acknowledged, latency of 19ms.
8|Raiden Bot | 16:52:31 >> [WS => Shard 0] Heartbeat acknowledged, latency of 24ms.
8|Raiden Bot | 16:52:34 >> [WS => Shard 2] Heartbeat acknowledged, latency of 22ms.
8|Raiden Bot | 16:53:12 >> [WS => Shard 0] Heartbeat acknowledged, latency of 21ms.
8|Raiden Bot | 16:53:16 >> [WS => Shard 2] Heartbeat acknowledged, latency of 21ms.
8|Raiden Bot | 16:53:53 >> [WS => Shard 0] Heartbeat acknowledged, latency of 20ms.
8|Raiden Bot | 16:53:57 >> [WS => Shard 2] Heartbeat acknowledged, latency of 24ms.
8|Raiden Bot | 16:54:34 >> [WS => Shard 0] Heartbeat acknowledged, latency of 22ms.
8|Raiden Bot | 16:54:38 >> [WS => Shard 2] Heartbeat acknowledged, latency of 21ms.
5 replies
DIAdiscord.js - Imagine an app
Created by Elitex on 5/8/2023 in #djs-questions
Shard Connections
I am using Discordjs v14.9.0 Since 2 days, randomly my bot gets disconnected from Discord API, after x numbers of hours. I found nothing in debug logs or shard log. I don't know, how to counter this problem. Though, I was thinking, if we could use "Shard" Class to manually check its connection API after each Interval and if found closed, we just respawn it via "respawn()". I don't know, how to check the connection with API. Can anyone guide me through this?
41 replies
DIAdiscord.js - Imagine an app
Created by Elitex on 4/7/2023 in #djs-questions
Random disconnection
My WS Connection was closed randomly. Debug logs are as follows:
[WS => Shard 0] [HeartbeatTimer] Didn't receive a heartbeat ack last time, assuming zombie connection. Destroying and reconnecting.
Status : 0
Sequence : 249614006
Connection State: OPEN
[WS => Shard 0] [DESTROY]
Close Code : 4009
Reset : true
Emit DESTROYED: true
[WS => Shard 0] [HeartbeatTimer] Didn't receive a heartbeat ack last time, assuming zombie connection. Destroying and reconnecting.
Status : 0
Sequence : 249614006
Connection State: OPEN
[WS => Shard 0] [DESTROY]
Close Code : 4009
Reset : true
Emit DESTROYED: true
I know this is normal, but this makes my shard go down. Can you tell me about some preventions for this? Like if possible, can I make smth like which automatically respawns the shard?
36 replies