From 0e15218abde8f60c901e8ba3e4008e96f71a6be0 Mon Sep 17 00:00:00 2001 From: Migatu Date: Wed, 19 Jun 2024 18:53:37 +0200 Subject: [PATCH] Test --- bot.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 5f3619b..1e67886 100644 --- a/bot.py +++ b/bot.py @@ -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",