From 8d60d8aef53cd1a1eb15ab9adc5434065d6d50da Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 6 May 2025 20:29:49 +0200 Subject: [PATCH] Fixed formatting and typos --- README.md | 2 +- classes/base/base_cacheable.py | 2 +- classes/pycord_bot.py | 2 +- classes/pycord_event.py | 12 ++++++------ cogs/cog_user.py | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0483db5..74b543f 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Open source Discord bot for quizzes and quest-like events. "status": { // Whether activity is enabled "enabled": true, - // Type of the activity. Can be: "playing", "watching", "listening", "streaming", "competing" and "custom" + // Type of the activity. Can be: "playing", "watching", "listening", "streaming", "competing" or "custom" "activity_type": "playing", // Text of the activity "activity_text": "The Game Of Life" diff --git a/classes/base/base_cacheable.py b/classes/base/base_cacheable.py index ea60c3f..c07d9c0 100644 --- a/classes/base/base_cacheable.py +++ b/classes/base/base_cacheable.py @@ -1,6 +1,6 @@ from abc import ABC from logging import Logger -from typing import Optional, Any, Dict +from typing import Any, Dict, Optional from bson import ObjectId from libbot.cache.classes import Cache diff --git a/classes/pycord_bot.py b/classes/pycord_bot.py index f6e64a2..af2062d 100644 --- a/classes/pycord_bot.py +++ b/classes/pycord_bot.py @@ -20,7 +20,7 @@ from classes.errors import ( EventStageNotFoundError, GuildNotFoundError, ) -from modules.database import col_events, col_users, _update_database_indexes +from modules.database import _update_database_indexes, col_events, col_users from modules.utils import get_logger logger: Logger = get_logger(__name__) diff --git a/classes/pycord_event.py b/classes/pycord_event.py index 89492ab..ca3b576 100644 --- a/classes/pycord_event.py +++ b/classes/pycord_event.py @@ -312,16 +312,16 @@ class PycordEvent(BaseCacheable): return PycordEvent.get_defaults()[key] async def update( - self, - cache: Optional[Cache] = None, - **kwargs: Any, + self, + cache: Optional[Cache] = None, + **kwargs: Any, ) -> None: await super().update(cache=cache, **kwargs) async def reset( - self, - *args: str, - cache: Optional[Cache] = None, + self, + *args: str, + cache: Optional[Cache] = None, ) -> None: await super().reset(*args, cache=cache) diff --git a/cogs/cog_user.py b/cogs/cog_user.py index e337030..dc98f78 100644 --- a/cogs/cog_user.py +++ b/cogs/cog_user.py @@ -21,7 +21,7 @@ from classes import PycordEvent, PycordGuild, PycordUser from classes.errors import GuildNotFoundError from classes.pycord_bot import PycordBot from modules.database import col_users -from modules.utils import get_logger, is_operation_confirmed, get_utc_now +from modules.utils import get_logger, get_utc_now, is_operation_confirmed logger: Logger = get_logger(__name__)