fix: f-string eror

This commit is contained in:
Soulter
2024-08-03 16:17:04 +08:00
parent a481fd1a3e
commit 344b5fa419
2 changed files with 5 additions and 3 deletions

View File

@@ -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():

View File

@@ -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: 请指定唤醒词。")