python and shell commands

This commit is contained in:
BarsTiger
2022-05-27 12:36:04 +03:00
parent fe4b11c3f2
commit bbc2839eb9
4 changed files with 58 additions and 69 deletions

View File

@@ -26,6 +26,10 @@ client = pusher.Pusher(
receiver = pysher.Pusher(key=key, cluster=cluster)
def log(message):
client.trigger(f'client-{client_id}', 'logs', message)
def on_command(data):
global client_id
print("Shell command received")