Ask coding questions

← Back to all posts
Discord Bot keeps shutting down
9ggy

Sorry for the messiness of the code, i was on a time limit. My issue is that my bot shuts down even though i have uptime robot pinging it periodically. Can someone please help me with this?

Comments
hotnewtop
Coder100

confirm your bot doesn't have errors.
Then, make sure you don't use too much memory, you might need to boost your repl.

9ggy

@Coder100 That might be the issue. I have like 6000 lines of code!
Thanks

Coder100

wow that's a big bot

have you tried using cogs or splitting up the bot into multiple sections? It might not be worth it if you are developing it for someone else @9ggy

9ggy

I havent tried splitting it up. I tried with another small bot but it also shut down
May i invite you?

@Coder100

Coder100
  1. interesting
  2. try forking the repl
  3. try using the bash language and copying and pasting bot code there

i don't believe I can do anything more with an invitation, so that's ok
@9ggy