We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 58be0e4 + eb9f9a6 commit 1fdfba3Copy full SHA for 1fdfba3
examples/ripe-wechaty.ts
@@ -42,11 +42,11 @@ async function onLogin (user: Contact) {
42
log.info('好友数量:', friends.length)
43
44
// 发送@好友消息
45
- const room = await bot.Room.find({ topic:'大师是群主' })
46
- const contact = await bot.Contact.find({ name:'luyuchao' })
+ const room = await bot.Room.find({topic:'大师是群主'})
+ const contact = await bot.Contact.find({name:'luyuchao'})
47
log.info('room:', room)
48
- if (room && contact) {
49
- const contacts:Contact[] = [ contact ]
+ if(room && contact){
+ const contacts:Contact[]= [contact]
50
await room.say(new Date().toLocaleString() + ':瓦力上线了!', ...contacts)
51
}
52
0 commit comments