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):
while True:
for animation in self.animations:
frame = int(time.time() / animation.spf) % len(
frame = int(time.time() / animation.spf + animation.offset) % len(
animation.frames
)
self.put_image(

View File

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

View File

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