diff options
author | 2022-04-20 21:07:05 +0100 | |
---|---|---|
committer | 2022-04-20 21:07:05 +0100 | |
commit | 2e97bfa3fd770a4176616addb7685da1cc890f5c (patch) | |
tree | 171d9b35fc74f2f4ccd23a6b1780c0ae4856eed5 | |
parent | remove unneeded import in tests (diff) |
Use fully qualified datetime.time()
This is to remove possible confusion with time.time
-rw-r--r-- | bot/exts/fun/off_topic_names.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/fun/off_topic_names.py b/bot/exts/fun/off_topic_names.py index 35cc3dcb5..b8206dab4 100644 --- a/bot/exts/fun/off_topic_names.py +++ b/bot/exts/fun/off_topic_names.py @@ -1,5 +1,5 @@ +import datetime import difflib -from datetime import time from botcore.site_api import ResponseCodeError from discord import Colour, Embed @@ -35,7 +35,7 @@ class OffTopicNames(Cog): self.update_names.clear_exception_types() self.update_names.stop() - @tasks.loop(time=time(), reconnect=True) + @tasks.loop(time=datetime.time(), reconnect=True) async def update_names(self) -> None: """Background updater task that performs the daily channel name update.""" await self.bot.wait_until_guild_available() |