Skip to content

Commit

Permalink
Merge branch 'main' into 3.9.2.23
Browse files Browse the repository at this point in the history
  • Loading branch information
atorber authored Mar 27, 2024
2 parents 58be0e4 + eb9f9a6 commit 1fdfba3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/ripe-wechaty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ async function onLogin (user: Contact) {
log.info('好友数量:', friends.length)

// 发送@好友消息
const room = await bot.Room.find({ topic:'大师是群主' })
const contact = await bot.Contact.find({ name:'luyuchao' })
const room = await bot.Room.find({topic:'大师是群主'})
const contact = await bot.Contact.find({name:'luyuchao'})
log.info('room:', room)
if (room && contact) {
const contacts:Contact[] = [ contact ]
if(room && contact){
const contacts:Contact[]= [contact]
await room.say(new Date().toLocaleString() + ':瓦力上线了!', ...contacts)
}
}
Expand Down

0 comments on commit 1fdfba3

Please sign in to comment.