initial commit

This commit is contained in:
2025-02-28 17:40:39 +05:30
parent 796e995b2b
commit c39726c098
9 changed files with 141 additions and 0 deletions

18
runner/mail.py Normal file
View File

@@ -0,0 +1,18 @@
import requests as req
from websockets.asyncio import client as WSC
import asyncio
async def test(func):
counter=0
async with WSC.connect("ws://0.0.0.0:7732/reg", open_timeout=None, ping_interval=10, ping_timeout=None ) as w:
while True:
counter+=1
x=await w.recv()
await asyncio.sleep(1)
func()
print(x)
await w.send(str(counter), text=True)
asyncio.run(test(print))