spunkir
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
Current code:
Current error logs with 'pm2 logs bot --err':
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
^
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
Oh I meant the timeout where it doesn't respond to the user in discord, not an actual timeout error
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
Also results in the timeout issue. Could it be the way that I'm setting the channel to send to?
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
That produces the same issue oddly enough. I also tried replacing the 'suggestion' variable with a static string and it resulted in the same issue
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
No dice on killing the pm2 either
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
Weird.
git pull
node index.js
works, but running my wrapper is when I have issues (there's a git pull with the main repo above the top line):
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
Looks like even removing the fields produces the same error
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
Yeah I tried sending in the user.username, which should be a string, but haven't seen a difference:
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
Looks like pm2 has it's own logging system:
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
I don't have any that explicitly crash it, I am however running it on a pm2, so in the event that the bot does crash, it auto-restarts.
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
no, it outputs as expected:
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
I ran it on my local machine instead of my EC2 and it looks like it ran the command with no issue? The whole bot's stored in git and all leaves are updated
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
there's another log underneath the channel.send, but the bot looks like it's restarting before reaching it
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
the current structure is:
log "embed built"
log "writing to channel..."
channel.send embed
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
i.e. line 43
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
how so? how would you catch the await botSuggestionsChannel.send([ embeds: [embed] }); ?
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
The 0 | bot output is the only log I have
44 replies
DIAdiscord.js - Imagine a bot
•Created by spunkir on 6/29/2023 in #djs-questions
Bot crashing when calling custom /suggest command
got it lmao
44 replies