Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
refactor: use module-level logger in static methods
yorkhellen10a0bb0fb3e8
diff --git a/nanobot/channels/discord.py b/nanobot/channels/discord.pyindex 0cdea15cf..2ce61d83e 100644--- a/nanobot/channels/discord.py+++ b/nanobot/channels/discord.py@@ -19,6 +19,7 @@ from nanobot.command.builtin import build_help_textfrom nanobot.config.paths import get_media_dirfrom nanobot.config.schema import Basefrom nanobot.utils.helpers import safe_filename, split_message+from loguru import loggerDISCORD_AVAILABLE = importlib.util.find_spec("discord") is not Noneif TYPE_CHECKING:@@ -314,8 +315,6 @@ if DISCORD_AVAILABLE:reply_to: str | None,) -> tuple[discord.PartialMessage | None, discord.AllowedMentions]:"""Build reply context for outbound messages."""- from loguru import logger-mention_settings = discord.AllowedMentions(replied_user=False)if not reply_to:return None, mention_settingsdiff --git a/nanobot/channels/websocket.py b/nanobot/channels/websocket.pyindex 487454c0d..39d953894 100644--- a/nanobot/channels/websocket.py+++ b/nanobot/channels/websocket.py@@ -1104,8 +1104,6 @@ class WebSocketChannel(BaseChannel):Shape: ``list[{"data_url": str, "name"?: str | None}]``."""- from loguru import logger-image_count = 0video_count = 0for item in media: