Closed atorber closed 1 year ago
@atorber could you please provide specific versions for wechaty
, wechaty-puppet-service
and wechaty-puppet
?
@atorber could you please provide specific versions for
wechaty
,wechaty-puppet-service
andwechaty-puppet
?
"dependencies": {
"@vikadata/vika": "^1.0.5",
"chatgpt": "^1.1.3",
"dotenv": "^16.0.0",
"exceljs": "^4.3.0",
"file-box": "^1.4.12",
"fs": "^0.0.1-security",
"moment": "^2.29.1",
"mqtt": "^4.3.7",
"njwt": "^1.2.0",
"node-schedule": "^2.1.0",
"node-xlsx": "^0.21.0",
"openai-sdk": "^1.0.1",
"pm2": "^5.2.0",
"qrcode-terminal": "^0.12.0",
"request": "^2.88.0",
"request-promise": "^4.2.6",
"socket.io": "^2.1.0",
"socket.io-client": "^2.4.0",
"uuid": "^8.3.2",
"wechaty": "^1.20.2",
"wechaty-plugin-contrib": "^1.0.18",
"wechaty-puppet-padlocal": "^1.11.13",
"wechaty-puppet-service": "^1.19.8",
"wechaty-puppet-wechat": "^1.18.4",
"wechaty-puppet-xp": "^1.12.7"
},
You are trying to send message to contact with id '0'. There should not be a contact with such ID. Could you check how did you get this id?
You are trying to send message to contact with id '0'. There should not be a contact with such ID. Could you check how did you get this id?
The code is like this, when the robot logs in, it will automatically send a message to itself.
async function onLogin(user: Contact) { log.info('StarterBot', '%s login', user.payload) const curDate = new Date().toLocaleString() await user.say('上线:' + curDate) }
Now it seems that this problem has been solved, just now I used the previous code to run normally, I did not make any changes to my code.
After checking log, there is no more message request for contact id '0'. If next time such error happens, could you please log contact id before the say statement so that we can know if this is a problem with contact payload or with say. If you think this issue is solved, please close it. Thank you.
Closing this issue since no further discussion needed.
Question