I made a very basic ping pong Discord bot with a few commands.
I deployed it on Vultr VPS server. I followed this tutorial: https://www.writebots.com/discord-bot-hosting/
PM2 did not make my bot go online, so that's where I differed from the tutorial. I kick it off with command:
nohup node bot.js
It runs fine for hours and then goes offline several hours later. I would really appreciate some help.
我认为您应该简单地创建一个屏幕会话,然后在关闭终端之前将其分离,而不是将 NoHup 与 vps 一起使用。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.