Beau de l'aire
DIAdiscord.js - Imagine an app
•Created by Beau de l'aire on 12/28/2023 in #djs-questions
but receiving commands but not responding and not restarting
Hi!
I've got a problem with my bot.
It works fine most of the time and restarts correctly every day.
However, it sometimes stops responding to commands and can no longer send messages.
In the console I can see that commands are received but not answered. There are no errors sent (even with .catch).
I can evaluate javascript code via discord with an eval command which allows me to deduce the following elements:
- I can access client data such as client.username or client.id, I can console.log and view them.
- When I make a fetch attempt, for example: (eval client.users.fetch("360034833876910082").then(console.log).catch(console.log)) I get no response, positive or negative.
When I try to restart the bot, the commands are loaded, it connects to its database but the shard doesn't spawn. Without an error, nothing happens and no shard spawns.
It's on just over 22k guilds. I wonder if there isn't a ratelimit story behind this, where I might have done something wrong. But not having made any mistakes I don't understand.
Has anyone encountered a similar problem?
Thanks in advance!
32 replies