From 5afc066f035eda2b38f0ebe0cdd802d1a7a6a64a Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 19 Apr 2026 15:43:42 +0200 Subject: chore: add pycord dependency, update main --- main.py | 15 +++++++-------- pycord | 1 + 2 files changed, 8 insertions(+), 8 deletions(-) create mode 160000 pycord diff --git a/main.py b/main.py index 6c8c35b..1f5e3f6 100644 --- a/main.py +++ b/main.py @@ -19,11 +19,17 @@ from cogs.utils import settings def setup_logging(debug: bool = False): """Configure logging based on debug flag.""" level = logging.DEBUG if debug else logging.INFO + + class DecryptionFilter(logging.Filter): + def filter(self, record): + return "Decryption failed" not in record.getMessage() + logging.basicConfig( level=level, format="%(levelname)s - %(filename)s - %(name)s - %(message)s", handlers=[logging.StreamHandler(sys.stdout)], ) + logging.getLogger().addFilter(DecryptionFilter()) # Create a new event loop and set it as the current loop @@ -39,12 +45,6 @@ async def on_ready(): logger = logging.getLogger(__name__) logger.info("ŁUKASZ SPERMA AKTYWACJA") - channel_id = os.getenv("STATUS_CHANNEL_ID") - if channel_id: - channel = bot.get_channel(int(channel_id)) - if channel: - await channel.send("ŁUKASZ SPERMA AKTYWACJA") - await settings.load_settings() @@ -74,7 +74,6 @@ if __name__ == "__main__": "cogs.trigger", "cogs.cron", "cogs.qr", - "cogs.plot", "cogs.voice", ] @@ -93,4 +92,4 @@ if __name__ == "__main__": except Exception as e: logging.getLogger(__name__).error(f"Error starting the bot: {e}") - sys.exit(1) \ No newline at end of file + sys.exit(1) diff --git a/pycord b/pycord new file mode 160000 index 0000000..3dd5306 --- /dev/null +++ b/pycord @@ -0,0 +1 @@ +Subproject commit 3dd5306672933c9ea2cd995fc3f5daf28f105511 -- cgit v1.2.3