This is an example, expect no assistance with operation.
This file should go into /lib/systemd/system
-
You will need to replace
init.lua
with the name of your bot's entrypoint file (maybemain.lua
orbot.lua
). -
You will need to replace
/some/random/path
with the full directory of your discord bot.- You can find this by changing into the directory and running
pwd
.
- You can find this by changing into the directory and running
-
You will need to have luvit installed into
/usr/local/bin
. -
You will need to have all lit dependencies downloaded. This script will only run luvit.
curl -L https://github.com/luvit/lit/raw/master/get-lit.sh | sh && sudo mv luvit luvi lit /usr/local/bin