|
1 | 1 | import asyncio |
2 | 2 | from collections import deque |
3 | 3 |
|
4 | | -from . import ALIVE_NAME |
5 | | - |
6 | | -DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "cat" |
| 4 | +from . import mention |
7 | 5 |
|
8 | 6 |
|
9 | 7 | @bot.on(admin_cmd(pattern=r"star$", outgoing=True)) |
@@ -55,8 +53,8 @@ async def _(event): |
55 | 53 | event = await edit_or_reply(event, "`Deploying...`") |
56 | 54 | animation_chars = [ |
57 | 55 | "**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}", |
60 | 58 | "**Restarting Heroku Server...**", |
61 | 59 | "**State changed from up to starting**", |
62 | 60 | "**Stopping all processes with SIGTERM**", |
@@ -234,7 +232,7 @@ async def _(event): |
234 | 232 | "🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵", |
235 | 233 | "🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴\n🔵🔵🔵⬜⬜⬜🔴🔴🔴", |
236 | 234 | "🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵\n🔴🔴🔴⬜⬜⬜🔵🔵🔵", |
237 | | - f"[{DEFAULTUSER}]({USERNAME}) **Police iz Here**", |
| 235 | + f"{mention} **Police iz Here**", |
238 | 236 | ] |
239 | 237 | for i in animation_ttl: |
240 | 238 | await asyncio.sleep(animation_interval) |
|
0 commit comments