Skip to content

Commit

Permalink
fix: 🐛 Fix start/end logic
Browse files Browse the repository at this point in the history
  • Loading branch information
b2r66sun committed Jan 2, 2025
1 parent ecad959 commit 900843b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wechaty/sendMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function defaultMessage(msg, bot, ServiceType = 'GPT') {
const isAlias = aliasWhiteList.includes(remarkName) || aliasWhiteList.includes(name) // 发消息的人是否在联系人白名单内
const isBotSelf = botName === `@${remarkName}` || botName === `@${name}` // 是否是机器人自己
// TODO 你们可以根据自己的需求修改这里的逻辑
if (isBotSelf || !isText) return // 如果是机器人自己发送的消息或者消息类型不是文本则不处理
if (!isText) return // 如果是机器人自己发送的消息或者消息类型不是文本则不处理

if (isBotSelf) {
console.log('👑👑👑 / self content: ', content)
Expand Down

0 comments on commit 900843b

Please sign in to comment.