Creeper
Creeper
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
No it's just the default state of how it works so I think the solution is by ending the process without actually using process.exit(). kinda like blocking it
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Sometimes I'll make a commit, let's say 2 of them with 1 minute span in between then for 5+ mins there will be 3 bots logged in
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Around 5+ minutes
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Yep exactly
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
So would I have to use clear interval or is there a way to just replace the entire process with another one
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
When I make a commit my hosting provider starts a new process while keeping the old one so 2 bots r in at once. I use pub sub to communicate that there is a new server and then i need to log the bot out and basically exit the process without doing process.exit() otherwise the hosting provider thinks it crashed and will restart it
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Oh I see but will clear interval stop it if it's in the middle of the call? And unref will wait till the call to stop? But when i call the method to log out the client how could I tell it to unref then because i don't want to exit the process because then hosting provider will restart it
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Or clearInterval()
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
So when i log the bot out I do that ?
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
After I log out the errors start to log from try catch and then js error that says it ran out of memory
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Yes there r set intervals but I'm not sure how to clear all them without exporting each individual one
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Even with a try catch
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
I've used a try catch on my entire app and then also listened to error event to log it out and so many messages r still being sent that it runs out of memory and crashes
18 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 10/25/2022 in #djs-questions
message with back and forward buttons
Can custom id have any char
30 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 10/25/2022 in #djs-questions
message with back and forward buttons
Yeah that package won't remember previous state of select menus and stuff
30 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 10/25/2022 in #djs-questions
message with back and forward buttons
How not really? Basically every slash command interaction will be stored in db
30 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 10/25/2022 in #djs-questions
message with back and forward buttons
What's the limit on custom id length and can u just put Json in the id?
30 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 10/25/2022 in #djs-questions
message with back and forward buttons
If someone spams the command
30 replies
DIAdiscord.js - Imagine an app
Created by Creeper on 10/25/2022 in #djs-questions
message with back and forward buttons
But for other commands that have a back button u would need to just store in custom id cuz that would take lots of space in db
30 replies