mirror of https://github.com/coddrago/Heroku
Update test.py
parent
2d2d95527d
commit
8aa57de29f
|
@ -11,6 +11,8 @@ import random
|
||||||
import time
|
import time
|
||||||
import typing
|
import typing
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
import datetime
|
||||||
|
from time import strftime
|
||||||
|
|
||||||
from hikkatl.tl.types import Message
|
from hikkatl.tl.types import Message
|
||||||
|
|
||||||
|
@ -383,6 +385,10 @@ class TestMod(loader.Module):
|
||||||
self.config["Text_Of_Ping"].format(
|
self.config["Text_Of_Ping"].format(
|
||||||
ping=round((time.perf_counter_ns() - start) / 10**6, 3),
|
ping=round((time.perf_counter_ns() - start) / 10**6, 3),
|
||||||
uptime=utils.formatted_uptime(),
|
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=(
|
ping_hint=(
|
||||||
(self.config["hint"]) if random.choice([0, 0, 1]) == 1 else ""
|
(self.config["hint"]) if random.choice([0, 0, 1]) == 1 else ""
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue