Skip to content

Commit 3ba47a8

Browse files
authored
little animation fix (TgCatUB#140)
1 parent 936ede2 commit 3ba47a8

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

userbot/plugins/animation2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ async def _(event):
150150
return
151151
event = await edit_or_reply(event, "tmoon")
152152
animation_interval = 0.1
153-
animation_ttl = range(117)
154-
await event.edit("tmoon")
153+
animation_ttl = range(96)
154+
await event.edit("tmoon..")
155155
animation_chars = [
156156
"🌗",
157157
"🌘",

userbot/plugins/animation3.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import asyncio
22
from collections import deque
33

4-
from . import ALIVE_NAME
5-
6-
DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "cat"
4+
from . import mention
75

86

97
@bot.on(admin_cmd(pattern=r"star$", outgoing=True))
@@ -55,8 +53,8 @@ async def _(event):
5553
event = await edit_or_reply(event, "`Deploying...`")
5654
animation_chars = [
5755
"**Heroku Connecting To Latest Github Build **",
58-
f"**Build started by user** {DEFAULTUSER}",
59-
f"**Deploy** `535a74f0` **by user** {DEFAULTUSER}",
56+
f"**Build started by user** {mention}",
57+
f"**Deploy** `535a74f0` **by user** {mention}",
6058
"**Restarting Heroku Server...**",
6159
"**State changed from up to starting**",
6260
"**Stopping all processes with SIGTERM**",
@@ -234,7 +232,7 @@ async def _(event):
234232
"🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵",
235233
"🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴",
236234
"🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵",
237-
f"[{DEFAULTUSER}]({USERNAME}) **Police iz Here**",
235+
f"{mention} **Police iz Here**",
238236
]
239237
for i in animation_ttl:
240238
await asyncio.sleep(animation_interval)

0 commit comments

Comments
 (0)