mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
chore: bump version to 4.17.4
This commit is contained in:
@@ -90,7 +90,7 @@ class LocalPythonTool(FunctionTool):
|
||||
if context.context.event.role != "admin":
|
||||
return (
|
||||
"error: Permission denied. Local Python execution is only allowed for admin users. "
|
||||
"Tell user to set admins in AstrBot WebUI by adding their user ID to the admins list if they need this feature."
|
||||
"Tell user to set admins in `AstrBot WebUI -> Config -> General Config` by adding their user ID to the admins list if they need this feature."
|
||||
f"User's ID is: {context.context.event.get_sender_id()}. User's ID can be found by using /sid command."
|
||||
)
|
||||
sb = get_local_booter()
|
||||
|
||||
Reference in New Issue
Block a user