another approach

This commit is contained in:
2024-06-19 18:31:10 +02:00
parent 47945ab3dd
commit 2fd362a1d5
+1 -2
View File
@@ -19,7 +19,6 @@ import shutil
import sys import sys
import threading import threading
import uuid import uuid
import subprocess
from datetime import datetime from datetime import datetime
from logging import handlers from logging import handlers
from pathlib import Path, PurePath from pathlib import Path, PurePath
@@ -1375,7 +1374,7 @@ async def zrestartuj_radio(ctx):
if not allowed: if not allowed:
await ctx.send("Łapy precz od radia") await ctx.send("Łapy precz od radia")
else: else:
subprocess.call(['sh', '/home/pi/Conjurer/restart_radio.sh']) os.system('/home/pi/Conjurer/restart_radio.sh')
@client.hybrid_command( @client.hybrid_command(