Update main.py

This commit is contained in:
高性能戦闘ロボ
2025-03-02 13:30:34 +08:00
committed by GitHub
parent 095bd95044
commit a2443c4ac1
+1 -1
View File
@@ -566,7 +566,7 @@ UID: {user_id} 此 ID 可用于设置管理员。/op <UID> 授权管理员, /deo
async def switch_conv(self, message: AstrMessageEvent, index: int = None):
'''通过 /ls 前面的序号切换对话'''
if type(index) != int:
if not isinstance(index,int):
message.set_result(MessageEventResult().message("类型错误,请输入数字对话序号。"))
return