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",