So, for some reason, the last few days when I was doing the command to check my bot’s statistics, I kept seeing this, which wasn’t really good for me:
And my bot keeps getting offline for no reason and I’ve done a lot of things to keep the bot online 24/7.
From a Discord Bot Developer and Glitch User,
TehPig_YT
What you have provided is no where near useful. Could you provide us with a project link? Note make sure its public so we can see it, before doing that, make sure all sensitive things like bot tokens are in your ENV
Yes, your best bet is to get the processes CPU usage, which may not entirely show your whole project’s CPU usage, but should show the usage of the bot itself. Take a look at this
Multiple Glitch projects run on a single AWS EC2 instance. When you try get the CPU usage it shows for all of the projects in that EC2 server combined together.
@TehPig_YT For that, you may want to run it on a RasberryPi or a separate computer. Just like what xXProGamerXx said. You will either have to deal with that or self host it. But that CPU stuff isn’t needed really for a bot info.
Hm…if you wanted to get the percentage of available CPU specific to the container (as opposed to the actual disk) that sounds like a docker issue, right? I’m not a docker expert but this might be closer to what you’re looking for.
hierarchical_memory_limit 6442450944 --(If this is Bits, then it is 768 megabytes. (Divided by 8 to change from bit to byte, and then 1024 to kilobyte, then megabyte.) (Google divides by 1000, and the calculation was 805.306368.)
I’ll try finding a way to grab information out of that.
If anybody else has an idea about this, say it here!