Update test.py

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

View File

@ -11,6 +11,8 @@ import random
import time
import typing
from io import BytesIO
import datetime
from time import strftime
from hikkatl.tl.types import Message
@ -383,6 +385,10 @@ class TestMod(loader.Module):
self.config["Text_Of_Ping"].format(
ping=round((time.perf_counter_ns() - start) / 10**6, 3),
uptime=utils.formatted_uptime(),
now = datetime.datetime.today()
newyear = datetime.datetime(int(strftime("%Y")) + 1, 1, 1)
summer = datetime.datetime(int)strftime("%Y")) + 1, 6, 1)
halloween = datetime.datetime(int(strftime("%Y")) + 1, 10, 30)
ping_hint=(
(self.config["hint"]) if random.choice([0, 0, 1]) == 1 else ""
),