THE GREAT BOTTENING

This commit is contained in:
Casey 2024-07-11 05:44:21 +03:00
parent 1c6d6d8b28
commit 0ce64231c7
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
3 changed files with 5 additions and 3 deletions

View File

@ -352,7 +352,7 @@ class Manager:
async def animator(self): async def animator(self):
while True: while True:
for animation in self.animations: for animation in self.animations:
frame = int(time.time() / animation.spf) % len( frame = int(time.time() / animation.spf + animation.offset) % len(
animation.frames animation.frames
) )
self.put_image( self.put_image(

View File

@ -50,8 +50,8 @@
"path": "../pictures/non-reflection.gif", "path": "../pictures/non-reflection.gif",
"x": 300, "x": 300,
"y": 40, "y": 40,
"spf": 15, "spf": 5,
"offset": -408 "offset": -467
}, },
{ {
"type": "animation", "type": "animation",

View File

@ -73,6 +73,8 @@ class WorkerManager:
cookie = bot_index, self._restarts[bot_index] cookie = bot_index, self._restarts[bot_index]
self.workers.add(cookie) self.workers.add(cookie)
await sio.send("unsubscribe")
try: try:
batch = 0 batch = 0
while sio.connected: while sio.connected: