mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 07:42:09 +00:00
test2
This commit is contained in:
@@ -19,6 +19,7 @@ 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
|
||||||
@@ -1374,8 +1375,8 @@ 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:
|
||||||
result = os.system('/home/pi/Conjurer/restart_radio.sh')
|
retcode = subprocess.call("/home/pi/Conjurer/restart_radio.sh", shell=True)
|
||||||
await ctx.send(f'Wynik {result}')
|
await ctx.send(f'Wynik {retcode}')
|
||||||
|
|
||||||
|
|
||||||
@client.hybrid_command(
|
@client.hybrid_command(
|
||||||
|
|||||||
Reference in New Issue
Block a user