Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,17 @@ async def on_ready():
under certain conditions.
__________________________________________________""")
time.sleep(1)
print("[main/Flask] Starting pinger service...")
ping.host()
if api.auth.get_runtime_options()["show_ping_on_startup"]:
s.log("Client Information:")
s.log(f" Latency/Ping: {round((client.latency * 1000), 2)} ms")
s.log("--------------------")
s.log(f'[main/Client] Logged in as {client.user.name}. Start time: {start_time.strftime("%H:%M:%S")}\n[main/Client] Ready to accept commands. Click Ctrl+C to shut down the bot.')
await client.change_presence(activity=discord.Activity(type=discord.ActivityType.playing, name="Isobot is finally back! Improved uptime!"), status=discord.Status.idle)
s.log(f'[main/Log] {colors.green}Status set to IDLE. Rich presence set.{colors.end}')
if api.auth.get_mode() or api.auth.get_runtime_options()["ping_server_override"]:
# If ping_server_override is set to true, it will start the pinging server no matter what. If it's set to false, it will only start if client mode is set to replit.
s.log(f"[main/Flask] {f'{colors.yellow}Ping server override.{colors.end} ' if api.auth.get_runtime_options()['ping_server_override'] else ''}Starting pinger service...")
ping.host()
time.sleep(5)

@client.event
Expand Down