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
style(msteams): hoist time import
T3chC0wb0y818a095a90d5
diff --git a/nanobot/channels/msteams.py b/nanobot/channels/msteams.pyindex 04e78f806..d73ed53e3 100644--- a/nanobot/channels/msteams.py+++ b/nanobot/channels/msteams.py@@ -17,6 +17,7 @@ import importlib.utilimport jsonimport reimport threading+import timefrom dataclasses import dataclassfrom http.server import BaseHTTPRequestHandler, ThreadingHTTPServerfrom typing import TYPE_CHECKING, Any@@ -423,7 +424,6 @@ class MSTeamsChannel(BaseChannel):async def _get_botframework_openid_config(self) -> dict[str, Any]:"""Fetch and cache Bot Framework OpenID configuration."""- import timenow = time.time()if self._botframework_openid_config and now < self._botframework_openid_config_expires_at:@@ -440,7 +440,6 @@ class MSTeamsChannel(BaseChannel):async def _get_botframework_jwks(self) -> dict[str, Any]:"""Fetch and cache Bot Framework JWKS."""- import timenow = time.time()if self._botframework_jwks and now < self._botframework_jwks_expires_at:@@ -494,7 +493,6 @@ class MSTeamsChannel(BaseChannel):async def _get_access_token(self) -> str:"""Fetch an access token for Bot Framework / Azure Bot auth."""- import timenow = time.time()if self._token and now < self._token_expires_at - 60: