在树莓派上启动两个 Discord Bot

时间:2021-04-29 11:19:19

标签: raspberry-pi discord.js

我尝试在我的 raspberry pi 上托管两个 discord bot,我希望 bot 在 PI 启动时自动启动,所以我将它添加到我的 /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

cd /home/pi/SoBot2
forever bot.js
^C
cd /home/pi/PoloBot
node bot.js
^C

但独特的是第一个机器人启动。

0 个答案:

没有答案