Update test.py

pull/29/head
Who? 2024-12-02 00:48:52 +07:00 committed by GitHub
parent 2fb531bb79
commit ec36b07ed9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -384,18 +384,18 @@ class TestMod(loader.Module):
summer_upt = datetime.datetime(int)strftime("%Y")) + 1, 6, 1)
halloween_upt = datetime.datetime(int(strftime("%Y")) + 1, 10, 30)
newyear = now - newyear_upt
summer = now - summer_upt
halloween = now - halloween_upt
newyear_d = newyear_upt - now
summer_d = summer_upt - now
halloween_d = halloween_upt - now
await utils.answer(
message,
self.config["Text_Of_Ping"].format(
ping=round((time.perf_counter_ns() - start) / 10**6, 3),
uptime=utils.formatted_uptime(),
newyear=newyear.days,
summer=summer.days,
halloween=halloween.days,
newyear=newyear_d.days,
summer=summer_d.days,
halloween=halloween_d.days,
ping_hint=(
(self.config["hint"]) if random.choice([0, 0, 1]) == 1 else ""
),