JHue58 / ChatLearning

基于mirai-api-http,让bot学会你的群的说话方式
GNU Affero General Public License v3.0
313 stars 21 forks source link

响应完第一条命令后续命令不再响应 #50

Closed greenhandzdl closed 1 year ago

greenhandzdl commented 1 year ago

不确定是哪一步的问题

linux1@gservice:/mirai$ cat develop/Source/start.sh
#!/bin/bash
nohup python3 /mirai/develop/Source/Chatmain.py > /mirai/develop/Source/log_n.txt &
linux1@gservice:/mirai$ cat develop/Source/log_n.txt
Warning: Input is not a terminal (fd=0).
欢迎使用ChatLearning应用 版本号: 2.9.8
输入help来查看指令列表吧!
<-开始记录
2022-07-23 05:42:46 词库合并完成
<-开启回复功能
抛出异常,已记录到日志(log.log文件)
Traceback (most recent call last):
  File "/mirai/develop/Source/ChatClass.py", line 375, in run
    self._target(*self._args, **self._kwargs)
  File "/mirai/develop/Source/Chatmain.py", line 1854, in getcommand_chat
    message = simuse.Fetch_Message(data)
  File "/mirai/develop/Source/simuse.py", line 89, in Fetch_Message
    Message = res['data']
KeyError: 'data'

image

JHue58 commented 1 year ago

后台是掉了么,我看这个log时间不太对

greenhandzdl commented 1 year ago

完蛋,我卡起来了,不知道是网卡还是服务器卡

JHue58 commented 1 year ago

完蛋,我卡起来了,不知道是网卡还是服务器卡