Configuration ouputting to console
I've encountered a strange issue over the last couple of days.
Whenever I execute a command that sends a message to a user, the entire configuration of my application is printed to the console.
This occurrence doesn't seem to impact the bot's functionality or cause it to malfunction; it's simply a new behavior that has emerged recently.
Unfortunately, I'm unable to share the entire console output as it spans 1785 lines, but here are some of the details that are being printed:
- Events such as message deletion, voice errors, and bot updates.
- Contents of the .env file
- My wordlist used for the trivia command.
Is there a reason this could be happening? It only started when my application reached the threshold for verification.
I assume it's linked to the recent bug regarding activities (will attach a screenshot after) as it's only been happening since then.
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPActivity bug (known)
I just tested it with my beta bot, same issue. It's 100% an issue with Discord, not my end.
The config being logged only happens with certain commands, which is when the activity bug happens also.
This started happening the same time as the acitivty bug, so go figure.
discord has no control over your console, so it can't be that
search for usages of console.log
That was my initial thought, however the only usage of console.log are for outdated packages.
maybe other console method, search for
console.
Will do, just confused as it's only been happening the last few days and no code has been changed for 2 weeks.
Nodemon
In the process of changing to pm2 funnily enough, lol
Not that I am aware of
I can take a screen recording of what happens if that makes it easier to understand
There are no errors, that's the thing
It's just the config output, the bot isn't affected by this. It's just strange how it's started happening after nothing in the code has been changed.
Not that I can see.
It outputs everything. Each guild the bot is in by id, list of commands, webhooks for logging, emojis etc.
Strange, why would it suddenly start doing that?
So I need to figure out what's causing it to do this, basically?
So you recommend pm2, yes?
Sorted, thank you!