fix: f-string eror
This commit is contained in:
@@ -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: 请指定唤醒词。")
|
||||
|
||||
Reference in New Issue
Block a user