首页 > 解决方案 > 在树莓派启动两个 Discord 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

但唯一的第一个机器人开始。

标签: raspberry-pidiscord.js

解决方案


推荐阅读