From 344b5fa419e0e17a76808e13e7c36b7674400b95 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 3 Aug 2024 16:17:04 +0800 Subject: [PATCH] fix: f-string eror --- dashboard/server.py | 4 ++++ model/command/internal_handler.py | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dashboard/server.py b/dashboard/server.py index d4a3681c..e83a3716 100644 --- a/dashboard/server.py +++ b/dashboard/server.py @@ -45,6 +45,10 @@ class AstrBotDashBoard(): def index(): # 返回页面 return self.dashboard_be.send_static_file("index.html") + + @self.dashboard_be.get("/auth/login") + def _(): + return self.dashboard_be.send_static_file("index.html") @self.dashboard_be.get("/config") def rt_config(): diff --git a/model/command/internal_handler.py b/model/command/internal_handler.py index ab2ab336..377cd9df 100644 --- a/model/command/internal_handler.py +++ b/model/command/internal_handler.py @@ -62,9 +62,7 @@ class InternalCommandHandler: return CommandResult().message("你没有权限使用该指令。") l = message_str.split(" ") if len(l) == 1: - return CommandResult().message(f"设置机器人唤醒词。以唤醒词开头的消息 \ - 会唤醒机器人处理,起到 @ 的效果。\n示例:wake 昵称。\ - 当前唤醒词有:{",".join(context.nick)}") + return CommandResult().message(f"设置机器人唤醒词。以唤醒词开头的消息会唤醒机器人处理,起到 @ 的效果。\n示例:wake 昵称。当前唤醒词有:{context.nick}") nick = l[1].strip() if not nick: return CommandResult().message("wake: 请指定唤醒词。")