Lycreal / MiraiBot

Bot for Mirai
GNU Affero General Public License v3.0
72 stars 12 forks source link

在部署时遇到报错 #10

Closed TeoZler closed 4 years ago

TeoZler commented 4 years ago

运行python3 run.py mirai://localhost:8080/ws?authKey=$authKey&qq=$qq后, 报错Traceback (most recent call last): File "run.py", line 7, in app = Mirai(sys.argv[1]) File "C:\Users****\AppData\Local\Programs\Python\Python37\lib\site-packages\mirai\application.py", line 94, in init raise ValueError("invaild url: wrong format") ValueError: invaild url: wrong format 'qq' is not recognized as an internal or external command, operable program or batch file.

Lycreal commented 4 years ago

$authKey和$qq是示意,换成你的真实authKey和qq,authKey和mirai-api-http中的配置保持一致

Lycreal commented 4 years ago

在windows系统将后面的 mirai://localhost:8080/ws?authKey=$authKey&qq=$qq 加上引号