From a976c7888423e657f946ac567695c7da23e9f9a7 Mon Sep 17 00:00:00 2001 From: shtlrs Date: Mon, 1 May 2023 14:38:18 +0100 Subject: revert renaming of Client to Bot --- bot/utils/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bot/utils/__init__.py') diff --git a/bot/utils/__init__.py b/bot/utils/__init__.py index 69439d91..91682dbc 100644 --- a/bot/utils/__init__.py +++ b/bot/utils/__init__.py @@ -9,7 +9,7 @@ from typing import Optional import discord from discord.ext.commands import BadArgument, Context -from bot.constants import Bot, Month +from bot.constants import Client, Month from bot.utils.pagination import LinePaginator @@ -25,8 +25,8 @@ def resolve_current_month() -> Month: If the env variable was set, current month always resolves to the configured value. Otherwise, the current UTC month is given. """ - if Bot.month_override is not None: - return Month(Bot.month_override) + if Client.month_override is not None: + return Month(Client.month_override) else: return Month(datetime.utcnow().month) -- cgit v1.2.3