Fixed formatting and typos
This commit is contained in:
@@ -61,7 +61,7 @@ Open source Discord bot for quizzes and quest-like events.
|
|||||||
"status": {
|
"status": {
|
||||||
// Whether activity is enabled
|
// Whether activity is enabled
|
||||||
"enabled": true,
|
"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",
|
"activity_type": "playing",
|
||||||
// Text of the activity
|
// Text of the activity
|
||||||
"activity_text": "The Game Of Life"
|
"activity_text": "The Game Of Life"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
from abc import ABC
|
from abc import ABC
|
||||||
from logging import Logger
|
from logging import Logger
|
||||||
from typing import Optional, Any, Dict
|
from typing import Any, Dict, Optional
|
||||||
|
|
||||||
from bson import ObjectId
|
from bson import ObjectId
|
||||||
from libbot.cache.classes import Cache
|
from libbot.cache.classes import Cache
|
||||||
|
@@ -20,7 +20,7 @@ from classes.errors import (
|
|||||||
EventStageNotFoundError,
|
EventStageNotFoundError,
|
||||||
GuildNotFoundError,
|
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
|
from modules.utils import get_logger
|
||||||
|
|
||||||
logger: Logger = get_logger(__name__)
|
logger: Logger = get_logger(__name__)
|
||||||
|
@@ -312,16 +312,16 @@ class PycordEvent(BaseCacheable):
|
|||||||
return PycordEvent.get_defaults()[key]
|
return PycordEvent.get_defaults()[key]
|
||||||
|
|
||||||
async def update(
|
async def update(
|
||||||
self,
|
self,
|
||||||
cache: Optional[Cache] = None,
|
cache: Optional[Cache] = None,
|
||||||
**kwargs: Any,
|
**kwargs: Any,
|
||||||
) -> None:
|
) -> None:
|
||||||
await super().update(cache=cache, **kwargs)
|
await super().update(cache=cache, **kwargs)
|
||||||
|
|
||||||
async def reset(
|
async def reset(
|
||||||
self,
|
self,
|
||||||
*args: str,
|
*args: str,
|
||||||
cache: Optional[Cache] = None,
|
cache: Optional[Cache] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
await super().reset(*args, cache=cache)
|
await super().reset(*args, cache=cache)
|
||||||
|
|
||||||
|
@@ -21,7 +21,7 @@ from classes import PycordEvent, PycordGuild, PycordUser
|
|||||||
from classes.errors import GuildNotFoundError
|
from classes.errors import GuildNotFoundError
|
||||||
from classes.pycord_bot import PycordBot
|
from classes.pycord_bot import PycordBot
|
||||||
from modules.database import col_users
|
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__)
|
logger: Logger = get_logger(__name__)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user