Skip to content

Commit

Permalink
fix some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
choogoo committed Apr 29, 2023
1 parent b51e178 commit 1c6d5d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ async function onMessage (message: Message) {
}
}

if (isSelfMsg && text === '#下载xlsx通讯录') {
if (isSelfMsg && text === '#下载通讯录') {
log.info('下载通讯录到xlsx表~')
try {
const fileBox = await exportContactsAndRoomsToXLSX()
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ async function onMessage (message: Message) {
}
}

if (isSelfMsg && text === '#下载xlsx通讯录') {
if (isSelfMsg && text === '#下载通讯录') {
log.info('下载通讯录到xlsx表~')
try {
const fileBox = await exportContactsAndRoomsToXLSX()
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/group-notice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function sendTextMessage (contact: Contact, text: string): Promise<boolean

async function sendNotice (bot:Wechaty, msg: Message) {
log.info('sendNotice:', msg.talker().id)

await delay(3000)
// 检测群消息
if (msg.type() === types.Message.Attachment) {
const file = await msg.toFileBox()
Expand Down

0 comments on commit 1c6d5d3

Please sign in to comment.