Update test.py

pull/2/head
Who? 2024-09-29 05:47:57 +07:00 committed by GitHub
parent 93f7b9d805
commit 8a533d6360
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -338,8 +338,7 @@ class TestMod(loader.Module):
start = time.perf_counter_ns() start = time.perf_counter_ns()
message = await utils.answer(message, "🌘") message = await utils.answer(message, "🌘")
if message.sender.premium == True or not message.sender.premium: await utils.answer(message, self.strings["results_ping"].format(round((time.perf_counter_ns() - start) / 10**6, 3), utils.formatted_uptime(),))
await utils.answer(message, self.strings["results_ping"].format(round((time.perf_counter_ns() - start) / 10**6, 3), utils.formatted_uptime(),))
if message.sender.premium == False: if message.sender.premium == False:
await utils.answer(message, self.strings("noprem_ping").format(round((time.perf_counter_ns() - start) / 10**6, 3), utils.formatted_uptime(),)) await utils.answer(message, self.strings("noprem_ping").format(round((time.perf_counter_ns() - start) / 10**6, 3), utils.formatted_uptime(),))