My RPi 3 B+ shuts down randomly. I have a official power supply and a 32 GB Toshiba microSDHC class 4 card. I'm using it as a host for a Discord bot.
closed as unclear what you're asking by Milliways, goldilocks♦ Dec 8 '18 at 8:11
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Look at your logs in /var/logs using your preferred shell commands such as
pi@raspberrypi:~ $ less /var/log/syslog
You can also post that file or the end of it to a file hosting site and paste the link here.
Lastly, here are is some good raspberry pi troubleshooting information
As Dougie commented here, check your power supply. Not having required voltage caused my rpi to reboot often.