This commit is contained in:
2024-06-19 18:53:37 +02:00
parent f56773b2e1
commit 0e15218abd
+2 -3
View File
@@ -1375,9 +1375,8 @@ async def zrestartuj_radio(ctx):
if not allowed:
await ctx.send("Łapy precz od radia")
else:
retcode = subprocess.call("/home/pi/Conjurer/restart_radio.sh", shell=True)
await ctx.send(f'Wynik {retcode}')
retcode = subprocess.run("/home/pi/Conjurer/restart_radio.sh", shell=True, check = True, capture_output = True)
logger.info(f'Wynik {retcode}')
@client.hybrid_command(
name="dej_co_ze_spotifaja",