function test ok
This commit is contained in:
parent
24c5758118
commit
5383bbfd4d
@ -5,9 +5,7 @@ from discord.ext import commands
|
||||
import json
|
||||
import os
|
||||
|
||||
|
||||
os.chdir("/home/godot/Documents/scripts/discord-bot.py")
|
||||
#os.chdir("/opt/disbot")
|
||||
os.chdir("/opt/disbot")
|
||||
|
||||
intents = discord.Intents.default()
|
||||
intents.message_content = True
|
||||
|
||||
@ -5,9 +5,9 @@ printf "Better to run as root, because of permisions handeling.\n"
|
||||
sleep 2
|
||||
|
||||
apt update
|
||||
apt upgrade
|
||||
apt upgrade -y
|
||||
|
||||
apt install python3 python3.11-venv screen pip git vim
|
||||
apt install python3 python3.11-venv pip git vim -y
|
||||
|
||||
groupadd disbot
|
||||
useradd --system --shell /usr/sbin/nologin --home /opt/disbot -g disbot disbot
|
||||
@ -24,7 +24,7 @@ deactivate
|
||||
|
||||
mv mainbank.json disbot.py /opt/disbot/
|
||||
|
||||
chown -r disbot:disbot /opt/disbot/
|
||||
chown -R disbot:disbot /opt/disbot/
|
||||
|
||||
#systemD
|
||||
mv disbot.service /etc/systemd/system/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user