diff --git a/plugins/discord/client.py b/plugins/discord/client.py index 7a5f4ca..38fb1d8 100644 --- a/plugins/discord/client.py +++ b/plugins/discord/client.py @@ -36,6 +36,8 @@ class Bot(commands.Bot): + __version__ = "1.3.0" + def __init__(self, plugin: Plugin, loop: AbstractEventLoop | None = None): super().__init__( command_prefix=plugin.config.get("prefix"), @@ -44,13 +46,12 @@ def __init__(self, plugin: Plugin, loop: AbstractEventLoop | None = None): help_command=None, ) + self._uptime = None self.plugin = plugin self.log = plugin.log self.console = rich.get_console() self.config = plugin.config self.server = plugin.server - self._uptime = None - self.__version__ = "1.3.0" self.log.info( f"[red]py-cord version: [/red][cyan]{discord.__version__}[/cyan]", extra=dict(markup=True), diff --git a/server/core/logging.py b/server/core/logging.py index ac52863..2e9efa4 100644 --- a/server/core/logging.py +++ b/server/core/logging.py @@ -67,7 +67,7 @@ def format(self, record: LogRecord): record = copy.deepcopy(record) record.msg = Text.from_markup(record.msg) except Exception as e: # fix: aiohttp throw errors - log.debug(e) + print(e) return (self.formatter or Formatter()).format(record)