LuaN
Explore posts from serversMy website is offline
My website is made in nextjs, it's back to normal, but I've been researching and apparently it's a container error. I was afraid that it was some kind of attack that my website might be receiving, or if it was a problem with the railway server
14 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
i dunno if this function has any synchronous task or something related that ends up taking a long time until the execution of the response
18 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
the delay time seems to increase as the chat remains active, gradually
18 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
18 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
It looks like there is something inside the "reply" function that interacts with the discord api that is taking a long time to execute based on specific channels and servers after a certain amount of time.
In a conversation on the discord developer server, they said that the time is too high to be a problem connecting to Discord, I believe that possibly it is something within the .send() and .reply() functions, because as I said before, in other channels the bot continues to respond without delay, even though in the channel where many messages have been sent the bot has not yet responded and if I restart the bot, it returns to responding normally in the channel where many messages are being sent
18 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
18 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
@qjuh I've been monitoring it for a while, and debug hasn't given me any problems. I also added some logs before the reply function is called, and after the function returns a reply.
All bots are receiving the logs:
"[WS => Shard 0] Heartbeat acknowledged, latency of 119ms."
And the log calling "finished reply" that is sent after the bot manages to send its response, takes the time that the response takes to be sent, which is on average 10 minutes
18 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
Bots are still able to perform their tasks normally, such as searching the database, getting information from the Discord api. It seems that only the functions of reply and send messages in chats have this problem, possibly due to cache processing issues or something related
18 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
I believe that if it were a processing problem, it would not make sense for the bot to respond in other channels without delay, and it would take time to respond only in busy server chats
18 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
But this problem has been with me since when I used a vps from Germany, I switched to cost per use because of the ease of application maintenance and the ease of scaling. I have recently been using fly.io services for this, where I can increase or decrease the machine's processing capacity according to the application's needs
18 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
CPU and RAM usage is very low, mainly because I pay per use, this has consumed less than 700MB and 0.8 vCPU
18 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
Removing GuildsMessage intents would mean removing moderation systems, levels, auto-responders, and many other features that make my bot popular within its target audience.
Intents my bots use:
Guilds | GuildBans | GuildMessages | GuildMembers | GuildEmojisAndStickers | GuildMessageReactions | GuildVoiceStates | MessageContent | GuildInvites
My system is similar to what MEE6, Sapphire and other great bots have, which is the "custom bot", where the user can have an exclusive bot instance for his server, being able to change the name and photo of the bot
18 replies
DIAdiscord.js - Imagine an app
•Created by LuaN on 8/6/2023 in #djs-questions
message.reply() function takes more than 10 minutes to send message
@qjuh What I don't understand is why the bot would RateLimit if it's not spamming messages, and if I restart the bot it goes back to responding normally in the channel. If it was RateLimit I would have to wait some time even after restarting the application
18 replies