Skip to content

Commit 30487ec

Browse files
committed
Modernize the code.
1 parent 2eb747b commit 30487ec

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

nameless/config.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from pathlib import Path
2-
32
from tomllib import loads
43

54
__all__ = ["nameless_config"]

nameless/nameless.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22
import os
33
import re
4-
from datetime import datetime, timezone
4+
from datetime import UTC, datetime
55
from pathlib import Path
66
from typing import Self, override
77

@@ -61,7 +61,7 @@ async def on_ready(self):
6161
logging.info("Logged in as %s (ID: %s)", str(self.user), self.user.id)
6262

6363
logging.info("nameless* is now operational!")
64-
nameless_config["nameless"]["start_time"] = datetime.now(timezone.utc)
64+
nameless_config["nameless"]["start_time"] = datetime.now(UTC)
6565

6666
@override
6767
async def on_command_error(

0 commit comments

Comments
 (0)