chore: bump version to 4.13.1

This commit is contained in:
Soulter
2026-01-29 23:31:49 +08:00
parent d27099f2da
commit a500f2edc8
6 changed files with 12 additions and 5 deletions

View File

@@ -84,7 +84,7 @@ class LocalPythonTool(FunctionTool):
self, context: ContextWrapper[AstrAgentContext], code: str, silent: bool = False
) -> ToolExecResult:
if context.context.event.role != "admin":
return "error: Permission denied. Local Python execution is only allowed for admin users. Set admins in AstrBot WebUI."
return "error: Permission denied. Local Python execution is only allowed for admin users. Tell user to set admins in AstrBot WebUI."
sb = get_local_booter()
try: