function test ok

This commit is contained in:
godot 2024-10-28 13:48:39 +01:00
parent 24c5758118
commit 5383bbfd4d
2 changed files with 4 additions and 6 deletions

View File

@ -5,9 +5,7 @@ from discord.ext import commands
import json import json
import os import os
os.chdir("/opt/disbot")
os.chdir("/home/godot/Documents/scripts/discord-bot.py")
#os.chdir("/opt/disbot")
intents = discord.Intents.default() intents = discord.Intents.default()
intents.message_content = True intents.message_content = True

View File

@ -5,9 +5,9 @@ printf "Better to run as root, because of permisions handeling.\n"
sleep 2 sleep 2
apt update 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 groupadd disbot
useradd --system --shell /usr/sbin/nologin --home /opt/disbot -g disbot 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/ mv mainbank.json disbot.py /opt/disbot/
chown -r disbot:disbot /opt/disbot/ chown -R disbot:disbot /opt/disbot/
#systemD #systemD
mv disbot.service /etc/systemd/system/ mv disbot.service /etc/systemd/system/