Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -67,13 +67,14 @@ async def on_ready():
|
|
67 |
print(f"Logged in as {client.user}")
|
68 |
|
69 |
|
70 |
-
@tasks.loop(seconds=
|
71 |
async def presence():
|
72 |
delta_uptime = datetime.datetime.utcnow() - launch_time
|
73 |
hours, remainder = divmod(int(delta_uptime.total_seconds()), 3600)
|
74 |
minutes, seconds = divmod(remainder, 60)
|
75 |
days, hours = divmod(hours, 24)
|
76 |
print(f"Online Time: {days:02d}d | {hours:02d}h | {minutes:02d}m | {seconds:02d}s")
|
|
|
77 |
await syncMessages()
|
78 |
await client.change_presence(
|
79 |
status=discord.Status.dnd,
|
|
|
67 |
print(f"Logged in as {client.user}")
|
68 |
|
69 |
|
70 |
+
@tasks.loop(seconds=1)
|
71 |
async def presence():
|
72 |
delta_uptime = datetime.datetime.utcnow() - launch_time
|
73 |
hours, remainder = divmod(int(delta_uptime.total_seconds()), 3600)
|
74 |
minutes, seconds = divmod(remainder, 60)
|
75 |
days, hours = divmod(hours, 24)
|
76 |
print(f"Online Time: {days:02d}d | {hours:02d}h | {minutes:02d}m | {seconds:02d}s")
|
77 |
+
print("Syncing.")
|
78 |
await syncMessages()
|
79 |
await client.change_presence(
|
80 |
status=discord.Status.dnd,
|