TISUnion / ChatBridge

boardcast chat between mc servers or even discord server
GNU Lesser General Public License v3.0
65 stars 39 forks source link

与QQ连结时出现了一些问题 #14

Closed ZYLHL closed 3 years ago

ZYLHL commented 3 years ago

按照README.md的教程进行了设置,运行了ChatBridge的服务端和客户端以及go-cqhttp服务端。 在QQ群测试的时候,使用!!qq [消息]能正常的转发游戏里往群内发的消息,但是在群内往游戏里发不了消息,群里发任何信息,机器人没有任何反应。

游戏里往群里发 群里收到游戏里发的消息 群里往游戏里发消息


这是运行ChatBridge_cqhttp.py时控制台一直反复弹的信息

++Rcv raw: b'\x81~\x01\x8a{"interval":5000,"meta_event_type":"heartbeat","post_type":"meta_event","self_id":189723936,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":109,"packet_sent":98,"packet_lost":0,"message_received":3,"message_sent":2,"disconnect_times":0,"lost_times":0,"last_message_time":1621764529}},"time":1621765624}'
++Rcv decoded: fin=1 opcode=1 data=b'{"interval":5000,"meta_event_type":"heartbeat","post_type":"meta_event","self_id":189723936,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":109,"packet_sent":98,"packet_lost":0,"message_received":3,"message_sent":2,"disconnect_times":0,"lost_times":0,"last_message_time":1621764529}},"time":1621765624}'
error from callback <bound method CQBot.on_message of <__main__.CQBot object at 0x0000025860B98520>>: on_message() takes 2 positional arguments but 3 were given
  File "C:\Program Files\python\lib\site-packages\websocket\_app.py", line 400, in _callback
    callback(self, *args)
Glucy-2 commented 3 years ago

我的更离谱,两边消息都不通 go-cqhttp版本:1.0.0-beta4 报错的消息:

++Rcv raw: b'\x81~\x01\x93{"interval":5000,"meta_event_type":"heartbeat","post_type":"meta_event","self_id":3252206355,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":6302,"packet_sent":5011,"packet_lost":0,"message_received":910,"message_sent":178,"disconnect_times":0,"lost_times":0,"last_message_time":1627575449}},"time":1627575787}\n'
++Rcv decoded: fin=1 opcode=1 data=b'{"interval":5000,"meta_event_type":"heartbeat","post_type":"meta_event","self_id":3252206355,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":6302,"packet_sent":5011,"packet_lost":0,"message_received":910,"message_sent":178,"disconnect_times":0,"lost_times":0,"last_message_time":1627575449}},"time":1627575787}\n'
error from callback <bound method CQBot.on_message of <__main__.CQBot object at 0x7f5507cf30f0>>: on_message() takes 2 positional arguments but 3 were given
Glucy-2 commented 3 years ago

@Fallen-Breath