Skip to content

Commit

Permalink
1.13.7 (#211)
Browse files Browse the repository at this point in the history
* 3.9.2.23 init (#180)

* 3.9.2.23 initt

* Update init-agent-script.js

* 3.9.2.23 adapter

* 3.9.2.23 init (#182)

* 3.9.2.23 initt

* Update init-agent-script.js

* 3.9.2.23 adapter

* 适配3.9.2.23

* Delete agent-script-3.9.2.23-new.js

* 适配3.9.2.23 (#185)

* 3.9.2.23 initt

* Update init-agent-script.js

* 3.9.2.23 adapter

* 适配3.9.2.23

* Delete agent-script-3.9.2.23-new.js

* 适配3.9.2.23

---------

Co-authored-by: LuChao <atorber@163.com>

* add 1.3.0 illustrate

* Update README.md

* Update README.md

* add demo

* 1.13.1

* 1.13.1

* 1.13.2 dev

* 增加扫码登录、检测登录状态

* 增加登入登出事件

* 增加ts改造init

* 1.13.2

* 1.13.2

* 1.13.2

* 1.13.2

* 1.13.2

1. 修复获取群成员昵称乱码

* Update .npmignore

* Update .gitignore

* 1.13.2删除agent的ts文件

* 1.13.4

* 1.13.5

* Update init-agent-script.ts

* 1.13.5

* 1.13.6

* del png file

* Update init-agent-script.js

* 1.13.7 修复@好友出现两个昵称的bug

* 1.13.7

---------

Co-authored-by: choogoo <104893934+choogoo@users.noreply.github.com>
  • Loading branch information
atorber and choogoo authored Jan 19, 2024
1 parent bcfb55f commit 2db86d7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
16 changes: 8 additions & 8 deletions examples/ripe-wechaty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { FileBox } from 'file-box'
import { PuppetXp } from '../src/puppet-xp.js'
import qrcodeTerminal from 'qrcode-terminal'
import * as fs from 'fs'
import { roomMemberMixin } from 'wechaty-puppet/dist/esm/src/mixins/room-member-mixin.js'

function onScan (qrcode: string, status: ScanStatus) {
if (qrcode) {
Expand All @@ -41,13 +40,14 @@ async function onLogin (user: Contact) {
const friends = contactList.filter(c => c.friend())
log.info('好友数量:', friends.length)

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]
await room.say(new Date().toLocaleString() + ':瓦力上线了!', ...contacts)
}
// 发送@好友消息
// 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]
// await room.say(new Date().toLocaleString() + ':瓦力上线了!', ...contacts)
// }
}

function onLogout (user: Contact) {
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,10 @@
"publishConfig": {
"access": "public",
"tag": "latest"
},
"git": {
"scripts": {
"pre-push": "npx git-scripts-pre-push"
}
}
}

0 comments on commit 2db86d7

Please sign in to comment.