FengLiuFeseliud / pycqBot

go-cqhttp python 框架,可以用于快速塔建 bot
https://fengliufeseliud.github.io/pycqBot/
GNU Affero General Public License v3.0
129 stars 29 forks source link

救命啊,搞了一天。运行后,当机器人收到消息,要根据我自定义代码处理时,总是报错 #9

Closed winetern closed 1 year ago

winetern commented 1 year ago

class cqHttpApi(asyncHttp):

def __init__(self, host: str="http://127.0.0.1:8000", download_path: str="./download", chunk_size: int=1024) -> None:
    super().__init__(download_path, chunk_size)
    self.http = host
    self.__reply_list_msg: dict[int, Optional[Message]] = {}
    self.thread_count = 4
    self.bot_qq = 0

这个方法默认那个参数的默认端口为8000,但如上述情况下,报错:cannot connect host 127.0.0.1:8000,远程计算机拒绝网络连接

FengLiuFeseliud commented 1 year ago

与 go-cqhttp 正向 http 地址不一致